From 1c7b96f7237f4d64c2df1ce2b7961d625729124b Mon Sep 17 00:00:00 2001 From: codex_a Date: Sun, 1 Mar 2026 10:02:23 +0000 Subject: [PATCH] feat: implement Tailwind CSS styling based on wireframe design - Add brand colours, fonts (Space Grotesk/Inter/Fira Code), box shadows to tailwind.config.js - Add bg-grid-pattern, text-gradient, scrollbar, selection styles to input.css - Add Google Fonts link and dark-mode body classes to base.html - Style nav, footer, cookie banner, newsletter form components - Style homepage: featured article, 12-col editorial grid, sidebar widgets - Style article list: header, tag filters, horizontal article cards, pagination - Style article page: hero header, prose body, share sidebar, related cards, comments - Style code blocks and callout blocks - CSS output grows from 4.8KB to 24KB with all brand utilities compiled Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- templates/base.html | 12 +- templates/blog/article_index_page.html | 45 ++-- templates/blog/article_page.html | 253 +++++++++++++++++----- templates/blog/blocks/callout_block.html | 22 +- templates/blog/blocks/code_block.html | 20 +- templates/blog/home_page.html | 140 ++++++++++-- templates/components/article_card.html | 37 +++- templates/components/cookie_banner.html | 64 ++++-- templates/components/footer.html | 37 +++- templates/components/nav.html | 40 +++- templates/components/newsletter_form.html | 15 +- theme/static/css/styles.css | 2 +- theme/static_src/src/input.css | 37 ++++ theme/static_src/tailwind.config.js | 30 ++- 14 files changed, 598 insertions(+), 156 deletions(-) diff --git a/templates/base.html b/templates/base.html index b802c1d..ba56a6f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,6 +6,9 @@ {% block title %}No Hype AI{% endblock %} {% block head_meta %}{% endblock %} + + + - + +
{% include 'components/nav.html' %} {% include 'components/cookie_banner.html' %} {% if messages %} -
+
{% for message in messages %} -

{{ message }}

+

{{ message }}

{% endfor %}
{% endif %} -
{% block content %}{% endblock %}
+
{% block content %}{% endblock %}
{% include 'components/footer.html' %} diff --git a/templates/blog/article_index_page.html b/templates/blog/article_index_page.html index edeafc4..691dbcc 100644 --- a/templates/blog/article_index_page.html +++ b/templates/blog/article_index_page.html @@ -10,26 +10,39 @@ {% endblock %} {% block content %} -

{{ page.title }}

-
-

Filter by tag

- All - {% for tag in available_tags %} - {{ tag.name }} + + +
+

{{ page.title }}

+ + +
+ All + {% for tag in available_tags %} + {{ tag.name }} + {% endfor %} +
+
+ + +
+ {% for article in articles %} + {% include 'components/article_card.html' with article=article %} + {% empty %} +

No articles found.

{% endfor %} -
-{% for article in articles %} - {% include 'components/article_card.html' with article=article %} -{% empty %} -

No articles found.

-{% endfor %} -