Skip to content

Commit

Permalink
Update Video Gallery Component (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans authored Mar 7, 2024
1 parent 9059cac commit c66efc1
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 51 deletions.
2 changes: 2 additions & 0 deletions app/local/content/extras/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { SmartContractMap } from './smartcontractmap/SmartContractMap';
import { DNSGrid } from './tld-list/DNSGrid';
import { TLDList } from './tld-list/TLDList';
import { Usertag } from './usertag/Usertag';
import { VideoGallery } from './videos/VideoGallery';

export const extras = {
DNSUsageExamples,
Expand All @@ -18,4 +19,5 @@ export const extras = {
SmartContractMap,
Icons,
LinkCard,
VideoGallery,
};
75 changes: 75 additions & 0 deletions app/local/content/extras/videos/VideoGallery.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import { FC } from 'react';

export const VideoGallery: FC<{}> = () => {
return (
<div className="not-prose mt-0 grid w-full grid-cols-1 gap-4 pb-4 sm:grid-cols-2 lg:grid-cols-4">
{[
{
title: 'ETHDenver ENS Workshop',
location: 'ETHDenver',
description: '',
href: 'https://www.youtube.com/watch?v=hz1KH1qvzB4',
cover: '/content/videos/ethdenver24.webp',
},
{
title: 'February 2024 Docs Update',
location: 'Documentation',
description: '',
href: 'https://www.youtube.com/watch?v=GwX_m28SSOA',
cover: 'https://i3.ytimg.com/vi_webp/GwX_m28SSOA/mqdefault.webp',
},
{
title: 'ETHRome ENS Workshop 1',
location: 'ETHRome',
description:
'Greg, from ENS, gives an introductory workshop around what ENS is, why it is important, how it works, and how to build on top of it.',
href: 'https://www.youtube.com/watch?v=HIDPGdTDCj8',
cover: 'https://i3.ytimg.com/vi_webp/HIDPGdTDCj8/mqdefault.webp',
},
{
title: 'ETHRome ENS Workshop 2',
location: 'ETHRome',
description: 'Luc, from ENS, ',
href: 'https://www.youtube.com/watch?v=SHuCDqPbAP4',
cover: 'https://i3.ytimg.com/vi_webp/SHuCDqPbAP4/mqdefault.webp',
},
{
title: 'Cross Chain Interoperability',
location: 'ETHPrague',
description: '',
href: 'https://www.youtube.com/watch?v=URnUs4sSrU4',
cover: 'https://i3.ytimg.com/vi_webp/URnUs4sSrU4/mqdefault.webp',
},
{
title: 'State of ENS by Nick Johnson',
location: 'Devcon Bogota',
description:
// eslint-disable-next-line quotes
"An overview of ENS's innovations and progress in the last couple of years",
href: 'https://www.youtube.com/watch?v=Pta198KJTaw',
cover: 'https://i3.ytimg.com/vi_webp/Pta198KJTaw/mqdefault.webp',
},
].map((entry, index) => (
<a
className="border-ens-light-border dark:border-ens-dark-border bg-ens-light-background-primary dark:bg-ens-dark-background-primary hover:bg-ens-light-background-secondary/50 hover:dark:bg-ens-dark-background-secondary/50 my-0 flex w-full flex-col overflow-hidden rounded-lg border py-0"
href={entry.href}
>
<div className="bg-ens-light-background-disabled dark:bg-ens-dark-background-secondary aspect-video w-full">
{entry.cover && (
<img
src={entry.cover}
alt=""
className="aspect-video w-full"
/>
)}
</div>
<div className="border-ens-light-border dark:border-ens-dark-border w-full text-ellipsis border-t px-3 pb-3 pt-2">
<span className="font-bold">{entry.title}</span>
<p className="tag tag-blue">{entry.location}</p>
{/*<p className="h-16 overflow-ellipsis text-xs">{entry.description}</p>*/}
</div>
</a>
))}
</div>
);
};
Binary file added app/public/content/videos/ethdenver24.webp
Binary file not shown.
52 changes: 1 addition & 51 deletions docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,56 +118,6 @@ export const meta = {
</div>

<h3 className="pt-4">Videos</h3>
<div className="w-full gap-4 pb-4 mt-0 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 not-prose">
{[
{
title: "ETHRome ENS Workshop 1",
location: "ETHRome",
description:
"Greg, from ENS, gives an introductory workshop around what ENS is, why it is important, how it works, and how to build on top of it.",
href: "https://www.youtube.com/watch?v=HIDPGdTDCj8",
cover: "https://i3.ytimg.com/vi_webp/HIDPGdTDCj8/mqdefault.webp",
},
{
title: "ETHRome ENS Workshop 2",
location: "ETHRome",
description: "Luc, from ENS, ",
href: "https://www.youtube.com/watch?v=SHuCDqPbAP4",
cover: "https://i3.ytimg.com/vi_webp/SHuCDqPbAP4/mqdefault.webp",
},
{
title: "Cross Chain Interoperability",
location: "ETHPrague",
description: "",
href: "https://www.youtube.com/watch?v=URnUs4sSrU4",
cover: "https://i3.ytimg.com/vi_webp/URnUs4sSrU4/mqdefault.webp",
},
{
title: "State of ENS by Nick Johnson",
location: "Devcon Bogota",
description:
"An overview of ENS's innovations and progress in the last couple of years",
href: "https://www.youtube.com/watch?v=Pta198KJTaw",
cover: "https://i3.ytimg.com/vi_webp/Pta198KJTaw/mqdefault.webp",
},
].map((entry, i) => (
<a
className="w-full border flex flex-col rounded-lg border-ens-light-border dark:border-ens-dark-border overflow-hidden my-0 py-0 bg-ens-light-background-primary dark:bg-ens-dark-background-primary hover:bg-ens-light-background-secondary/50 hover:dark:bg-ens-dark-background-secondary/50"
href={entry.href}
hideExtras={true}
>
<div className="w-full bg-ens-light-background-disabled dark:bg-ens-dark-background-secondary aspect-video">
{entry.cover && (
<img src={entry.cover} alt="" className="w-full aspect-video" />
)}
</div>
<div className="w-full border-t border-ens-light-border dark:border-ens-dark-border px-3 pt-2 pb-3 overflow-ellipsis">
<span className="font-bold">{entry.title}</span>
<p className="tag tag-blue">{entry.location}</p>
{/*<p className="h-16 overflow-ellipsis text-xs">{entry.description}</p>*/}
</div>
</a>
))}
</div>
<VideoGallery />

</div>

0 comments on commit c66efc1

Please sign in to comment.