diff --git a/index.ts b/index.ts index c5e2b61..bc549c4 100644 --- a/index.ts +++ b/index.ts @@ -1,8 +1,9 @@ // Blocks import CallToAction from "./src/blocks/CallToAction.astro"; +import Hero from "./src/blocks/Hero.astro" // Components import Image from "./src/Image.astro"; // Export -export {CallToAction, Image} \ No newline at end of file +export {CallToAction, Image, Hero} \ No newline at end of file diff --git a/src/blocks/Hero.astro b/src/blocks/Hero.astro new file mode 100644 index 0000000..7cb5e9d --- /dev/null +++ b/src/blocks/Hero.astro @@ -0,0 +1,48 @@ +--- +// Properties +const { + Title, + Description, + + ImageSource, + ImageAlt, +} = Astro.props + +// Components +import Image from '../Image.astro' +--- + +
+ {ImageAlt}/ +
+

{Title}

+

{Description}

+
+
+ + \ No newline at end of file