diff --git a/src/components/intro-card.astro b/src/components/intro-card.astro index 32df71ed..a0500688 100644 --- a/src/components/intro-card.astro +++ b/src/components/intro-card.astro @@ -1,25 +1,33 @@ ---- -const { title, description} = Astro.props; ---- -
big-smile -

{title}

-

{description}

+
+ +
\ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 9bbf8268..7b394aef 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -63,13 +63,14 @@ const introCards = [ Abstract art image
- {introCards.map((item) => ( - - ))} -
+ { + introCards.map(item => ( + +

{item.title}

+

{item.description}

+
+ )) + } @@ -91,8 +92,8 @@ const introCards = [ gap: 1rem; } .intro-cards { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + display: flex; + flex-direction: column; gap: 2rem; margin-block-start: 2rem; }