|
37 | 37 | <% if Current.session&.user&.admin? %> |
38 | 38 | <%= link_to "Admin", admin_dashboard_path, class: "hover:text-blue-700 transition-colors" %> |
39 | 39 | <% end %> |
40 | | - <%= link_to "Profile", edit_profile_path, class: "hover:text-blue-700 transition-colors" %> |
41 | | - <%= button_to "Sign out", session_path, method: :delete, class: "hover:text-blue-700 transition-colors cursor-pointer" %> |
| 40 | + <%= link_to "Profile", edit_profile_path, class: "hover:text-blue-700 transition-colors hidden sm:inline" %> |
| 41 | + <%= button_to "Sign out", session_path, method: :delete, class: "hover:text-blue-700 transition-colors cursor-pointer hidden sm:inline" %> |
42 | 42 | <% else %> |
43 | 43 | <%= link_to "Sign in", new_session_path, class: "hover:text-blue-700 transition-colors" %> |
44 | | - <%= link_to "Sign up", new_signup_path, class: "hover:text-blue-700 transition-colors" %> |
| 44 | + <%= link_to "Sign up", new_signup_path, class: "hover:text-blue-700 transition-colors hidden sm:inline" %> |
45 | 45 | <% end %> |
46 | 46 | </div> |
47 | 47 | </div> |
48 | 48 | </header> |
49 | 49 |
|
50 | 50 | <div class="flex flex-1 overflow-hidden" data-controller="sidebar"> |
51 | | - <%# Sidebar %> |
52 | | - <aside data-sidebar-target="sidebar" class="w-16 bg-white border-r border-gray-200 flex flex-col transition-all duration-200 ease-in-out shrink-0"> |
| 51 | + <%# Desktop sidebar - hidden on mobile %> |
| 52 | + <aside data-sidebar-target="sidebar" class="hidden md:flex w-16 bg-white border-r border-gray-200 flex-col transition-all duration-200 ease-in-out shrink-0"> |
53 | 53 | <div class="p-3"> |
54 | 54 | <button data-action="click->sidebar#toggle" class="w-10 h-10 flex items-center justify-center rounded-lg text-gray-500 hover:bg-gray-100 hover:text-gray-700 transition-colors cursor-pointer" aria-label="Toggle sidebar"> |
55 | 55 | <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5"> |
|
72 | 72 | </aside> |
73 | 73 |
|
74 | 74 | <%# Main content %> |
75 | | - <main class="flex-1 overflow-y-auto"> |
| 75 | + <main class="flex-1 overflow-y-auto pb-16 md:pb-0"> |
76 | 76 | <% if notice %> |
77 | 77 | <div class="px-6 pt-4"> |
78 | 78 | <p class="py-2 px-3 bg-green-50 text-green-700 font-medium rounded-lg" id="notice"><%= notice %></p> |
|
86 | 86 | <%= yield %> |
87 | 87 | </main> |
88 | 88 | </div> |
| 89 | + |
| 90 | + <%# Mobile bottom navigation - hidden on desktop %> |
| 91 | + <nav class="md:hidden fixed bottom-0 inset-x-0 bg-white border-t border-gray-200 z-50"> |
| 92 | + <div class="flex items-center justify-around h-16 px-2"> |
| 93 | + <%= bottom_nav_link("Dashboard", dashboard_path, "dashboard") %> |
| 94 | + <%= bottom_nav_link("Meetings", meetings_path, "meetings") %> |
| 95 | + <%= bottom_nav_link("Council", council_members_path, "council_members") %> |
| 96 | + <%= bottom_nav_link("Topics", tags_path, "topics") %> |
| 97 | + <%= bottom_nav_link("Search", search_path, "search") %> |
| 98 | + <% if authenticated? %> |
| 99 | + <%= bottom_nav_link("Starred", stars_path, "starred") %> |
| 100 | + <% end %> |
| 101 | + </div> |
| 102 | + </nav> |
89 | 103 | </body> |
90 | 104 | </html> |
0 commit comments