diff --git a/app/assets/images/favicon.ico b/app/assets/images/favicon.ico new file mode 100644 index 0000000..a2788ca Binary files /dev/null and b/app/assets/images/favicon.ico differ diff --git a/app/assets/images/logo.png b/app/assets/images/logo.png new file mode 100644 index 0000000..a2788ca Binary files /dev/null and b/app/assets/images/logo.png differ diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index e1b5749..d80b502 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -8,39 +8,45 @@
- <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4" }) do |form| %> - <%= form.hidden_field :role, value: "user" %> -

Sign Up

- - <% if resource.errors.any? %> - diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index f9378ea..1b15ceb 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -8,7 +8,10 @@
- <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: "bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4" }) do |form| %> +
+
+ <%= image_tag asset_path('logo.png'), alt: 'Logo', class: 'h-16 w-16' %> +

Sign In

<% if flash[:alert] %> @@ -18,36 +21,38 @@
<% end %> -
- <%= form.label :email, class: "block text-gray-700 text-sm font-bold mb-2" %> - <%= form.email_field :email, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline", required: true, autofocus: true %> -
- -
- <%= form.label :password, class: "block text-gray-700 text-sm font-bold mb-2" %> - <%= form.password_field :password, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline", required: true %> -
- - <% if devise_mapping.rememberable? %> + <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: "w-full" }) do |form| %>
- + <%= form.label :email, class: "block text-gray-700 text-sm font-bold mb-2" %> + <%= form.email_field :email, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline", required: true, autofocus: true %> +
+ +
+ <%= form.label :password, class: "block text-gray-700 text-sm font-bold mb-2" %> + <%= form.password_field :password, class: "shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline", required: true %> +
+ + <% if devise_mapping.rememberable? %> +
+ +
+ <% end %> + +
+ <%= form.submit "Sign In", class: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" %> + <% if devise_mapping.recoverable? && controller_name != 'sessions' %> + <%= link_to "Forgot Password?", new_password_path(resource_name), class: "inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800" %> + <% end %>
<% end %> -
- <%= form.submit "Sign In", class: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" %> - <% if devise_mapping.recoverable? && controller_name != 'sessions' %> - <%= link_to "Forgot Password?", new_password_path(resource_name), class: "inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800" %> - <% end %> -
- <% end %> - -

- Don't have an account? <%= link_to "Sign Up", new_registration_path(resource_name), class: "font-bold text-sm text-blue-500 hover:text-blue-800" %> -

+

+ Don't have an account? <%= link_to "Sign Up", new_registration_path(resource_name), class: "font-bold text-sm text-blue-500 hover:text-blue-800" %> +

+
diff --git a/app/views/layouts/_signed_in_header.html.erb b/app/views/layouts/_signed_in_header.html.erb index b0328cb..f294fc3 100644 --- a/app/views/layouts/_signed_in_header.html.erb +++ b/app/views/layouts/_signed_in_header.html.erb @@ -8,9 +8,10 @@ >
+ <%= image_tag asset_path('logo.png'), alt: 'Logo', class: 'h-8 w-8 mr-2' %> Llamagator