From 12a91025405e0d3047666de13a35e051626b7ad7 Mon Sep 17 00:00:00 2001 From: John Gribbin <30157175+johngribbin@users.noreply.github.com> Date: Mon, 13 Jan 2025 10:39:50 -0500 Subject: [PATCH] feat: add features list to the home page (#8) --- config.toml | 7 +++++++ sass/style.scss | 19 ++++++++++++++++++- templates/index.html | 14 ++++++++++++-- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 0e757b7..c13b9b2 100644 --- a/config.toml +++ b/config.toml @@ -23,4 +23,11 @@ sidebar_sticky = true sidebar_reverse = false sidebar_links = [ {url = "https://clams.tech", name = "clams.tech"}, +] +features = [ + {title = "Custom Imports", link = "/release-v0-3-0/#custom-imports"}, + {title = "Transaction Details", link = "/release-v0-3-0/#transaction-details"}, + {title = "DB Backup and Restore", link = "/release-v0-3-0/#db-backup-and-restore"}, + {title = "Filter Widget", link = "/release-v0-3-0/#filter-widget-updates"}, + {title = "Cashu NIP60 Connection", link = "/release-v0-3-0/#cashu-nip60-connection"}, ] \ No newline at end of file diff --git a/sass/style.scss b/sass/style.scss index a4d080f..f70f43b 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -218,6 +218,8 @@ tbody tr:nth-child(odd) th { p { margin-bottom: 0.25em; + max-width: 400px; + text-align: center; } } @@ -268,7 +270,7 @@ tbody tr:nth-child(odd) th { } } - .posts,.page { + .posts, .features, .page { max-width: 800px; margin: 0 auto; } @@ -280,6 +282,21 @@ tbody tr:nth-child(odd) th { } } +.features { + margin-top: 5em; + + .feature-list { + padding: 0; + margin: 0; + margin-top: 1em; + display: flex; + flex-wrap: wrap; + gap: 1rem; /* Space between items */ + list-style: none; /* Remove bullets */ + font-weight: bold; + } +} + /* Blog post */ .page { padding: 2em 0 4em 0; diff --git a/templates/index.html b/templates/index.html index 4e3b478..6cc70e3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -34,14 +34,14 @@

Clams Blog

-

Personal Finance and Business Analytics

-

for a Bitcoin Standard.

+

Personal Finance and Business Analytics for a Bitcoin Standard.

{% endif %}
{% block content %}
+

Posts

{% for page in section.pages | reverse %}
{% endfor %}
+
+

Features

+ +
{% endblock content %}