From 8acb898a2f2730e2a853c844f0e8b9bb2d690f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Fri, 24 Dec 2021 03:32:22 +0300 Subject: Huge html+css revamp * Plus added links to new photo gallery and donate page. * Title fix --- config.toml | 24 +++++ sass/css/_colors.scss | 3 +- sass/css/yaroslavps.scss | 117 +++++++++++++++++++----- static/img/paypal.png | Bin 0 -> 457 bytes static/img/snowfall.gif | Bin 0 -> 5386 bytes static/img/star_pattern.jpg | Bin 15186 -> 0 bytes static/img/stars.jpg | Bin 0 -> 15186 bytes static/svg/icons/srht.svg | 3 + templates/base.html | 106 ++++++++-------------- templates/donate.html | 30 +++--- templates/index.html | 216 ++++++++++++++++++++++++++++++-------------- 11 files changed, 323 insertions(+), 176 deletions(-) create mode 100644 static/img/paypal.png create mode 100644 static/img/snowfall.gif delete mode 100644 static/img/star_pattern.jpg create mode 100644 static/img/stars.jpg create mode 100644 static/svg/icons/srht.svg diff --git a/config.toml b/config.toml index 0e2bcea..e472624 100644 --- a/config.toml +++ b/config.toml @@ -28,6 +28,14 @@ published_on = "on" edited = "Last edited" also_read = "This text is also available in other languages: " not_published = "This text is a draft and will be published soon to the index page of " +whats_here="In this site" +weblog="Weblog" +recipes="Recipe book" +photos="Photo gallery" +other_links="Other links" +see_more="See more..." +homepage="Home page" +archive="Archive" [languages.es] generate_feed = false @@ -42,6 +50,14 @@ published_on = "en:" edited = "Última edición: " also_read = "Este texto está disponible en otros idiomas: " not_published = "Este texto es un borrador y pronto será publicado a la página principal del " +whats_here="En este sitio" +weblog="Weblog" +recipes="Recetario" +photos="Galería de fotos" +other_links="Otros vínculos" +see_more="Ver más..." +homepage="Inicio" +archive="Archivo" [languages.ru] generate_feed = false @@ -56,4 +72,12 @@ published_on = "в: " edited = "Отредакировано: " also_read = "Данный текст также доступен на других языках: " not_published = "Текст является черновиком и вскоре будет опубликован на заглавной странице " +whats_here="В этом сайте" +weblog="Веб-журнал" +recipes="Книга рецептов" +photos="Фотогалерея" +other_links="Другие ссылки" +see_more="Смотреть больше..." +homepage="Главная" +archive="Архив" diff --git a/sass/css/_colors.scss b/sass/css/_colors.scss index 6ce5373..72adc47 100644 --- a/sass/css/_colors.scss +++ b/sass/css/_colors.scss @@ -2,11 +2,12 @@ $bg0: #000000; $bg1: #0a0a0f; $white: #e5e9f0; $gray: #a1a6b2; +$gray1: #33333a; $red: #b73030; $red1: #c45c5c; $yellow: #b2872f; $blue: #3f6e90; $blue1: #63a9cc; -$green: #7ea95a; +$green: #6d974b; $cyan: #7fac96; $cyan1: #5b8277; diff --git a/sass/css/yaroslavps.scss b/sass/css/yaroslavps.scss index 8f6e89b..6f134e9 100644 --- a/sass/css/yaroslavps.scss +++ b/sass/css/yaroslavps.scss @@ -11,17 +11,12 @@ html, body { padding: 0; width: 100%; min-height: 100vh; - background-color: $bg1; - background-image: url("/img/star_pattern.jpg"); - background-size: 25%; + background-color: #000; + background-image: url("/img/snowfall.gif"); + font-size: 14px; + /*background-size: 25%;*/ } -h1, -h2, -h3, -h4, -h5, -h6, ul, ol, li, @@ -37,7 +32,7 @@ li, a, p { line-height: 1.4; - font-family: $font_sans; + font-family: $font_mono; } h2, @@ -63,13 +58,15 @@ h6 { } a, a:visited { - color: $blue1; + color: $cyan1; } -a:hover { - color: $blue; +a:hover, +a:hover:visited { + color: $cyan; } +.new-year, h1 { color: $red; font-family: $font_serif; @@ -90,6 +87,7 @@ hr { border-style: solid; border-color: $white; border-width: 1px 0 0 0; + margin: 2em 0; } pre { @@ -97,6 +95,7 @@ pre { overflow-x: auto; font-family: $font_mono; color: $gray; + background-color: $bg0; } code { @@ -106,7 +105,7 @@ code { figcaption { color: $gray; - font-family: $font_sans; + font-family: $font_mono; text-align: center; } @@ -114,8 +113,26 @@ video { max-width: 90%; } +span.extra-link { + color: $gray; +} + +h2 > span.extra-link { + font-size: 0.7em; +} + +span.extra-link > a ~ a::before { + display: inline-block; + color: $white; + content: "|"; + margin: 0 0.2em; + text-decoration: none; +} + span.icon { + display: inline-block; height: 1em; + text-decoration: none; } span.icon > img { @@ -125,7 +142,7 @@ span.icon > img { .publish-date { color: $gray; - font-family: $font_sans; + font-family: $font_mono; font-weight: normal; font-style: italic; } @@ -140,16 +157,18 @@ h2 > span.publish-date { grid-template-columns: minmax(0, 5fr) 2fr; grid-template-rows: min-content auto; max-width: 1180px; - margin: 0 auto; - min-height: 100vh; + margin: 1em auto; + min-height: 90vh; height: auto; - background-color: $bg0; + background-color: $bg1; + padding: 1px; + border: 2px solid $gray1; } .landing-page-container { grid-column-start: 1; grid-column-end: 3; - padding: 2em 4em; + padding: 2em 2em; } .landing-page-container > h1 { @@ -175,12 +194,57 @@ h2 > span.publish-date { padding: 0 2em; } +.landing-page-container, +.content-container, +.sidebar-container { + border: 2px solid $gray; +} + +.new-year { + text-align: center; + color: $green; + font-size: 2em; +} + +.nav-container { + text-align: center; +} + +.nav-container > a ~ a::before { + display: inline-block; + color: $white; + content: " · "; + margin: 0 0.4em; + text-decoration: none; +} + +.content-container { + min-height: 90vh; +} + +.album-container { + padding: 1em 2em; +} + +.album-container a { + text-decoration: none; +} + +.album-container a img { + max-height: 180px; +} + +a.see-more { + display: inline-block; + text-align: center; + font-weight: bold; +} + .sidebar-container { grid-row-start: 1; grid-row-end: 3; grid-column-start: 2; grid-column-end: 3; - background-color: $bg1; } .sidebar-container span.icon { @@ -246,14 +310,14 @@ h2 > span.publish-date { .paginator a { display: inline-block; padding: 0.5em; - background-color: $blue1; + background-color: $cyan1; color: $bg0; text-decoration: none; } .paginator a:hover { - background-color: $blue; - color: $white; + background-color: $cyan; + color: $bg0; } .cryptoqr { @@ -276,7 +340,6 @@ h2 > span.publish-date { .sidebar-container { grid-row-start: auto; grid-row-end: auto; - background-color: #00000000; } } @@ -309,6 +372,12 @@ h2 > span.publish-date { text-decoration: none; } + .main-container, + .header-container, + .content-container { + border: none; + } + .sidebar-container { display: none; } diff --git a/static/img/paypal.png b/static/img/paypal.png new file mode 100644 index 0000000..8409c7a Binary files /dev/null and b/static/img/paypal.png differ diff --git a/static/img/snowfall.gif b/static/img/snowfall.gif new file mode 100644 index 0000000..98df140 Binary files /dev/null and b/static/img/snowfall.gif differ diff --git a/static/img/star_pattern.jpg b/static/img/star_pattern.jpg deleted file mode 100644 index 2c5728e..0000000 Binary files a/static/img/star_pattern.jpg and /dev/null differ diff --git a/static/img/stars.jpg b/static/img/stars.jpg new file mode 100644 index 0000000..2c5728e Binary files /dev/null and b/static/img/stars.jpg differ diff --git a/static/svg/icons/srht.svg b/static/svg/icons/srht.svg new file mode 100644 index 0000000..f4c6264 --- /dev/null +++ b/static/svg/icons/srht.svg @@ -0,0 +1,3 @@ + diff --git a/templates/base.html b/templates/base.html index 908e93c..efb1e7d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,7 @@ {% block title %} - {{ config.title }} + Yaroslav de la Peña Smirnov {% endblock %} @@ -23,26 +23,18 @@
{% block page %} -
- {% block header %} -

Yaroslav de la Peña Smirnov

- {% endblock %} -
+
+ {% block header %} +

Yaroslav de la Peña Smirnov

+ {% endblock %} +
{% block content %} {% endblock %}