diff --git a/main.go b/main.go index e05c422..0174e6e 100644 --- a/main.go +++ b/main.go @@ -55,15 +55,23 @@ func main() { } g.Templates = append(g.Templates, "templates/base/*.gohtml") - t := golatt.Template{ + home := golatt.Template{ Golatt: g, Name: "index", Title: data.Person.Name, Data: &data, URL: "/", } + credits := golatt.Template{ + Golatt: g, + Name: "credits", + Title: "Credits", + Data: &data, + URL: "/credits", + } - g.HandleFunc("/", t.Handle()) + g.HandleFunc("/", home.Handle()) + g.HandleFunc("/credits", credits.Handle()) g.StartServer(":8000") } diff --git a/scss/main.scss b/scss/main.scss index 31e7246..ca803b2 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -16,9 +16,13 @@ body { color: var(--text-color); } +a { + color: var(--text-color); +} + .credits { position: absolute; - bottom: 1em; + bottom: 0; display: flex; gap: 1em; font-size: 16px; @@ -32,6 +36,18 @@ main { padding: 2rem; border-radius: 32px; box-shadow: 0 0 70px 2px rgba(0,0,0,0.75); + & h1, h2, h3 { + margin: 0; + } +} + +h1, h2, h3 { + margin-bottom: 1rem; + margin-top: 2rem; +} + +p { + margin-bottom: 0.5rem; } h1 { @@ -42,6 +58,10 @@ h2 { font-size: 2rem; } +h3 { + font-size: 1.5rem; +} + .presentation { position: relative; display: flex; @@ -58,6 +78,9 @@ h2 { align-items: center; justify-content: center; gap: 0.5rem; + & p { + margin: 0; + } } & figure { display: inline; @@ -104,3 +127,7 @@ h2 { } } } + +.credits-legal { + width: 70%; +} diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml index 003eab1..8546d67 100644 --- a/templates/base/base.gohtml +++ b/templates/base/base.gohtml @@ -14,6 +14,7 @@

Crafted by Anhgelus Morhtuuzh

Legal information

+

Credits

diff --git a/templates/page/credits.gohtml b/templates/page/credits.gohtml new file mode 100644 index 0000000..c3ed576 --- /dev/null +++ b/templates/page/credits.gohtml @@ -0,0 +1,14 @@ +{{define "body"}} + +{{end}} \ No newline at end of file