Skip to content

Commit

Permalink
layout: Scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Sep 29, 2024
1 parent c3becb1 commit 6c5b76e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
Binary file added resources/public/images/icons/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion src/tools/ifs/parts/layouts/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@
[title & content]
(html5
[:head
[:meta {:charset "utf-8"}]
[:meta {:name "viewport" :content "width=device-width, initial-scale=1"}]
[:meta {:name "description" :content "Toolkit for IFS practitioners and their clients"}]
[:link {:rel "icon" :sizes "192x192" :href "/images/icons/favicon.png"}]
[:link {:rel "apple-touch-icon" :href "/images/icons/favicon.png"}]
[:title title]
(include-css "/css/style.css")
(include-js "/js/main.js")]
[:body
[:div#app content]
[:secton#container content]
[:script
"window.addEventListener('load', function () { tools.ifs.parts.core.init(); });"]]))
13 changes: 11 additions & 2 deletions src/tools/ifs/parts/layouts/partials.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@
"Site header"
[]
[:header
[:h1 "This is partials/header"]])
[:p {:align "center"}
[:img {:src "/images/parts-logo-horizontal.svg"}]]])

(defn footer
"Site footer"
[]
[:footer
[:p "This is partials/footer"]])
[:div.copyright
[:p
"© 2024 "
[:a {:href "https://a.possible.space"} "A Possible Space Ltd"]
[:br]
"Company number 11617016"]]
[:div.meta
[:p
[:a {:href "https://github.com/apossiblespace/parts"} "Source code on GitHub"]]]])

0 comments on commit 6c5b76e

Please sign in to comment.