defmodule WandererAppWeb.Layouts do use WandererAppWeb, :html embed_templates "layouts/*" attr :rtt_class, :string def ping_container(assigns) do ~H"""
<.icon name="hero-wifi-solid" class="h-4 w-4" />
""" end attr :app_version, :string attr :enabled, :boolean def new_version_banner(assigns) do ~H""" """ end def youtube_container(assigns) do ~H""" <.link href="https://www.youtube.com/@wanderer_ltd" class="flex flex-col p-4 items-center absolute bottom-52 left-0 gap-2 tooltip tooltip-right text-gray-400 hover:text-white" > """ end def donate_container(assigns) do ~H""" <.link href="https://www.patreon.com/WandererLtd" target="_blank" class="flex flex-col p-4 items-center absolute bottom-64 left-1 gap-2 tooltip tooltip-right text-gray-400 hover:text-white" > <.icon name="hero-banknotes-solid" class="h-4 w-4" /> """ end def feedback_container(assigns) do ~H""" <.link href="https://discord.gg/cafERvDD2k" class="flex flex-col p-4 items-center absolute bottom-40 left-1 gap-2 tooltip tooltip-right text-gray-400 hover:text-white" > <.icon name="hero-hand-thumb-up-solid" class="h-4 w-4" /> """ end attr :id, :string attr :active_tab, :atom attr :show_admin, :boolean attr :map_subscriptions_enabled, :boolean def sidebar_nav_links(assigns) do ~H""" """ end attr :href, :string attr :active, :boolean, default: false attr :class, :string, default: "" attr :icon, :string attr :tip, :string defp nav_link(assigns) do ~H"""
  • <.link navigate={@href} class={[ "h-full w-full text-gray-400 hover:text-white block p-3", classes("border-r-4 text-white border-r-orange-400": @active) ]} aria-current={if @active, do: "true", else: "false"} > <.icon name={@icon} class="w-6 h-6" />
  • """ end end