aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/pages
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-15 15:10:05 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-15 15:10:14 +0000
commitf1d04d1390ac0e755e6ac4778927bf06c86e9ba3 (patch)
tree54d7f70f574dd6bfa300e00dad7b717af3ad180e /app/views/pages
parentda69dec36f9ee1f09cf19fbaae4c138051847357 (diff)
Refactor user session handling and UI enhancements.
Updated logout redirection with a success notice and improved UI feedback on the home page. Enhanced navbar logic to reflect user authentication state, modified page titles, and adjusted access permissions for various controllers. Fixed admin access control for PDF resources index action.
Diffstat (limited to 'app/views/pages')
-rw-r--r--app/views/pages/home.html.erb5
-rw-r--r--app/views/pages/more_info.html.erb2
2 files changed, 6 insertions, 1 deletions
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>