From 1c2606ba1621cdf2a8ddc741a7bc6db7584a07b7 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Fri, 9 Sep 2022 22:40:42 +0630 Subject: [PATCH] Create Card component --- src/components/Card.astro | 112 +++++++++++++++----------------------- 1 file changed, 45 insertions(+), 67 deletions(-) diff --git a/src/components/Card.astro b/src/components/Card.astro index a87ab72..a623797 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,76 +1,54 @@ --- export interface Props { - title: string; - body: string; - href: string; + title: string; + body: string; + href: string; + secHeading?: boolean; } -const { href, title, body } = Astro.props; +const { href, title, body, secHeading = true } = Astro.props; --- -
  • + + {secHeading ?

    {title}

    :

    {title}

    } +
    +
    + + + June 9, 2022 | 10:12 AM +
    +

    + {body} +

  • +