Skip to content

Commit

Permalink
Introduce the animated display experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
LSViana committed Oct 24, 2023
1 parent 51c7619 commit 7fc3c94
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/experiments/input/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
Used to demonstrate to the user the strength of their password. For this example, length is strength.
</template>
</ExperimentCanvas>
<p>The number input with an animated display:</p>
<ExperimentCanvas>
<div class="flex w-56 flex-col">
<input
v-model="amount"
type="number"
class="rounded border bg-slate-200 px-3 py-2 outline-0 focus:border-slate-400 dark:bg-slate-800"
>
<div class="mt-3 flex h-6 items-center gap-1">
<small>US$</small>
<WlNumberDisplay :value="amount" />
</div>
</div>
</ExperimentCanvas>
</Container>
</NuxtLayout>
</template>
Expand All @@ -25,6 +39,8 @@ import { ref } from 'vue'
import Container from '~/components/shared/layout/Container.vue'
import ExperimentCanvas from '~/components/shared/experiments/ExperimentCanvas.vue'
import WlPasswordStrength from '~/components/experiments/input/WlPasswordStrength.vue'
import WlNumberDisplay from '~/components/experiments/input/WlNumberDisplay.vue'
const password = ref('')
const amount = ref(0)
</script>

1 comment on commit 7fc3c94

@vercel
Copy link

@vercel vercel bot commented on 7fc3c94 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web-labs – ./

web-labs.vercel.app
web-labs-git-main-lsviana.vercel.app
web-labs-lsviana.vercel.app

Please sign in to comment.