diff --git a/src/assets/styles/base.css b/src/assets/styles/base.css index c623a4c..fe4e65f 100644 --- a/src/assets/styles/base.css +++ b/src/assets/styles/base.css @@ -19,6 +19,7 @@ @apply bg-slate-900; } + .btn { @apply inline-flex items-center justify-center rounded-full shadow-md border-gray-400 border bg-transparent font-medium text-center text-base text-page leading-snug transition py-3.5 px-6 md:px-8 ease-in duration-200 focus:ring-blue-500 focus:ring-offset-blue-200 focus:ring-2 focus:ring-offset-2 hover:bg-gray-100 hover:border-gray-600 dark:text-slate-300 dark:border-slate-500 dark:hover:bg-slate-800 dark:hover:border-slate-800; } diff --git a/src/components/widgets/Content.astro b/src/components/widgets/Content.astro index b055d5b..755d02d 100644 --- a/src/components/widgets/Content.astro +++ b/src/components/widgets/Content.astro @@ -31,7 +31,7 @@ const { } = Astro.props; --- -
+
{ (title || subtitle || highlight) && ( diff --git a/src/components/widgets/Header.astro b/src/components/widgets/Header.astro index 09f734d..e46834f 100644 --- a/src/components/widgets/Header.astro +++ b/src/components/widgets/Header.astro @@ -1,6 +1,6 @@ --- import { Icon } from 'astro-icon'; -import Logo from '~/components/common/Logo.astro'; +import Logo from '~/components/Logo.astro'; import ToggleTheme from '~/components/common/ToggleTheme.astro'; import ToggleMenu from '~/components/common/ToggleMenu.astro'; @@ -24,14 +24,19 @@ interface MenuLink extends Link { export interface Props { links?: Array; actions?: Array; - isFixed?: boolean; + isSticky?: boolean; + showToggleTheme?: boolean; + showRssFeed?: boolean; } -const { links = [], actions = [], isFixed = false } = Astro.props; +const { links = [], actions = [], isSticky = false, showToggleTheme = false, showRssFeed = false } = Astro.props; ---