From fb4b3c09593f573c6acb4e2104de8e35281c4d36 Mon Sep 17 00:00:00 2001 From: Philippe Loctaux
Date: Sat, 20 May 2023 18:51:27 +0200 Subject: [PATCH] added talks, with card component --- src/components/talk-card.astro | 77 ++++++++++++++++++++++++++++++++++ src/components/talks.astro | 58 +++++++++++++++++++++++++ src/pages/index.astro | 4 +- 3 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 src/components/talk-card.astro create mode 100644 src/components/talks.astro diff --git a/src/components/talk-card.astro b/src/components/talk-card.astro new file mode 100644 index 0000000..75b15a3 --- /dev/null +++ b/src/components/talk-card.astro @@ -0,0 +1,77 @@ +--- +interface Props { + title: string; + date: string; + location: string; + linkUri: string; + linkLabel: string; +} + +const { title, date, location, linkUri, linkLabel } = Astro.props; +--- + +
diff --git a/src/components/talks.astro b/src/components/talks.astro new file mode 100644 index 0000000..1f25b76 --- /dev/null +++ b/src/components/talks.astro @@ -0,0 +1,58 @@ +--- +import TalkCard from "./talk-card.astro"; +--- + ++ Giving a talk is the opportunity to share what I know, and helps me + reduce my fear of public speaking. +
+ +