From 16b1a4180f986cdc74e53313d87a8873b3a33b07 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 9 Jul 2023 19:06:02 +0300 Subject: [PATCH] Add the simple index page. --- CHANGELOG.org | 2 ++ .../templates/layout/root.html.heex | 29 +++++++++++++++++++ .../templates/page/index.html.heex | 4 +++ 3 files changed, 35 insertions(+) create mode 100644 lib/link_shortener_web/templates/layout/root.html.heex create mode 100644 lib/link_shortener_web/templates/page/index.html.heex diff --git a/CHANGELOG.org b/CHANGELOG.org index a23b867..430530f 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -13,4 +13,6 @@ Added a method to create an Link using a generator. ** 0.3.0 <2023-07-08 Sat> Added the redirect route. +** 0.3.1 <2023-07-09 Sun> + Added the simple index page. diff --git a/lib/link_shortener_web/templates/layout/root.html.heex b/lib/link_shortener_web/templates/layout/root.html.heex new file mode 100644 index 0000000..7e642dd --- /dev/null +++ b/lib/link_shortener_web/templates/layout/root.html.heex @@ -0,0 +1,29 @@ + + + + + + + + <%= live_title_tag assigns[:page_title] || "LinkShortener", suffix: " ยท Phoenix Framework" %> + + + + +
+
+ + +
+
+ <%= @inner_content %> + + diff --git a/lib/link_shortener_web/templates/page/index.html.heex b/lib/link_shortener_web/templates/page/index.html.heex new file mode 100644 index 0000000..6f6e8cc --- /dev/null +++ b/lib/link_shortener_web/templates/page/index.html.heex @@ -0,0 +1,4 @@ +
+

Usage

+

Go to a url like: "/u/{shorten name}".

+