From 29165c4c9356fda25ed2df9e06e285ce8010e893 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 20 Feb 2024 00:40:51 +0000 Subject: add bunny.garden assets --- config.yaml | 6 ++--- static/bunny.png | Bin 0 -> 518937 bytes static/style.css | 17 +++++++++++--- templates/head.html | 63 ++++++++++++++++++++++++++------------------------- templates/index.html | 11 ++++++--- 5 files changed, 57 insertions(+), 40 deletions(-) create mode 100644 static/bunny.png diff --git a/config.yaml b/config.yaml index dc7f9e7..f447dd4 100644 --- a/config.yaml +++ b/config.yaml @@ -12,9 +12,9 @@ dirs: templates: ./templates static: ./static meta: - title: git good - description: i think it's a skill issue + title: the bunny garden + description: git repos!!! server: - name: git.icyphox.sh + name: bunny.garden host: 127.0.0.1 port: 5555 diff --git a/static/bunny.png b/static/bunny.png new file mode 100644 index 0000000..296c803 Binary files /dev/null and b/static/bunny.png differ diff --git a/static/style.css b/static/style.css index ce66ba6..64487d6 100644 --- a/static/style.css +++ b/static/style.css @@ -7,9 +7,20 @@ --dark: #f3d0aa; --darker: #f3d0aa; - --sans-font: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; - --display-font: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; - --mono-font: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', 'Roboto Mono', Menlo, Consolas, monospace; + --sans-font: "Darumadrop One", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; + --display-font: "Darumadrop One", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; + --mono-font: 'Victor Mono', 'VictorMono Nerd Font', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', 'Roboto Mono', Menlo, Consolas, monospace; +} + +header { + display: flex; + gap: 2em; + flex-wrap: wrap; +} + +header img { + max-width: 128px; + max-height: 128px; } html { diff --git a/templates/head.html b/templates/head.html index 08c572e..a4a02d2 100644 --- a/templates/head.html +++ b/templates/head.html @@ -1,33 +1,34 @@ {{ define "head" }} - - - - - - - {{ if .parent }} - {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/ - {{ else if .path }} - {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }} - {{ else if .files }} - {{ .meta.Title }} — {{ .name }} ({{ .ref }}) - {{ else if .commit }} - {{ .meta.Title }} — {{ .name }}: {{ .commit.This }} - {{ else if .branches }} - {{ .meta.Title }} — {{ .name }}: refs - {{ else if .commits }} - {{ if .log }} - {{ .meta.Title }} — {{ .name }}: log - {{ else }} - {{ .meta.Title }} — {{ .name }} - {{ end }} - {{ else }} - {{ .meta.Title }} - {{ end }} - {{ if and .servername .gomod }} - - {{ end }} - - -{{ end }} + + + + + + + {{ if .parent }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .parent }}/ + + {{ else if .path }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}): {{ .path }} + {{ else if .files }} + {{ .meta.Title }} — {{ .name }} ({{ .ref }}) + {{ else if .commit }} + {{ .meta.Title }} — {{ .name }}: {{ .commit.This }} + {{ else if .branches }} + {{ .meta.Title }} — {{ .name }}: refs + {{ else if .commits }} + {{ if .log }} + {{ .meta.Title }} — {{ .name }}: log + {{ else }} + {{ .meta.Title }} — {{ .name }} + {{ end }} + {{ else }} + {{ .meta.Title }} + {{ end }} + {{ if and .servername .gomod }} + + {{ end }} + + +{{ end }} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index a820dec..8347468 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,8 +3,13 @@ {{ template "head" . }}
-

{{ .meta.Title }}

-

{{ .meta.Description }}

+
+ +
+
+

{{ .meta.Title }}

+

{{ .meta.Description }}

+
@@ -23,4 +28,4 @@ -{{ end }} \ No newline at end of file +{{ end }} -- cgit