diff --git a/assets/scss/index.scss b/assets/scss/index.scss index b49c1af..f8dcdf7 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -1,6 +1,35 @@ $font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; $width: 680px; +$lightBg: white; +$lightText: black; +$darkBg: #383838; +$darkText: white; + +:root { + color-scheme: light dark; +} + +body { + background-color: $darkBg; + color: $darkText; +} +body.light { + background-color: $lightBg; + color: $lightText; +} + +@media (prefers-color-scheme: light) { + body { + background-color: $lightBg; + color: $lightText; + } + body.dark { + background-color: $darkBg; + color: $darkText; + } +} + * { box-sizing: border-box; word-break: break-word; @@ -10,6 +39,11 @@ html { scroll-behavior: smooth; } +header, footer { + background-color: black; + color: white; +} + html, body { height: 100%; } @@ -18,7 +52,6 @@ body { margin: 0; display: flex; flex-direction: column; - color: #333; font-family: $font; font-weight: 400; font-style: normal; @@ -76,6 +109,10 @@ a { float: left; } +.rotate-45 {-webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg);} +.rotate-90 {-webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -o-transform: rotate(90deg); transform: rotate(90deg);} +.rotate-180 { -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg);} + .row { display: flex; flex-wrap: wrap; @@ -195,7 +232,7 @@ a { } .section-even { - background-color: #eee; + // background-color: #eee; } .section-highlight { @@ -243,7 +280,7 @@ a { border-bottom: 3px solid {{ .Site.Params.color.primary }}; } -.hero-content div { +.hero-content > div { flex-grow: 1; display: flex; flex-direction: column; @@ -251,6 +288,21 @@ a { padding-inline-start: 25px; } +.hero-content .social { + display: flex; + flex-direction: row; + flex-wrap: wrap; +} + +.hero-content .social i { + font-size: x-large; +} + +.hero-content .social a { + padding-inline: 6px; + color: {{ .Site.Params.color.primary }}; +} + /* Buttons */ button { @@ -304,6 +356,5 @@ img { border-radius: 50%; border: 3px solid {{ .Site.Params.color.primary }}; object-fit: cover; - margin: 0 auto; width: 150px; } \ No newline at end of file diff --git a/layouts/partials/components/icon.html b/layouts/partials/components/icon.html new file mode 100644 index 0000000..ce3aaa1 --- /dev/null +++ b/layouts/partials/components/icon.html @@ -0,0 +1,6 @@ + +{{ if .text }} {{ .text }}{{ end }} \ No newline at end of file diff --git a/layouts/partials/components/image.html b/layouts/partials/components/image.html index 6274420..b7f07a5 100644 --- a/layouts/partials/components/image.html +++ b/layouts/partials/components/image.html @@ -3,5 +3,8 @@ type: string - default url: string alt: string --> + {{ $avatar := "avatar"}} -{{ .alt }} \ No newline at end of file +{{ .alt }} + +{{/* https://www.brycewray.com/posts/2023/05/better-code-image-processing-hugo-render-hook-edition/ */}} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index d08eee6..20b4617 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@ {{ if .social }}
{{ range .social }} - {{ if .text }}{{ .text }}{{ end }} + {{ partial "components/icon.html" . }} {{ end }}
{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a43bcc1..52aac10 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,6 +4,7 @@ + {{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }} {{ block "opengraph" . }} @@ -39,6 +40,6 @@ {{ $index := $template | resources.ExecuteAsTemplate "css/index.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }} {{ end }} - + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1c2279f..bd130d4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,13 +1,15 @@ {{ with .Site.Params.header }} -