-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from ethersphere/swarm-2.0
Swarm 2.0
- Loading branch information
Showing
7 changed files
with
4,059 additions
and
5,992 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import * as React from "react"; | ||
import { | ||
ButtonGroup, | ||
Container, | ||
SectionContent, | ||
Tagline, | ||
} from "@/components/common"; | ||
import { CtaType } from "types"; | ||
|
||
type Swarm20Props = { | ||
title: string; | ||
tagline?: string; | ||
content?: string; | ||
ctas?: Array<CtaType>; | ||
}; | ||
|
||
const Swarm20: React.FC<Swarm20Props> = ({ | ||
title, | ||
tagline, | ||
content = "", | ||
ctas, | ||
}) => { | ||
return ( | ||
<section className="relative flex flex-col items-center justify-end overflow-hidden text-gray-100 bg-gray-800"> | ||
<Container className="relative flex flex-col h-full pt-20 pb-16 md:pb-44 md:pt-56"> | ||
<img | ||
src="/assets/swarm20.png" | ||
alt="Swarm 2.0 Graphic" | ||
className="absolute bottom-0 right-0 xl:-right-12 2xl:right-0 hidden pointer-events-none md:block md:top-[56px] md:h-4/5 h-1/2" | ||
/> | ||
{/* <Tagline copy={tagline} /> */} | ||
{/* Same height as the tagline, show if there is no tagline */} | ||
<div className="h-[60px] md:h-[76px]" /> | ||
|
||
<div className="z-20 mb-8 md:mb-12"> | ||
<h2 | ||
className="inline-flex flex-wrap font-bold text-4xl md:text-[64px] md:leading-[70px] tracking-[-0.01em] gap-3 items-center" | ||
dangerouslySetInnerHTML={{ __html: title }} | ||
/> | ||
</div> | ||
|
||
<SectionContent | ||
className="z-20 text-gray-100 mb-14" | ||
content={content} | ||
/> | ||
|
||
<ButtonGroup ctas={ctas} className="mb-4" /> | ||
</Container> | ||
|
||
<img | ||
src="/assets/swarm20.png" | ||
alt="Swarm 2.0 Graphic" | ||
className="object-contain object-right w-screen -mt-40 pointer-events-none max-h-96 md:hidden" | ||
/> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Swarm20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
cdb7c89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ethswarm-nextjs – ./
ethswarm-nextjs.vercel.app
ethswarm-nextjs-git-main-ethswarm.vercel.app
ethswarm-nextjs-ethswarm.vercel.app
www.ethswarm.org