From 4df0e4a754ea5e1fb0d05a4e08a53cd49e9fce16 Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Thu, 4 Apr 2024 15:23:09 +0300 Subject: Added Daisy UI and basic components (#3) * added daisyui * added Footer.astro * updated Header.astro, added Card.astro, etc * small adjustments --- src/components/Card.astro | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/components/Card.astro (limited to 'src/components/Card.astro') diff --git a/src/components/Card.astro b/src/components/Card.astro new file mode 100644 index 0000000..cbe0b0a --- /dev/null +++ b/src/components/Card.astro @@ -0,0 +1,29 @@ +--- +interface Props { + title?: string; + text?: string; + linkText?: string; + href?: string; +} + +const { title, text, linkText, href } = Astro.props; +--- + +
+
+ {title &&

{title}

} + {text &&

{text}

} + { + linkText && href && ( + + ) + } +
+
-- cgit v1.2.3