From 240fdd29650a6c274becf5d0c1ac67bbdab26899 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 7 Feb 2022 23:50:32 -0500 Subject: [PATCH] use heex for home page --- lib/cannery_web/live/home_live.ex | 83 ++++++++++++++++++++++++ lib/cannery_web/live/home_live.html.leex | 68 ------------------- 2 files changed, 83 insertions(+), 68 deletions(-) delete mode 100644 lib/cannery_web/live/home_live.html.leex 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""" +
+

+ Welcome to Cannery +

+ +

+ The Self-hosted Ammo Tracker Website +

+ +
+ + + +
+ + +
+ """ + end + defp search(query) do if not CanneryWeb.Endpoint.config(:code_reloader) do raise "action disabled when not in development" diff --git a/lib/cannery_web/live/home_live.html.leex b/lib/cannery_web/live/home_live.html.leex deleted file mode 100644 index 045e32fd..00000000 --- a/lib/cannery_web/live/home_live.html.leex +++ /dev/null @@ -1,68 +0,0 @@ -
-

- Welcome to Cannery -

- -

- The Self-hosted Ammo Tracker Website -

- -
- - - -
- - -