diff --git a/assets/scss/_header.scss b/assets/scss/_header.scss index 5577fcb..79cfd5e 100644 --- a/assets/scss/_header.scss +++ b/assets/scss/_header.scss @@ -7,7 +7,7 @@ padding: 20px; .dark-theme & { - background: #252627; + background: $dark-background-secondary; } &__right { diff --git a/assets/scss/_logo.scss b/assets/scss/_logo.scss index 1a83b1a..2491930 100644 --- a/assets/scss/_logo.scss +++ b/assets/scss/_logo.scss @@ -22,7 +22,7 @@ display: inline-block; width: 10px; height: 1rem; - background: #fe5186; + background: $cursor-color; margin-left: 5px; border-radius: 1px; animation: cursor 1s infinite; @@ -30,14 +30,19 @@ @media (prefers-reduced-motion: reduce) { &__cursor { - animation: none; + animation: none; } } - } @keyframes cursor { - 0% { opacity: 0; } - 50% { opacity: 1; } - 100% { opacity: 0; } + 0% { + opacity: 0; + } + 50% { + opacity: 1; + } + 100% { + opacity: 0; + } } diff --git a/assets/scss/_menu.scss b/assets/scss/_menu.scss index 6833a77..ad754f9 100644 --- a/assets/scss/_menu.scss +++ b/assets/scss/_menu.scss @@ -5,7 +5,7 @@ z-index: 9999; .dark-theme & { - background: #252627; + background: $dark-background-secondary; } @media #{$media-size-phone} { diff --git a/assets/scss/_variables.scss b/assets/scss/_variables.scss index c09a0ca..ecd7f82 100644 --- a/assets/scss/_variables.scss +++ b/assets/scss/_variables.scss @@ -8,12 +8,14 @@ $light-color-secondary: #999; $light-border-color: #dcdcdc; /* dark theme colors */ -$dark-background: #292a2d; -$dark-background-secondary: #3b3d42; -$dark-color: #a9a9b3; -$dark-color-secondary: #73747b; +$dark-background: #34363a; +$dark-background-secondary: #404653; +$dark-color: #d4d4d4; +$dark-color-secondary: #a1a1a1; $dark-border-color: #4a4b50; +$cursor-color: #912727; + $media-size-phone: "(max-width: 684px)"; $media-size-tablet: "(max-width: 900px)"; diff --git a/layouts/index.html b/layouts/index.html index 615051e..d5d0558 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,17 +1,18 @@ {{ define "main" }} -
-
-

{{ .Site.Title }}

+
+
+

{{ .Site.Title }}

+

{{ .Site.Params.Subtitle }}

- {{- with .Site.Params.homeSubtitle }} -

{{.}}

- {{- end }} + {{ with .Site.Params.homeSubtitle }} +

{{.}}

+ {{ end }} - {{- with .Site.Params.social }} -
- {{ partial "social-icons.html" . }} -
- {{- end }} -
-
+ {{ with .Site.Params.social }} +
+ {{ partial "social-icons.html" . }} +
+ {{ end }} +
+
{{ end }} diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index 16041d7..e296144 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -1,11 +1,12 @@ - + - + \ No newline at end of file diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 106c2ce..272ee13 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -16,6 +16,8 @@ {{- else if (eq .name "youtube") -}} +{{- else if (eq .name "gitea") -}} + {{- else if (eq .name "email") -}} {{- else if (eq .name "telegram") -}}