From 490fb29dff5554b701e9d8f0176a7a1066ca4a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Rodr=C3=ADguez=20Mart=C3=ADnez?= Date: Tue, 28 Jul 2026 18:40:05 -0400 Subject: [PATCH 1/9] Refactor theme colors and layout components for improved consistency and readability - Updated Tailwind CSS configuration to introduce a warm editorial color palette, replacing primary, accent, and highlight colors. - Adjusted theme color meta tags in BaseHead component to align with new color scheme. - Refined Footer and Header components for better layout and visual hierarchy. - Enhanced PostCard and HighlightsMasonry components for improved styling and readability. - Streamlined global CSS styles, focusing on typography and button utilities for a cohesive design. - Updated index and insights pages to reflect new content structure and styling. --- src/components/BaseHead.astro | 6 +- src/components/Footer.astro | 208 +++++-------- src/components/Header.astro | 2 +- src/components/HighlightsMasonry.astro | 20 +- src/components/Logo.astro | 2 +- src/components/PostCard.astro | 406 ++++++++++++------------- src/components/ThemeToggle.astro | 2 +- src/pages/brain-science/insights.astro | 2 +- src/pages/index.astro | 111 ++++--- src/styles/global.css | 163 +++++----- tailwind.config.js | 116 +++---- 11 files changed, 494 insertions(+), 544 deletions(-) diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 03cf3cdd..cbe85c7f 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -77,8 +77,8 @@ const updatedDateISO = updatedDate?.toISOString(); {!heroImage && } - - + + @@ -112,7 +112,7 @@ const updatedDateISO = updatedDate?.toISOString(); // Update meta theme-color const metaThemeColor = document.querySelector('meta[name="theme-color"]'); if (metaThemeColor) { - metaThemeColor.setAttribute('content', theme === 'dark' ? '#0f172a' : '#ffffff'); + metaThemeColor.setAttribute('content', theme === 'dark' ? '#161412' : '#faf8f5'); } } catch (error) { // Fallback to system preference if localStorage fails diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 59a1ab59..a8b5c53a 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -6,153 +6,91 @@ import pkg from '../../package.json'; ---