Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

design: improve register #218

Merged
merged 3 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions crates/web/src/components/auth/register.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ pub fn SignupCard(
<div class="w-96 p-6 bg-white border border-gray-200 rounded-lg shadow">
<h1 class="text-2xl mb-3 text-center">Sign up</h1>
<form class="space-y-2">
<TextField class="w-full" name="name" placeholder="Name" value=name_value/>
<div class="flex justify-between space-x-2">
<TextField class="w-full" name="name" placeholder="Name" label="Name" value=name_value />
<TextField
class="w-full"
label="Surname"
name="surname"
placeholder="Surname"
value=surname_value
class="w-full"
label="Surname"
name="surname"
placeholder="Surname"
value=surname_value
/>
</div>
<TextField
class="w-full"
label="Username"
Expand All @@ -72,6 +74,7 @@ pub fn SignupCard(
class="w-full"
name="email"
label="Email"
r#type=TextFieldType::Email
placeholder="Email"
value=email_value
/>
Expand Down
2 changes: 1 addition & 1 deletion crates/web/src/components/text_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn TextField(
TextFieldVariant::Primary => {
classes.insert("bg-gray-100");
classes.insert("rounded-md");
classes.insert("placeholder:text-purple-200");
classes.insert("placeholder:text-gray-400");
classes.insert("border");
classes.insert("border-gray-100");
classes.insert("px-2");
Expand Down
Loading