Packages

This mix task allows you to start a server anywhere on the file system and serve files.

Current section

Files

Jump to
ex_server lib server_web views layout_view.ex
Raw

lib/server_web/views/layout_view.ex

defmodule ExServerWeb.LayoutView do
use ExServerWeb, :view
alias Phoenix.LiveView.JS
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
def nav_classes do
"border-b-2 border-transparent hover:text-gray-800 transition-colors duration-200 transform dark:hover:text-gray-200 hover:border-blue-500 mx-1.5 sm:mx-6"
end
end