summaryrefslogtreecommitdiffstats
path: root/src/view
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-11-04 23:31:01 -0800
committerGravatar Tom Willemse2025-11-04 23:31:01 -0800
commit96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9 (patch)
tree5f691a3f3ec2faa0fb92b3394108cb4c63fccac5 /src/view
downloadlezer-96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9.tar.gz
lezer-96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9.zip
Initial commit
Diffstat (limited to 'src/view')
-rw-r--r--src/view/main.phel30
1 files changed, 30 insertions, 0 deletions
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