From 24e058c3eb3a278023c4ecee7efa9a73774ded0b Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Sat, 4 Feb 2023 08:07:34 -0500 Subject: theme development --- assets/blackbear/.gitkeep | 0 assets/css/main.css | 12 ++++++++++++ layouts/index.html | 5 +++++ layouts/partials/footer.html | 3 +++ layouts/partials/head.html | 9 +++++++++ layouts/partials/header.html | 8 ++++++++ layouts/shortcodes/form-contact.html | 20 ++++++++++++++++++++ static/css/main.css | 16 ++++++++++++++++ 8 files changed, 73 insertions(+) delete mode 100644 assets/blackbear/.gitkeep create mode 100644 assets/css/main.css create mode 100644 layouts/shortcodes/form-contact.html create mode 100644 static/css/main.css diff --git a/assets/blackbear/.gitkeep b/assets/blackbear/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/assets/css/main.css b/assets/css/main.css new file mode 100644 index 0000000..806fa19 --- /dev/null +++ b/assets/css/main.css @@ -0,0 +1,12 @@ +header { + background: red; +} + +footer { + background: blue; + color: red; +} + +main { + background: green; +} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index e69de29..273d161 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -0,0 +1,5 @@ +{{ define "main" }} +
+

Hello World

+
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..e72253b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..73308f4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,9 @@ + + {{ .Title }} + {{ with resources.Get "css/main.css" }} + + {{ end }} + {{- template "_internal/opengraph.html" . -}} + {{- template "_internal/schema.html" . -}} + {{- template "_internal/twitter_cards.html" . -}} + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..d0930a3 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,8 @@ +
+

{{ .Title | default .Site.Title }}

+ +
\ No newline at end of file diff --git a/layouts/shortcodes/form-contact.html b/layouts/shortcodes/form-contact.html new file mode 100644 index 0000000..d06b248 --- /dev/null +++ b/layouts/shortcodes/form-contact.html @@ -0,0 +1,20 @@ +{{ $.Scratch.Add "labelClasses" "f6 b db mb1 mt3 sans-serif mid-gray" }} +{{ $.Scratch.Add "inputClasses" "w-100 f5 pv3 ph3 bg-light-gray bn" }} + +
+ + + + + + +
+ {{ i18n "emailRequiredNote" }} +
+ + + + + + +
diff --git a/static/css/main.css b/static/css/main.css new file mode 100644 index 0000000..d4c7edd --- /dev/null +++ b/static/css/main.css @@ -0,0 +1,16 @@ +header { + background: red; +} + +footer { + background: blue; + color: red; +} + +main { + background: green; +} + +body { + background: yellow; +} \ No newline at end of file -- cgit v1.1