|
1 | 1 | <div class="relative h-screen flex overflow-hidden"> |
2 | | - <.sidebar |
3 | | - current_user={@current_user} |
4 | | - pages={SafiraWeb.Config.app_pages()} |
5 | | - current_page={Map.get(assigns, :current_page, nil)} |
6 | | - background="bg-primaryDark" |
7 | | - border="border-darkShade" |
8 | | - logo_padding="px-16 pt-8 pb-4" |
9 | | - logo_images={%{light: "/images/sei.svg", dark: "/images/sei.svg"}} |
10 | | - logo_url={~p"/app/"} |
11 | | - user_dropdown_name_color="text-light" |
12 | | - user_dropdown_handle_color="text-lightMuted" |
13 | | - user_dropdown_icon_color="text-lightShade" |
14 | | - link_class="px-3 group flex items-center py-2 text-sm font-medium rounded-md transition-colors" |
15 | | - link_active_class="bg-light text-primaryDark" |
16 | | - link_inactive_class="hover:bg-primary-500/10 text-light" |
17 | | - /> |
| 2 | + <%= if Map.get(assigns, :event_started, true) do %> |
| 3 | + <.sidebar |
| 4 | + current_user={@current_user} |
| 5 | + pages={SafiraWeb.Config.app_pages()} |
| 6 | + current_page={Map.get(assigns, :current_page, nil)} |
| 7 | + background="bg-primaryDark" |
| 8 | + border="border-darkShade" |
| 9 | + logo_padding="px-16 pt-8 pb-4" |
| 10 | + logo_images={%{light: "/images/sei.svg", dark: "/images/sei.svg"}} |
| 11 | + logo_url={~p"/app/"} |
| 12 | + user_dropdown_name_color="text-light" |
| 13 | + user_dropdown_handle_color="text-lightMuted" |
| 14 | + user_dropdown_icon_color="text-lightShade" |
| 15 | + link_class="px-3 group flex items-center py-2 text-sm font-medium rounded-md transition-colors" |
| 16 | + link_active_class="bg-light text-primaryDark" |
| 17 | + link_inactive_class="hover:bg-primary-500/10 text-light" |
| 18 | + /> |
| 19 | + <% end %> |
18 | 20 | <div class="flex flex-col flex-1 overflow-hidden"> |
19 | 21 | <div class="bg-primaryDark flex justify-end lg:hidden px-4 sm:px-6 py-2"> |
20 | 22 | <button |
|
0 commit comments