| | @@ -127,10 +127,12 @@ |
| 127 | 127 | </head> |
| 128 | 128 | <body class="h-full bg-gray-950 text-gray-100" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'> |
| 129 | 129 | <div class="min-h-full flex flex-col" x-data="{ mobileSidebar: false }"> |
| 130 | 130 | {% if user.is_authenticated %} |
| 131 | 131 | {% include "includes/nav.html" %} |
| 132 | + {% else %} |
| 133 | + {% include "includes/nav_public.html" %} |
| 132 | 134 | {% endif %} |
| 133 | 135 | |
| 134 | 136 | <div class="flex flex-1 overflow-hidden"> |
| 135 | 137 | {% if user.is_authenticated %} |
| 136 | 138 | <!-- Mobile sidebar overlay --> |
| | @@ -143,11 +145,11 @@ |
| 143 | 145 | </div> |
| 144 | 146 | <!-- Desktop sidebar --> |
| 145 | 147 | {% include "includes/sidebar.html" %} |
| 146 | 148 | {% endif %} |
| 147 | 149 | |
| 148 | | - <main class="flex-1 overflow-y-auto {% if user.is_authenticated %}py-6{% endif %}"> |
| 150 | + <main class="flex-1 overflow-y-auto py-6"> |
| 149 | 151 | <div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8"> |
| 150 | 152 | {% if messages %} |
| 151 | 153 | <div id="messages" class="mb-4 space-y-2"> |
| 152 | 154 | {% for message in messages %} |
| 153 | 155 | <div x-data="{ show: true }" x-show="show" x-init="setTimeout(() => show = false, 4000)" |
| 154 | 156 | |
| 155 | 157 | ADDED templates/includes/nav_public.html |