From ef0b02e2659310103c0772990f7e8f7fe77de63a Mon Sep 17 00:00:00 2001 From: Tyler Flowers Date: Mon, 4 Dec 2023 18:23:33 -0500 Subject: Make Slider + Card and add to index --- apps/website/src/components/base/Card.astro | 22 ++++++++++++++++ apps/website/src/components/base/Slider.astro | 38 +++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 apps/website/src/components/base/Card.astro create mode 100644 apps/website/src/components/base/Slider.astro (limited to 'apps/website/src/components/base') diff --git a/apps/website/src/components/base/Card.astro b/apps/website/src/components/base/Card.astro new file mode 100644 index 0000000..b3fbc00 --- /dev/null +++ b/apps/website/src/components/base/Card.astro @@ -0,0 +1,22 @@ +--- +import type { Icons } from '@components/icons/Icon.astro'; +import Icon from '@components/icons/Icon.astro'; +import type { HTMLAttributes } from 'astro/types'; + +interface Props extends HTMLAttributes<'div'> { + icon: Icons; + text?: string; +} + +const { + icon, + text = 'Hiiii', + ...rest +} = Astro.props; +--- + + +
+ +

{text}

+
diff --git a/apps/website/src/components/base/Slider.astro b/apps/website/src/components/base/Slider.astro new file mode 100644 index 0000000..f40b747 --- /dev/null +++ b/apps/website/src/components/base/Slider.astro @@ -0,0 +1,38 @@ +--- +import type { HTMLAttributes } from 'astro/types'; + +interface Props extends HTMLAttributes<'div'> { + dir?: string; + wrapperClass?: string; +} + +const { + dir = "left", + wrapperClass = "" +} = Astro.props; +--- + +
+ +
+ + + -- cgit