Skip to content

Commit

Permalink
Replace Etherna Swarm video with YouTube
Browse files Browse the repository at this point in the history
Because the Swarm video was not loading often, going back to the Youtube
version, unfortunately.
  • Loading branch information
kuzdogan committed Jun 2, 2023
1 parent 0066b8e commit 6ff630a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions ui/src/pages/LandingPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,17 +430,12 @@ const LandingPage = () => {
>
<h1 className="text-3xl text-ceruleanBlue-500 font-bold">Resources</h1>
<div className="flex flex-col items-center mt-8">
{/* "aspect" hack from https://github.com/efdevcon/devcon-website/blob/e3565f34838135cf2198a927192cd44365458dcd/src/components/domain/archive/Video.tsx#L172
variable height via width percentage padding in a parent element until breakpoint lg, then constant width and height. */}
<div className="lg:pb-0 lg:h-auto lg:static h-0 w-full relative overflow-hidden pb-[56.25%] flex justify-center items-center">
<iframe
src="https://etherna.io/embed/44dc8c325a1c6d9950cb634a984477a6132663f91670fb016848a73b2b3a16c7"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
title="Human-Friendly Contract Interactions"
className="w-full h-full left-0 top-0 absolute lg:static md:w-[48rem] md:h-[27rem]"
></iframe>
</div>
<iframe
className="sm:w-[560px] sm:h-[315px] w-[280px] h-[157.5px]"
src="https://www.youtube.com/embed/Ggm82pnalCI"
title="YouTube video player"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
></iframe>
<div className="grid grid-cols-1 md:grid-cols-2 gap-10 mt-8 lg:mx-32">
<ul>
<h3 className="text-ceruleanBlue-500 uppercase text-lg font-semibold">
Expand Down

0 comments on commit 6ff630a

Please sign in to comment.