From 5d69276bb6539f020ee8d57d523c084e7bd5609a Mon Sep 17 00:00:00 2001 From: Sebastian Wendel Date: Wed, 13 Mar 2024 17:01:10 +0100 Subject: [PATCH] refactored all React components to Astro components --- src/components/Logo.astro | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/components/Logo.astro diff --git a/src/components/Logo.astro b/src/components/Logo.astro new file mode 100644 index 0000000..1ae47c1 --- /dev/null +++ b/src/components/Logo.astro @@ -0,0 +1,42 @@ +--- +import Config from "@srx/config/page.json"; + +interface Props { + className?: string; + href?: string; + alt?: string; + fill?: string; + height?: number; + width?: number; + wordmark?: boolean; + picturemark?: boolean; +} + +const { + className = "h-10 fill-primary", + href = Astro.url, + alt = Config.logo.alt, + height = Config.logo.size.height, + width = Config.logo.size.width, + wordmark = true, + picturemark = true, +} = Astro.props; +--- + + + + {alt} + + + +