-
Notifications
You must be signed in to change notification settings - Fork 3
[FILECOIN V3] Improve hero images placement #2057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
8211069
a3f061c
c115751
045e1f9
18f4e3e
ad33eb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| import Image from 'next/image' | ||
|
|
||
| import { Button } from '@filecoin-foundation/ui-filecoin/Button' | ||
| import { PageHeader } from '@filecoin-foundation/ui-filecoin/PageHeader' | ||
| import { PageSection } from '@filecoin-foundation/ui-filecoin/PageSection' | ||
| import { SectionContent } from '@filecoin-foundation/ui-filecoin/SectionContent' | ||
|
|
||
| import { FILECOIN_CLOUD_URL, FILECOIN_DOCS_URL } from '@/constants/siteMetadata' | ||
|
|
||
| import { graphicsData } from '@/data/graphicsData' | ||
|
|
||
| import { SplitSectionContent } from '@/components/SplitSectionContent' | ||
|
|
||
| export function HeroSection() { | ||
| return ( | ||
| <PageSection backgroundVariant="dark"> | ||
| <header className="grid max-w-full grid-cols-1 lg:grid-cols-3 lg:gap-0"> | ||
| <div className="lg:col-span-2 lg:pr-28"> | ||
| <PageHeader | ||
| title="Build on Filecoin: open, scalable, verifiable storage" | ||
| description="Filecoin is a programmable, permissionless network from the ground up with cryptographic verification and global redundancy. Integrate decentralized storage that scales with your needs and safeguards data integrity at every layer." | ||
| cta={ | ||
| <Button href={FILECOIN_DOCS_URL} variant="primary"> | ||
| Explore documentation | ||
| </Button> | ||
| } | ||
| /> | ||
| </div> | ||
|
|
||
| <Image | ||
| priority | ||
| src={graphicsData.cupolaEarthView.data} | ||
| alt={graphicsData.cupolaEarthView.alt} | ||
| className="relative mx-auto w-3/4 lg:top-25 lg:left-15 lg:w-full lg:scale-[2]" | ||
| /> | ||
| </header> | ||
|
|
||
| <div className="lg:mt-80"> | ||
| <SectionContent title="Announcing Filecoin Onchain Cloud"> | ||
| <SplitSectionContent | ||
| title="Verifiable onchain services with transparent storage, retrieval, and payments" | ||
| description={[ | ||
| 'Filecoin Onchain Cloud allows developers to build composable and verifiable services onchain where storage, pinning, retrieval, and payments are transparent, programmable, and interoperable by default.', | ||
| 'This provides direct, trustless entry points to the Filecoin network so developers can connect data, services, and applications without running their own infrastructure.', | ||
| ]} | ||
| cta={[ | ||
| <Button href={FILECOIN_CLOUD_URL} variant="primary"> | ||
| Get started with Filecoin Onchain Cloud | ||
| </Button>, | ||
| ]} | ||
| /> | ||
| </SectionContent> | ||
| </div> | ||
| </PageSection> | ||
| ) | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,28 @@ | ||
| export function GradientOverlay() { | ||
| return ( | ||
| <div className="pointer-events-none absolute inset-x-0 bottom-0 -z-10 h-64 bg-linear-to-b from-transparent via-transparent via-50% to-zinc-950/80" /> | ||
| ) | ||
| import { clsx } from 'clsx' | ||
|
|
||
| const sharedStyles = 'pointer-events-none absolute -z-10' | ||
|
|
||
| const variants = { | ||
| 'to-bottom': clsx( | ||
| sharedStyles, | ||
| 'inset-x-0 bottom-0 h-full bg-linear-to-b from-transparent via-transparent via-50% to-zinc-950/95', | ||
| ), | ||
| 'to-top': clsx( | ||
| sharedStyles, | ||
| 'inset-x-0 top-0 h-full bg-linear-to-t from-transparent via-transparent via-50% to-zinc-950/95', | ||
| ), | ||
| dual: clsx( | ||
| sharedStyles, | ||
| 'inset-0 h-full bg-linear-to-b from-zinc-950/95 via-transparent to-zinc-950/95', | ||
| ), | ||
| } | ||
|
|
||
| type GradientOverlayProps = { | ||
| variant?: keyof typeof variants | ||
| } | ||
|
|
||
| export function GradientOverlay({ | ||
| variant = 'to-bottom', | ||
| }: GradientOverlayProps) { | ||
| return <div className={variants[variant]} /> | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,7 @@ export function SiteLayout({ | |
| <StructuredDataScript structuredData={ORGANIZATION_SCHEMA_BASE} /> | ||
| </head> | ||
| <body className="bg-white font-sans text-base/5.5"> | ||
| <main>{children}</main> | ||
| <main className="overflow-x-hidden">{children}</main> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Uf .. feeling queazy about adding this to the the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other option would be to add it to What worries you here? |
||
| <Footer /> | ||
|
|
||
| {process.env.NODE_ENV === 'development' && <BreakpointDebugger />} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.