From 08f5c17072388dc68b30405b138997b48ff92243 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 5 Feb 2024 00:27:43 +0300 Subject: End of holidays (a little bit late maybe? :)) Hope you enjoyed your holidays! Also made it easier to "turn on and off" the holiday greetings. --- sass/css/_holidays.scss | 14 ++++++++++++++ sass/css/_newyear.scss | 7 ------- sass/css/yaroslavps.scss | 16 +++++++--------- templates/base.html | 2 +- templates/index.html | 6 +++--- 5 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 sass/css/_holidays.scss delete mode 100644 sass/css/_newyear.scss diff --git a/sass/css/_holidays.scss b/sass/css/_holidays.scss new file mode 100644 index 0000000..e94a080 --- /dev/null +++ b/sass/css/_holidays.scss @@ -0,0 +1,14 @@ +body { + background-image: url("/img/snowfall.gif"); +} + +.holiday-greetings { + display: block; + text-align: center; + color: $green; + font-family: $font_serif; + font-size: 2em; + font-variant-caps: small-caps; + font-weight: 500; +} + diff --git a/sass/css/_newyear.scss b/sass/css/_newyear.scss deleted file mode 100644 index 181d807..0000000 --- a/sass/css/_newyear.scss +++ /dev/null @@ -1,7 +0,0 @@ -.newyear-msg { - text-align: center; - font-size: 1.6em; - font-variant-caps: small-caps; - font-family: $font_serif; - color: $red; -} diff --git a/sass/css/yaroslavps.scss b/sass/css/yaroslavps.scss index 52a9064..5b56d1d 100644 --- a/sass/css/yaroslavps.scss +++ b/sass/css/yaroslavps.scss @@ -1,6 +1,11 @@ @import "colors"; @import "fonts"; -@import "newyear"; + +.holiday-greetings { + display: none; +} + +// @import "holidays"; * { box-sizing: border-box; @@ -13,7 +18,6 @@ html, body { min-height: 100vh; font-size: 14px; background-color: $bg0; - background-image: url("/img/snowfall.gif"); } ul, @@ -33,7 +37,7 @@ p { line-height: 1.4; font-family: $font_mono; } -.new-year, + h1 { color: $red; font-family: $font_serif; @@ -200,12 +204,6 @@ span.publish-date { min-height: 90vh; } -.new-year { - text-align: center; - color: $green; - font-size: 2em; -} - .album-container { padding: 1em 2em; } diff --git a/templates/base.html b/templates/base.html index 9a6874f..eb09f8c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -82,7 +82,7 @@

- © 2018—2023 Yaroslav de la Peña Smirnov. + © 2018—2024 Yaroslav de la Peña Smirnov.

diff --git a/templates/index.html b/templates/index.html index bf7be5d..62d382e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,7 +31,7 @@ {% set weblog = get_section(path=weblog_path) %} {% set recipes = get_section(path=recipes_path) %} {% if lang == "ru" %} -

+

С Новым 2024 Годом и Рождеством!

@@ -46,7 +46,7 @@ по большей части пишу на английском. Вот что можно найти на моём сайте:

{% elif lang == "es" %} -

+

¡Feliz Navidad y un Prospero 2024!

@@ -62,7 +62,7 @@ contenido está en inglés. Esto es lo que puedes encontrar en mi sitio:

{% else %} -

+

Merry Christmas and a Happy New Year 2024!

-- cgit v1.2.3