From ab2b1f5273ece4f30af35fa1824a4cdf3c766d4c Mon Sep 17 00:00:00 2001 From: Manuel Ernesto Garcia Date: Thu, 22 Sep 2022 12:29:25 -0400 Subject: [PATCH] creating card component and adding section to main view --- src/components/Card.astro | 25 ++++++++------ src/components/Footer.astro | 14 ++++---- src/components/Header.astro | 9 ++--- src/layouts/{Main.astro => Page.astro} | 4 +-- src/pages/index.astro | 46 +++++++++++++++++++++++--- 5 files changed, 72 insertions(+), 26 deletions(-) rename src/layouts/{Main.astro => Page.astro} (86%) diff --git a/src/components/Card.astro b/src/components/Card.astro index 6b1ddc0..138fe32 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,13 +1,18 @@ -
-
-
Movie
-
-

New movie is released!

-

Click the button to watch on Jetflix app.

-
-
Fashion
-
Products
+--- +const { title, img, desc, url } = Astro.props; +--- + + +
diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 08395a4..965a798 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -2,12 +2,14 @@ const today = new Date(); --- -