diff --git a/lib/cannery_web/live/home_live.ex b/lib/cannery_web/live/home_live.ex index 87d06304..a31e39f8 100644 --- a/lib/cannery_web/live/home_live.ex +++ b/lib/cannery_web/live/home_live.ex @@ -31,6 +31,89 @@ defmodule CanneryWeb.HomeLive do end end + @impl true + def render(assigns) do + ~H""" +
Cannery lets you easily keep an eye on your ammo levels before and after range day
++ Self-host your own instance, or use an instance from someone you trust. + Your data stays with you, period +
+Access from any internet-capable device
++ <%= if @admins |> Enum.empty?() do %> + <%= link("Sign up to setup Cannery!", + class: "hover:underline", + to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) + ) %> + <% else %> +
+ <%= Application.get_env(:cannery, CanneryWeb.Endpoint)[:registration] + |> case do + "public" -> "Public Signups" + _ -> "Invite Only" + end %> +
+- Cannery lets you easily keep an eye on your ammo levels before and after range day -
-- Self-host your own instance, or use an instance from someone you trust. -
-- Access from any internet-capable device -
-- <%= if @admins |> Enum.empty?() do %> - <%= link "Sign up to setup Cannery!", class: "hover:underline", - to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) %> - <% else %> -
- <%= Application.get_env(:cannery, CanneryWeb.Endpoint)[:registration] - |> case do - "public" -> "Public Signups" - _ -> "Invite Only" - end %> -
-