diff options
author | Matthew Lemon <y@yulqen.org> | 2024-11-11 20:06:16 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-11-11 20:06:16 +0000 |
commit | 6c13cfb192ab4250e446f2d2212a701ffbd447e8 (patch) | |
tree | d9ab27ea2c701d46f49856ff84733e05b272cc92 | |
parent | dc3704d4b85c67e7bf0d1669c879ef36bda12ed2 (diff) |
More tweaking of sign-up form
-rw-r--r-- | app/views/registrations/new.html.erb | 11 | ||||
-rw-r--r-- | app/views/sessions/new.html.erb | 8 |
2 files changed, 11 insertions, 8 deletions
diff --git a/app/views/registrations/new.html.erb b/app/views/registrations/new.html.erb index 05e7be9..3663e5f 100644 --- a/app/views/registrations/new.html.erb +++ b/app/views/registrations/new.html.erb @@ -19,12 +19,12 @@ <div class="my-5"> <%= label_tag "last_name", nil, class: "font-bold text-gray-700" %> - <%= form.text_field :last_name, required: true, autofocus: true, autocomplete: "last_name", placeholder: "Enter your last name", value: params[:last_name], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> + <%= form.text_field :last_name, required: true, autocomplete: "last_name", placeholder: "Enter your last name", value: params[:last_name], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> </div> <div class="my-5"> <%= label_tag "email_address", nil, class: "font-bold text-gray-700" %> - <%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "email_address", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> + <%= form.email_field :email_address, required: true, autocomplete: "email_address", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> </div> <div class="my-5"> @@ -39,12 +39,13 @@ <div class="col-span-6 sm:flex sm:items-center sm:gap-4"> <div class="inline"> - <%= form.submit "Sign in", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> + <%= form.submit "Create account", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> </div> <div class="mt-4 text-sm text-gray-500 sm:mt-0"> - <%= link_to "Forgot password?", new_password_path, class: "text-gray-700 underline" %> - </div> + <%= link_to "Log in", new_session_path, class: "text-gray-700 underline" %> + <%= link_to "Forgot password?", new_password_path, class: "ps-2 text-gray-700 underline" %> </div> <% end %> + <br> </div>
\ No newline at end of file diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 4c17d82..3dd9a3d 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -7,14 +7,16 @@ <p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p> <% end %> - <h1 class="font-bold text-4xl">Sign in</h1> + <h1 class="my-4 font-bold text-4xl">Sign in</h1> <%= form_with url: session_url, class: "contents" do |form| %> - <div class="my-5"> + <%= label_tag "email_address", nil, class: "font-bold text-gray-700" %> + <div class="mb-5"> <%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> </div> - <div class="my-5"> + <%= label_tag "password", nil, class: "font-bold text-gray-700" %> + <div class="mb-5"> <%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> </div> |