From 7c2c33331e195ac358e275a60f956c62ad836a2b Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Sun, 11 Feb 2024 22:45:46 +0400 Subject: [PATCH] Add PrimaryCTA and SecondaryCTA components This commit adds two new Astro components: PrimaryCTA and SecondaryCTA. These components represent the primary and secondary Call To Action (CTA) buttons, respectively. Both components accept title and url as props, and present clickable buttons styled according to their classification. --- src/components/ui/buttons/PrimaryCTA.astro | 26 ++++++++++++++++++++ src/components/ui/buttons/SecondaryCTA.astro | 15 +++++++++++ 2 files changed, 41 insertions(+) create mode 100644 src/components/ui/buttons/PrimaryCTA.astro create mode 100644 src/components/ui/buttons/SecondaryCTA.astro diff --git a/src/components/ui/buttons/PrimaryCTA.astro b/src/components/ui/buttons/PrimaryCTA.astro new file mode 100644 index 0000000..075370c --- /dev/null +++ b/src/components/ui/buttons/PrimaryCTA.astro @@ -0,0 +1,26 @@ +--- +const { title, url } = Astro.props; + +interface Props { + title?: string; + url?: string; +} +--- + + + {title} + + diff --git a/src/components/ui/buttons/SecondaryCTA.astro b/src/components/ui/buttons/SecondaryCTA.astro new file mode 100644 index 0000000..7f8ce6c --- /dev/null +++ b/src/components/ui/buttons/SecondaryCTA.astro @@ -0,0 +1,15 @@ +--- +const { title, url } = Astro.props; + +interface Props { + title?: string; + url?: string; +} +--- + + + {title} +