SignUpCard
Sign Up
html
<div class="jumpu-card mx-auto w-96">
<div class="p-8">
<form action="#">
<div class="my-4 text-center text-xl">新規登録</div>
<label class="relative mb-4 block">
<span class="mb-2 block text-sm">メールアドレス</span>
<input
type="text"
class="jumpu-input w-full"
placeholder="example@hoge.com"
aria-required="true"
required
/>
</label>
<label class="relative mb-4 block">
<span class="mb-2 block text-sm">パスワード</span>
<input type="password" class="jumpu-input w-full" required />
</label>
<label class="relative mb-6 block">
<span class="mb-2 block text-sm"
>確認用パスワード(上記と同じもの)</span
>
<input type="password" class="jumpu-input w-full" required />
</label>
<div class="bg-warning/10 mb-6 rounded-md">
<label class="flex px-4 py-3">
<input type="checkbox" class="jumpu-input mr-2" />
<span class="text-sm">
<a class="text-primary-500" href="#">ご利用規約</a>
を読んで内容に同意しました
</span>
</label>
</div>
<input type="submit" class="jumpu-button w-full" value="登録する" />
</form>
</div>
</div>
Empty
html
<div class="jumpu-card mx-auto w-96">
<div class="p-8">
<form action="#">
<div class="my-4 text-center text-xl">新規登録</div>
<label class="relative mb-4 block">
<span class="mb-2 block text-sm">メールアドレス</span>
<input
type="text"
class="jumpu-input w-full"
placeholder="example@hoge.com"
aria-required="true"
required
/>
</label>
<label class="relative mb-4 block">
<span class="mb-2 block text-sm">パスワード</span>
<input type="password" class="jumpu-input w-full" required />
</label>
<label class="relative mb-6 block">
<span class="mb-2 block text-sm"
>確認用パスワード(上記と同じもの)</span
>
<input type="password" class="jumpu-input w-full" required />
</label>
<div class="bg-warning/10 mb-6 rounded-md">
<label class="flex px-4 py-3">
<input type="checkbox" class="jumpu-input mr-2" />
<span class="text-sm">
<a class="text-primary-500" href="#">ご利用規約</a>
を読んで内容に同意しました
</span>
</label>
</div>
<input
type="submit"
disabled
class="jumpu-button w-full"
value="登録する"
/>
</form>
</div>
</div>
Valid
html
<div class="jumpu-card mx-auto w-96">
<div class="p-8">
<form action="#">
<div class="my-4 text-center text-xl">新規登録</div>
<label class="relative mb-4 block">
<span class="mb-2 block text-sm">メールアドレス</span>
<input
type="text"
class="jumpu-input w-full"
value="example@hoge.com"
placeholder="example@hoge.com"
aria-required="true"
required
/>
<i
class="fas fa-check text-success absolute right-3 top-1/2 translate-y-1/2 transform"
></i>
</label>
<label class="relative mb-4 block">
<div class="mb-2 text-sm">パスワード</div>
<input
type="password"
class="jumpu-input w-full"
value="password"
required
/>
<i
class="fas fa-check text-success absolute right-3 top-1/2 translate-y-1/2 transform"
></i>
</label>
<label class="relative mb-6 block">
<div class="mb-2 text-sm">確認用パスワード(上記と同じもの)</div>
<input
type="password"
class="jumpu-input w-full"
required
value="password"
/>
<i
class="fas fa-check text-success absolute right-3 top-1/2 translate-y-1/2 transform"
></i>
</label>
<div class="bg-warning/10 mb-6 rounded-md">
<label class="flex px-4 py-3">
<input type="checkbox" class="jumpu-input mr-2" checked />
<span class="text-sm">
<a class="text-primary-500" href="#">ご利用規約</a>
を読んで内容に同意しました
</span>
</label>
</div>
<input type="submit" class="jumpu-button w-full" value="登録する" />
</form>
</div>
</div>
Invalid
html
<div class="jumpu-card mx-auto w-96">
<div class="p-8">
<form action="#">
<div class="my-4 text-center text-xl">新規登録</div>
<div class="bg-danger mb-4 rounded-md px-4 py-3 text-xs text-white">
正しいメールアドレスを入力してください<br />
パスワードが違うようです...<br />
ご利用規約への同意が必要です
</div>
<label class="relative mb-4 block">
<span class="mb-2 block text-sm">メールアドレス</span>
<input
type="text"
class="jumpu-input border-danger bg-danger/5 w-full"
placeholder="example@hoge.com"
aria-required="true"
required
/>
</label>
<label class="relative mb-4 block">
<div class="mb-2 text-sm">パスワード</div>
<input
type="password"
class="jumpu-input border-danger bg-danger/5 w-full"
required
/>
</label>
<label class="relative mb-6 block">
<div class="mb-2 text-sm">確認用パスワード(上記と同じもの)</div>
<input
type="password"
class="jumpu-input border-danger bg-danger/5 w-full"
required
/>
</label>
<div class="bg-danger/10 mb-6 rounded-md">
<label class="flex px-4 py-3">
<input type="checkbox" class="jumpu-input mr-2" />
<span class="text-sm">
<a class="text-primary-500" href="#">ご利用規約</a>
を読んで内容に同意しました
</span>
</label>
</div>
<input
type="submit"
disabled
class="jumpu-button w-full"
value="登録する"
/>
</form>
</div>
</div>