From 96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 4 Nov 2025 23:31:01 -0800 Subject: Initial commit --- src/view/main.phel | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/view/main.phel (limited to 'src/view/main.phel') diff --git a/src/view/main.phel b/src/view/main.phel new file mode 100644 index 0000000..34cb792 --- /dev/null +++ b/src/view/main.phel @@ -0,0 +1,30 @@ +(ns web-skeleton\view\main + (:require phel\html :refer [html doctype])) + +(def- head + [:head + [:meta {:charset "utf-8"}] + [:meta {:name "viewport" :content "width=device-width, initial-scale=1"}] + [:link {:rel "stylesheet" :href "./css/style.css"}] + [:link {:rel "icon" :type "image/png" :href "./images/favicon-32.png"}] + [:title "Phel-lang"]]) + +(def- logo + [:div {:class "logo"} + [:img {:src "./images/logo.svg" :width "360"}]]) + +(def- links + [:div {:class "links"} + [:a {:href "https://phel-lang.org/"} "Homepage"] + [:a {:href "https://phel-lang.org/documentation/getting-started/"} "Getting started"] + [:a {:href "https://github.com/phel-lang/phel-lang"} "GitHub"] + [:a {:href "https://gitter.im/phel-lang/community"} "Community"]]) + +(def- content + [:div {:class "flex-center position-ref full-height"} + [:div {:class "content"} logo links]]) + +(def index-html (html + (doctype :html5) + head + content)) \ No newline at end of file -- cgit v1.3-2-g0d8e