Fix CallToaction style in dark mode

This commit is contained in:
widgeter
2023-08-04 19:22:44 +02:00
parent a28b4336ec
commit 88e90fccbd
3 changed files with 8 additions and 3 deletions

View File

@ -25,13 +25,17 @@ const {
---
<WidgetWrapper id={id} isDark={isDark} containerClass={`max-w-6xl mx-auto ${classes?.container ?? ''}`} bg={bg}>
<div class="max-w-3xl mx-auto text-center p-6 rounded-md shadow-xl">
<div
class="max-w-3xl mx-auto text-center p-6 rounded-md shadow-xl dark:shadow-none dark:border dark:border-slate-600"
>
<Headline
title={title}
subtitle={subtitle}
tagline={tagline}
classes={{
container: 'mb-0 md:mb-0 dark:shadow-none dark:border dark:border-slate-600',
container: 'mb-0 md:mb-0',
title: 'text-4xl md:text-4xl font-bold leading-tighter tracking-tighter mb-4 font-heading',
subtitle: 'text-xl text-muted dark:text-slate-400',
}}
/>
{

View File

@ -142,6 +142,7 @@ const metadata = {
<CallToAction
callToAction={{
targetBlank: true,
text: 'Get template',
href: 'https://github.com/onwidget/astrowind',
icon: 'tabler:download',

2
src/types.d.ts vendored
View File

@ -154,7 +154,7 @@ export interface Testimonial {
// COMPONENTS
export interface CallToAction {
targetBlank: boolean;
targetBlank?: boolean;
text?: string;
icon?: string;
href?: string;