From d191b909d04175d648ca3c21d5e1cfc42e9c5ca0 Mon Sep 17 00:00:00 2001 From: Dilson's Pickles Date: Thu, 17 Aug 2023 12:13:30 +1000 Subject: [PATCH] Implement feature cards --- src/components/card/FeatureCard.jsx | 15 +++++++ src/components/homepage/FeatureCards.astro | 52 ++++++++++++++++++++++ src/pages/index.astro | 2 + 3 files changed, 69 insertions(+) create mode 100644 src/components/card/FeatureCard.jsx create mode 100644 src/components/homepage/FeatureCards.astro diff --git a/src/components/card/FeatureCard.jsx b/src/components/card/FeatureCard.jsx new file mode 100644 index 0000000..142f74f --- /dev/null +++ b/src/components/card/FeatureCard.jsx @@ -0,0 +1,15 @@ +import React from "react"; + +function FeatureCard(props) { + const { children, title, description } = props; + + return ( +
+ {children} +

{title}

+

{description}

+
+ ); +} + +export default FeatureCard; diff --git a/src/components/homepage/FeatureCards.astro b/src/components/homepage/FeatureCards.astro new file mode 100644 index 0000000..46f308c --- /dev/null +++ b/src/components/homepage/FeatureCards.astro @@ -0,0 +1,52 @@ +--- +import FeatureCard from "../card/FeatureCard.jsx"; +--- + +
+
+ + + + + + + + + + + + + + + + +
+
diff --git a/src/pages/index.astro b/src/pages/index.astro index a83581c..fa0b681 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,6 +8,7 @@ import RealTimeEffects from "../components/homepage/features/RealTimeEffects.ast import ShareToAudio from "../components/homepage/features/ShareToAudio.astro"; import RecordAnything from "../components/homepage/RecordAnything.astro"; import ShareYourSounds from "../components/homepage/ShareYourSounds.astro" +import FeatureCards from "../components/homepage/FeatureCards.astro"; --- @@ -16,6 +17,7 @@ import ShareYourSounds from "../components/homepage/ShareYourSounds.astro" +