From ba0a00ef17d3a75f0a9079a378fcd040bf69e0d9 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 23 Oct 2023 16:14:38 -0700 Subject: update osc --- src/components/Card.astro | 4 ++- src/components/MiniCard.astro | 62 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 src/components/MiniCard.astro (limited to 'src/components') diff --git a/src/components/Card.astro b/src/components/Card.astro index d2d428e..4de0a1b 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -7,9 +7,10 @@ interface Props { languageColor: string; logoSrc?: string; logoWidth?: string; + contribution?: string; } -const { href, title, body, language, languageColor, logoSrc, logoWidth = '60%' } = Astro.props; +const { href, title, body, language, languageColor, logoSrc, logoWidth = '60%', contribution="Contributor" } = Astro.props; --- diff --git a/src/components/MiniCard.astro b/src/components/MiniCard.astro new file mode 100644 index 0000000..b34bcef --- /dev/null +++ b/src/components/MiniCard.astro @@ -0,0 +1,62 @@ +--- +interface Props { + title: string; + body: string; + href: string; + language: string; + languageColor: string; + logoSrc?: string; + logoWidth?: string; + contribution?: string; +} + +const { href, title, body, language, languageColor, logoSrc, logoWidth = '60%', contribution = 'Minor Contributions' } = Astro.props; +--- + + + + \ No newline at end of file -- cgit v1.2.3