Skip to content

Commit c8b5d0a

Browse files
committed
fix: update presentation details and improve layout with YouTube links
1 parent 59ee7a3 commit c8b5d0a

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

src/components/Presentations.astro

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const presentations = [
88
"A deep dive into the useEffect hook, how it works, how to use it effectively and common pitfalls",
99
siteUrl:
1010
"https://docs.google.com/presentation/d/1MK3Hrkw-rDUd1p5TRHI7okgMPMzz5kxrRjx0MIa1srA",
11+
youtubeUrl: "https://youtu.be/EvrJbFoBy_w",
1112
tags: ["React"],
1213
},
1314
{
@@ -43,12 +44,25 @@ const presentations = [
4344
{presentation.description}
4445
</h3>
4546
<div class="mt-auto flex flex-wrap gap-2 justify-between py-4">
46-
<a
47-
href={presentation.siteUrl}
48-
class="text-sky-300 flex items-center gap-1 hover:underline"
49-
>
50-
Read more <Icon name="mdi:arrow-right" class="size-4" />
51-
</a>
47+
<div class="flex gap-4">
48+
<a
49+
href={presentation.siteUrl}
50+
class="text-sky-300 flex items-center gap-1 hover:underline"
51+
target="_blank"
52+
>
53+
Check out <Icon name="mdi:arrow-right" class="size-4" />
54+
</a>
55+
{presentation.youtubeUrl && (
56+
<a
57+
href={presentation.youtubeUrl}
58+
class="text-sky-300 flex items-center gap-1 hover:underline"
59+
target="_blank"
60+
>
61+
Watch on YouTube
62+
<Icon name="mdi:youtube" class="size-4" />
63+
</a>
64+
)}
65+
</div>
5266
<ul class="flex gap-2">
5367
{presentation.tags.map((tag) => (
5468
<li class="bg-slate-900 px-2 py-1 text-neutral-300 rounded">

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const posts = Object.values(postsGlob).map(
5656
<h1
5757
class="text-[clamp(2rem,7vw,3rem)] leading-tight font-medium tracking-tight motion-preset-slide-up motion-preset-fade-lg"
5858
>
59-
Hi, I'm Yonatan.
59+
Hi, I'm Jonathan.
6060
</h1>
6161
<h2
6262
class="text-xl font-light text-pretty leading-relaxed text-neutral-300 max-sm:text-sm motion-preset-slide-up motion-preset-fade-lg motion-delay-300"

0 commit comments

Comments
 (0)