mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: move Svelte components to Astro
This commit is contained in:
20
src/components/Subheadline.astro
Normal file
20
src/components/Subheadline.astro
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
interface Props {
|
||||
as?: string;
|
||||
children?: any;
|
||||
class?: string;
|
||||
}
|
||||
|
||||
const { as = 'h3', class: className, ...props } = Astro.props;
|
||||
const Element = as;
|
||||
---
|
||||
|
||||
<Element
|
||||
class:list={[
|
||||
'text-4 font-black tracking-tight mbe-8 mbs-14 first-of-type:mbs-0 dark:font-extrabold',
|
||||
className,
|
||||
]}
|
||||
{...props}
|
||||
>
|
||||
<slot />
|
||||
</Element>
|
||||
Reference in New Issue
Block a user