From 3927db4f9c765441ceae3b5ba7dc307bec1281bb Mon Sep 17 00:00:00 2001 From: Deepak Jois Date: Thu, 8 Aug 2024 19:50:25 +0530 Subject: [PATCH] Add some styles --- content/index.html | 12 +++++++--- main.go | 4 ++-- static/styles.css | 54 ++++++++++++++++++++++++++++++++++++++++++++ templates/shell.html | 9 +++++--- 4 files changed, 71 insertions(+), 8 deletions(-) create mode 100644 static/styles.css diff --git a/content/index.html b/content/index.html index c17d848c..2cdcd7d0 100644 --- a/content/index.html +++ b/content/index.html @@ -1,3 +1,9 @@ -
-

Coming Soon

-
\ No newline at end of file +

Deepak Jois

+ +

I am computer programmer with a highly distractable brain.

+ +

I keep a daily log.

+ +

You can follow me on X and Instagram, or email me at deepak.jois@gmail.com 🫶🏽.

+ +

> Currently, I am digging into AI models and perfecting my pidgin Spanish.

\ No newline at end of file diff --git a/main.go b/main.go index 29dc917b..6ace3920 100644 --- a/main.go +++ b/main.go @@ -60,7 +60,7 @@ func generateIndexPage(tmpl *template.Template) error { } page := Page{ - Title: "Coming Soon", + Title: "Deepak Jois", Body: template.HTML(content), } @@ -81,7 +81,7 @@ func generateDailyNotesPage(tmpl *template.Template) error { } page := Page{ - Title: "Daily Notes", + Title: "Deepak Jois · Daily Notes", Body: template.HTML(buf.String()), } diff --git a/static/styles.css b/static/styles.css new file mode 100644 index 00000000..d44645c3 --- /dev/null +++ b/static/styles.css @@ -0,0 +1,54 @@ +html { + font-size: 15px; + text-size-adjust: none; +} + +body { + background-color: hsl(150, 5%, 10%);; + color: hsl(150, 10%, 80%); + font-family: "IBM Plex Mono", Courier, monospace; + font-size: 1rem; + font-weight: 400; + line-height: 1.6; + margin: 0; + padding: 0; + text-wrap: pretty; + } + +main { + margin-inline: auto; + max-width: 70ch; + padding: 4vw; +} + +h3 { + font-size: 2rem; + line-height: 1.2; +} + +p { + margin: 1.5rem auto; +} + +h3 + p { + margin-top: -1.2rem; +} + +hr { + border: 1px dashed; + margin-block: 3em; +} + +a { + /* color: hsl(0, 100%, 100%); */ + color: #e1adc2; + text-decoration-thickness: 1px; + text-underline-offset: 2px; +} + +code, .hashtag { + background-color: #272822; + border-radius: 0.25em; + color: #f8f8f2; + padding: 0.05em 0.25em; +} \ No newline at end of file diff --git a/templates/shell.html b/templates/shell.html index 705f1d41..dadbe470 100644 --- a/templates/shell.html +++ b/templates/shell.html @@ -7,12 +7,15 @@ + + + + {{.Title}} +
{{.Body}} - +