From 85f0e122de4089cf7ac4d5265ee6a42443c64a9b Mon Sep 17 00:00:00 2001 From: deadrat Date: Mon, 11 May 2026 09:56:14 +0530 Subject: [PATCH] feat: add series roadmap and navigation feature --- sass/_site.scss | 124 +++++++++++++++++++++++++ templates/page.html | 6 ++ templates/partials/series_nav.html | 42 +++++++++ templates/partials/series_roadmap.html | 27 ++++++ 4 files changed, 199 insertions(+) create mode 100644 templates/partials/series_nav.html create mode 100644 templates/partials/series_roadmap.html diff --git a/sass/_site.scss b/sass/_site.scss index 29b1a14..5702f97 100644 --- a/sass/_site.scss +++ b/sass/_site.scss @@ -1140,3 +1140,127 @@ a.zola-anchor { } } } + +// Series styling +.series-nav-top { + display: block !important; + width: 100% !important; + margin: 2rem 0 !important; + padding-bottom: 1.5rem !important; + border-bottom: 1px dashed rgba($green, 0.2) !important; + clear: both !important; +} + +.series-nav-info { + display: block !important; + font-family: $caps-font !important; + font-size: 0.9rem !important; + color: $green !important; + text-transform: uppercase !important; + letter-spacing: 1.5px !important; + margin-bottom: 1.5rem !important; + opacity: 0.6 !important; + text-align: center !important; +} + +.series-nav-buttons { + display: flex !important; + flex-direction: row !important; + justify-content: space-between !important; + align-items: center !important; + width: 100% !important; +} + +.series-nav-left, .series-nav-right { + flex: 1 !important; + display: flex !important; +} + +.series-nav-left { justify-content: flex-start !important; } +.series-nav-right { justify-content: flex-end !important; } + +.series-nav-btn { + text-decoration: none !important; + border-bottom: 1px dotted transparent !important; + color: $shamrock-green !important; + font-family: $caps-font !important; + font-size: 1.3rem !important; + transition: all 0.2s ease !important; + white-space: nowrap !important; + + &:hover { + border-bottom-color: $shamrock-green !important; + opacity: 0.8 !important; + } +} + +.series-roadmap-bottom { + margin: 4rem 0 2rem; + padding: 2rem 0; + border-top: 1px solid rgba($green, 0.15); + font-family: $body-font; +} + +.series-roadmap-header { + font-family: $caps-font; + font-size: 1.2rem; + color: $green; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 1.5rem; + display: block; + opacity: 0.8; +} + +.series-roadmap-list { + list-style: none; + padding: 0; + margin: 0; + border-left: 2px solid rgba($green, 0.2); + padding-left: 1.5rem; + + li { + margin: 0.8rem 0; + font-size: 1.1rem; + line-height: 1.5; + } + + a { + color: inherit; + text-decoration: none; + opacity: 0.7; + border-bottom: 1px dotted transparent; + transition: all 0.2s; + + &:hover { + opacity: 1; + border-bottom-color: $shamrock-green; + } + } + + .current { + color: $shamrock-green; + font-weight: bold; + + &::after { + content: " (Current Post)"; + font-size: 0.8rem; + opacity: 0.5; + font-weight: normal; + margin-left: 0.5rem; + font-family: $caps-font; + } + } +} + +@media (prefers-color-scheme: dark) { + .series-nav-btn { + color: $green !important; + &:hover { border-bottom-color: $green !important; } + } + + .series-roadmap-list { + .current { color: $green; } + a:hover { border-bottom-color: $green; } + } +} diff --git a/templates/page.html b/templates/page.html index c072ac8..237c221 100644 --- a/templates/page.html +++ b/templates/page.html @@ -46,7 +46,13 @@

{{ page.title | safe }}

{% endif %}{% endif %}{% endif %}{% endif %} + {% if page.extra.series %} + {% include "partials/series_nav.html" %} + {% endif %} {{ page.content | safe }} + {% if page.extra.series %} + {% include "partials/series_roadmap.html" %} + {% endif %}
{% if page.lower or page.higher %}