diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/_navbar.html.erb | 11 | ||||
-rw-r--r-- | app/views/pages/home.html.erb | 5 | ||||
-rw-r--r-- | app/views/pages/more_info.html.erb | 2 |
3 files changed, 12 insertions, 6 deletions
diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb index af7a0e4..952e291 100644 --- a/app/views/layouts/_navbar.html.erb +++ b/app/views/layouts/_navbar.html.erb @@ -15,16 +15,17 @@ <a href="#" class="block py-2 px-3 rounded">About</a> </li> <li> - <a href="#" class="block py-2 px-3 rounded">Services</a> - </li> - <li> - <a href="#" class="block py-2 px-3 rounded">Pricing</a> + <a href="#" class="block py-2 px-3 rounded">FAQ</a> </li> <li> <a href="#" class="block py-2 px-3 rounde">Contact</a> </li> <li> - <%= link_to "Log out", Current.session, class: "block py-2 px-3", data: { turbo_method: :delete }%> + <% if Current.user %> + <%= link_to "Log out", Current.session, class: "block py-2 px-3", data: { turbo_method: :delete } %> + <% else %> + <%= link_to "Log in", new_session_path, class: "block py-2 px-3" %> + <% end %> </li> </ul> </div> diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb index 48d6433..e3dba04 100644 --- a/app/views/pages/home.html.erb +++ b/app/views/pages/home.html.erb @@ -1,4 +1,9 @@ <div class="min-h-screen"> + <% if notice.present? %> + <div class="flex justify-center"> + <p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p> + </div> + <% end %> <section class="bg-gradient-to-r from-blue-300 to-blue-800 text-white"> <div class="container mx-auto px-4 py-20"> <div class="max-w-3xl mx-auto text-center"> diff --git a/app/views/pages/more_info.html.erb b/app/views/pages/more_info.html.erb index cba5373..9665410 100644 --- a/app/views/pages/more_info.html.erb +++ b/app/views/pages/more_info.html.erb @@ -1,7 +1,7 @@ <div class="container mx-auto px-4 py-8 max-w-7xl"> <!-- Title with gradient similar to Featured Resources --> <h1 class="text-4xl md:text-5xl font-bold text-center mb-12 bg-gradient-to-r from-blue-500 to-green-500 bg-clip-text text-transparent relative"> - More Information + Benefits of registering now <!-- Underline effect --> <span class="absolute bottom-0 left-1/2 transform -translate-x-1/2 w-24 h-1 bg-gradient-to-r from-blue-500 to-green-500 -mb-4"></span> </h1> |