From fd3f0b9f1bfce7459d2681498670c31cde0f3091 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 22 Jul 2025 18:59:12 +0300 Subject: dark background --- src/components/widgets/Content.astro | 12 ++++----- src/components/widgets/Footer.astro | 10 +++---- src/components/widgets/Portfolio.astro | 10 ++++++- src/components/widgets/Steps2.astro | 8 +++--- src/navigation.ts | 2 +- src/pages/index.astro | 49 +++++++++++++++++++++++++--------- 6 files changed, 61 insertions(+), 30 deletions(-) (limited to 'src') diff --git a/src/components/widgets/Content.astro b/src/components/widgets/Content.astro index 694a198..fd99458 100644 --- a/src/components/widgets/Content.astro +++ b/src/components/widgets/Content.astro @@ -37,14 +37,14 @@ const { tagline={tagline} classes={{ container: 'max-w-xl sm:mx-auto lg:max-w-2xl', - title: 'text-4xl md:text-5xl font-bold tracking-tighter mb-4 font-heading', - subtitle: 'max-w-3xl mx-auto sm:text-center text-xl text-muted dark:text-slate-400', + title: `text-4xl md:text-5xl font-bold tracking-tighter mb-4 font-heading ${typeof classes?.container === 'string' && classes.container.includes('text-white') ? 'text-white' : ''}`, + subtitle: `max-w-3xl mx-auto sm:text-center text-xl ${typeof classes?.container === 'string' && classes.container.includes('text-white') ? 'text-gray-300' : 'text-muted dark:text-slate-400'}`, }} />
- {content &&
} + {content &&
} { callToAction && ( @@ -61,10 +61,10 @@ const { classes={{ container: `gap-y-4 md:gap-y-8`, panel: 'max-w-none', - title: 'text-lg font-medium leading-6 dark:text-white ml-2 rtl:ml-0 rtl:mr-2', - description: 'text-muted dark:text-slate-400 ml-2 rtl:ml-0 rtl:mr-2', + title: `text-lg font-medium leading-6 ${typeof classes?.container === 'string' && classes.container.includes('text-white') ? 'text-white' : 'dark:text-white'} ml-2 rtl:ml-0 rtl:mr-2`, + description: `${typeof classes?.container === 'string' && classes.container.includes('text-white') ? 'text-gray-300' : 'text-muted dark:text-slate-400'} ml-2 rtl:ml-0 rtl:mr-2`, icon: 'flex h-7 w-7 items-center justify-center rounded-full bg-green-600 dark:bg-green-700 text-gray-50 p-1', - action: 'text-lg font-medium leading-6 dark:text-white ml-2 rtl:ml-0 rtl:mr-2', + action: `text-lg font-medium leading-6 ${typeof classes?.container === 'string' && classes.container.includes('text-white') ? 'text-white' : 'dark:text-white'} ml-2 rtl:ml-0 rtl:mr-2`, }} />
diff --git a/src/components/widgets/Footer.astro b/src/components/widgets/Footer.astro index 55501ff..3008984 100644 --- a/src/components/widgets/Footer.astro +++ b/src/components/widgets/Footer.astro @@ -24,10 +24,10 @@ export interface Props { const { socialLinks = [], footNote = '', theme = 'light' } = Astro.props; --- -