diff options
author | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-02-04 08:07:34 -0500 |
---|---|---|
committer | Zach Berwaldt <zberwaldt@tutamail.com> | 2023-02-04 08:07:34 -0500 |
commit | 24e058c3eb3a278023c4ecee7efa9a73774ded0b (patch) | |
tree | ebda1d575934102a4012dbb5d01df35debeaff27 | |
parent | 0e39b5cd5bd26d408355e01d46c356d093befe1c (diff) |
theme development
-rw-r--r-- | assets/blackbear/.gitkeep | 0 | ||||
-rw-r--r-- | assets/css/main.css | 12 | ||||
-rw-r--r-- | layouts/index.html | 5 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 | ||||
-rw-r--r-- | layouts/partials/head.html | 9 | ||||
-rw-r--r-- | layouts/partials/header.html | 8 | ||||
-rw-r--r-- | layouts/shortcodes/form-contact.html | 20 | ||||
-rw-r--r-- | static/css/main.css | 16 |
8 files changed, 73 insertions, 0 deletions
diff --git a/assets/blackbear/.gitkeep b/assets/blackbear/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/assets/blackbear/.gitkeep +++ /dev/null | |||
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 @@ | |||
1 | header { | ||
2 | background: red; | ||
3 | } | ||
4 | |||
5 | footer { | ||
6 | background: blue; | ||
7 | color: red; | ||
8 | } | ||
9 | |||
10 | main { | ||
11 | background: green; | ||
12 | } \ 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 @@ | |||
1 | {{ define "main" }} | ||
2 | <div> | ||
3 | <h1>Hello World</h1> | ||
4 | </div> | ||
5 | {{ 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 @@ | |||
1 | <footer> | ||
2 | <h1>{{ .Title }}</h1> | ||
3 | </footer> \ 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 @@ | |||
1 | <head> | ||
2 | <title>{{ .Title }}</title> | ||
3 | {{ with resources.Get "css/main.css" }} | ||
4 | <link rel="stylesheet" href="{{ .RelPermalink }}"> | ||
5 | {{ end }} | ||
6 | {{- template "_internal/opengraph.html" . -}} | ||
7 | {{- template "_internal/schema.html" . -}} | ||
8 | {{- template "_internal/twitter_cards.html" . -}} | ||
9 | </head> \ 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 @@ | |||
1 | <header> | ||
2 | <h1>{{ .Title | default .Site.Title }}</h1> | ||
3 | <nav> | ||
4 | {{ range .Site.Menus.main }} | ||
5 | <a href="{{ .URL }}">{{ .Name }}</a> | ||
6 | {{ end }} | ||
7 | </nav> | ||
8 | </header> \ 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 @@ | |||
1 | {{ $.Scratch.Add "labelClasses" "f6 b db mb1 mt3 sans-serif mid-gray" }} | ||
2 | {{ $.Scratch.Add "inputClasses" "w-100 f5 pv3 ph3 bg-light-gray bn" }} | ||
3 | |||
4 | <form class="black-80 sans-serif" accept-charset="UTF-8" action="{{ .Get "action" }}" method="POST" role="form"> | ||
5 | |||
6 | <label class="{{ $.Scratch.Get "labelClasses" }}" for="name">{{ i18n "yourName" }}</label> | ||
7 | <input type="text" id="name" name="name" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="name"/> | ||
8 | |||
9 | <label class="{{ $.Scratch.Get "labelClasses" }}" for="email">{{ i18n "emailAddress" }}</label> | ||
10 | <input type="email" id="email" name="email" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="email"/> | ||
11 | <div class="requirements f6 gray glow i ph3 overflow-hidden"> | ||
12 | {{ i18n "emailRequiredNote" }} | ||
13 | </div> | ||
14 | |||
15 | <label class="{{ $.Scratch.Get "labelClasses" }}" for="message">{{ i18n "message" }}</label> | ||
16 | <textarea id="message" name="message" class="{{ $.Scratch.Get "inputClasses" }} h4" aria-labelledby="message"></textarea> | ||
17 | |||
18 | <input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-black bg-animate bg-black" type="submit" value="{{ i18n "send" }}" /> | ||
19 | |||
20 | </form> | ||
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 @@ | |||
1 | header { | ||
2 | background: red; | ||
3 | } | ||
4 | |||
5 | footer { | ||
6 | background: blue; | ||
7 | color: red; | ||
8 | } | ||
9 | |||
10 | main { | ||
11 | background: green; | ||
12 | } | ||
13 | |||
14 | body { | ||
15 | background: yellow; | ||
16 | } \ No newline at end of file | ||