Skip to content

Commit ecc43eb

Browse files
committed
livestream
1 parent b4b7485 commit ecc43eb

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

app/[locale]/10years/page.tsx

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import Translation from "@/components/Translation"
1515
import { ButtonLink } from "@/components/ui/buttons/Button"
1616
import { LinkBox, LinkOverlay } from "@/components/ui/link-box"
1717
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
18+
import YouTube from "@/components/YouTube"
1819

1920
import { cn } from "@/lib/utils/cn"
2021
import { dataLoader } from "@/lib/utils/data/dataLoader"
@@ -30,7 +31,6 @@ import CurrentTorchHolderCard from "./_components/CurrentTorchHolderCard"
3031
import { adoptionStyles } from "./_components/data"
3132
import InnovationSwiper from "./_components/InnovationSwiper/lazy"
3233
import NFTMintCardWrapper from "./_components/NFTMintCardWrapper"
33-
// import TenYearGlobe from "./_components/TenYearGlobe/lazy"
3434
import TenYearHero from "./_components/TenYearHero"
3535
import TorchHistorySwiper from "./_components/TorchHistorySwiper/lazy"
3636
import Stories from "./_components/UserStories/lazy"
@@ -171,28 +171,17 @@ const Page = async ({ params }: { params: Promise<{ locale: Lang }> }) => {
171171
</div>
172172

173173
<div className="w-full px-4 py-8 md:px-8">
174-
<div className="flex min-h-[500px] flex-col items-center gap-4 rounded-4xl bg-radial-a px-8 pt-8 lg:px-14 lg:pt-14">
175-
<div className="flex max-w-[770px] flex-col gap-4 text-center">
174+
<div className="flex flex-col items-center gap-4 rounded-4xl bg-radial-a px-8 pt-8 lg:px-14 lg:pt-14">
175+
<div className="flex flex-col gap-4 text-center">
176176
<h2 className="text-4xl font-black">
177-
{t("page-10-year-join-party-title")}
177+
Watch the livestream recording
178178
</h2>
179-
<p className="text-md">
180-
{t("page-10-year-join-party-description")}
181-
</p>
182-
</div>
183-
<div className="h-[max(fit,260px)] sm:h-[400px] md:h-[500px] lg:h-[600px]">
184-
{/* CLIENT SIDE, lazy loaded */}
185-
{/* <TenYearGlobe
186-
actionLabel={t("page-10-year-globe-go-to-event")}
187-
events={Object.values(fetched10YearEvents).flatMap((region) =>
188-
region.events.map((event) => ({
189-
...event,
190-
lat: Number(event.lat),
191-
lng: Number(event.lng),
192-
}))
193-
)}
194-
/> */}
195179
</div>
180+
<YouTube
181+
className="w-full max-w-none"
182+
id="igPIMF1p5Bo"
183+
title="Livestream 10 years of Ethereum"
184+
/>
196185
</div>
197186
</div>
198187

src/components/YouTube.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import React from "react"
44
import LiteYouTubeEmbed from "react-lite-youtube-embed"
55

6+
import { cn } from "@/lib/utils/cn"
7+
68
import "react-lite-youtube-embed/dist/LiteYouTubeEmbed.css"
79

810
/**
@@ -19,13 +21,19 @@ type YouTubeProps = {
1921
id: string
2022
start?: string
2123
title?: string
24+
className?: string
2225
}
2326

24-
const YouTube = ({ id, start = "0", title = "YouTube" }: YouTubeProps) => {
27+
const YouTube = ({
28+
id,
29+
start = "0",
30+
title = "YouTube",
31+
className,
32+
}: YouTubeProps) => {
2533
const params = new URLSearchParams()
2634
;+start > 0 && params.set("start", start)
2735
return (
28-
<figure className="my-8 max-w-[560px]">
36+
<figure className={cn("my-8 max-w-[560px]", className)}>
2937
<LiteYouTubeEmbed
3038
aspectHeight={9}
3139
aspectWidth={16}

0 commit comments

Comments
 (0)