Fix CallToaction style in dark mode
This commit is contained in:
@ -25,13 +25,17 @@ const {
|
|||||||
---
|
---
|
||||||
|
|
||||||
<WidgetWrapper id={id} isDark={isDark} containerClass={`max-w-6xl mx-auto ${classes?.container ?? ''}`} bg={bg}>
|
<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
|
<Headline
|
||||||
title={title}
|
title={title}
|
||||||
subtitle={subtitle}
|
subtitle={subtitle}
|
||||||
tagline={tagline}
|
tagline={tagline}
|
||||||
classes={{
|
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',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{
|
{
|
||||||
|
@ -142,6 +142,7 @@ const metadata = {
|
|||||||
|
|
||||||
<CallToAction
|
<CallToAction
|
||||||
callToAction={{
|
callToAction={{
|
||||||
|
targetBlank: true,
|
||||||
text: 'Get template',
|
text: 'Get template',
|
||||||
href: 'https://github.com/onwidget/astrowind',
|
href: 'https://github.com/onwidget/astrowind',
|
||||||
icon: 'tabler:download',
|
icon: 'tabler:download',
|
||||||
|
2
src/types.d.ts
vendored
2
src/types.d.ts
vendored
@ -154,7 +154,7 @@ export interface Testimonial {
|
|||||||
|
|
||||||
// COMPONENTS
|
// COMPONENTS
|
||||||
export interface CallToAction {
|
export interface CallToAction {
|
||||||
targetBlank: boolean;
|
targetBlank?: boolean;
|
||||||
text?: string;
|
text?: string;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
href?: string;
|
href?: string;
|
||||||
|
Reference in New Issue
Block a user