diff --git a/lib/swornforged_web/components/layouts/root.html.heex b/lib/swornforged_web/components/layouts/root.html.heex index a8a05e3..420683a 100644 --- a/lib/swornforged_web/components/layouts/root.html.heex +++ b/lib/swornforged_web/components/layouts/root.html.heex @@ -11,7 +11,7 @@ - + <%= @inner_content %> diff --git a/lib/swornforged_web/controllers/page_controller.ex b/lib/swornforged_web/controllers/page_controller.ex index 3ce290a..617645f 100644 --- a/lib/swornforged_web/controllers/page_controller.ex +++ b/lib/swornforged_web/controllers/page_controller.ex @@ -4,6 +4,6 @@ defmodule SwornforgedWeb.PageController do def home(conn, _params) do # The home page is often custom made, # so skip the default app layout. - render(conn, :home, layout: false) + render(conn, :home, layout: false, dataforged: Cachex.get!(:swornforged, "dataforged")) end end diff --git a/lib/swornforged_web/controllers/page_html/home.html.heex b/lib/swornforged_web/controllers/page_html/home.html.heex index 619f097..be3f932 100644 --- a/lib/swornforged_web/controllers/page_html/home.html.heex +++ b/lib/swornforged_web/controllers/page_html/home.html.heex @@ -1,236 +1,88 @@ - -
-
- -

- Phoenix Framework - - v1.7 - -

-

- Peace of mind from prototype to production. -

-

- Build rich, interactive web applications quickly, with less code and fewer moving parts. Join our growing community of developers using Phoenix to craft APIs, HTML5 apps and more, for fun or at scale. -

-
-
- - +

Swornforged

+
+
+

Assets

+ <%= for asset_type <- @dataforged["Asset Types"] do %> +
+

+ asset_type["$id"]}><%= asset_type["Display"]["Title"] %> +

+
-
+ <% end %> +
+
+

Oracles

+ <%= for oracle_category <- @dataforged["Oracle Categories"] do %> +
+

+ oracle_category["$id"]}> + <%= oracle_category["Display"]["Title"] %> + +

+ +
+ <% end %> +
+
+

Moves

+ <%= for move_category <- @dataforged["Move Categories"] do %> +
+

+ move_category["$id"]}> + <%= move_category["Display"]["Title"] %> + +

+ +
+ <% end %>