-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add dependencies * Add assets * Working with their mesh * Not really working shimmer cards * implement shimmer card without motion/framer * Fix TagChip * add button component * Add Title and move Card * add Title headline * try new component * Add large button and text component * fix ecosystem page * wasm free loading? * Checkpoint, cleaning up lint errors * New model attempt * home and jobs page with new section/components * New mesh export * Add Base Grantee badge * script to pull blog posts to display * blog section * new top navigation * mobile blog * navigation margin * about page * Adapt ecosystem page * adapt builder-anniversary-nft * adapt jobs page * remove unused views * remove unused views / frame / motion * adapt get started * i love wagmi * mobile optimization * tidy up get started page * fix alignment * add connect wallet button & transaction animation * blog effect tidy up & new job page * try catch * fix display * Load all the objects in a unit sphere * Add wasm-unsafe-eval to CSP * gradient circle animation * Dynamic ThreeHero * Add gltf and glb to file-loader * Try combined GLB file * button fix * lineheight and text selection styles * blog section optimizations * intersection observer * fix console errors * blog post optimization, css over state * one card provider = one event tracking * we like mobile too * ecosystem tweaks + mobile friendly * margin & padding * overflow fix * Remove transparency * use correct buttons & prefer canvas over svg animation * mobile navigation * latest optimize 3D pass * tweak balloon effect * fixed 3D hero header * Progress on physics sim * Link to retrofunding * Remove brand kit link for now * First pass at gravity scene * Added physics pause when a user scrolls. * fix fog and colors * Update next to allow draco loading and added noggles to scene * new light mouse trail * new light * mobile sizing * fix mobile scaling alignment * remove three card * remove noggles * Remove second OP logo * new logo and lightning * light intensity * Lighting * change switch network button text * optimize effects * less harsh light * latest models and video sections * sugar cube * animated menus * optimize instances in scene and make video hoverable * Add stats * add scroll test * Fix weird flash at the loading + updated menus * Add cursor * Remove shimmer * Mint button * adjust the bloom a little * new logo * fix mint button * remove orbit controls * remove stats * device vh * mess with device height * add analytics * generic events * eslint pass * load draco file locally * remove wasm exceptions * scene mobile pass: performance fixes * scene lint pass * scene lint pass * fix wasm * fix card effect * eslint pass * cleanup * linter * local import * local import * Team feedback round 1 * Team feedback round 2 * toggle menu on click * fixes * Team feedback round 2 * Team feedback round 3 * og image * 3D Header * Team feedback round 4 * Team feedback round 4 * Replace cube video * og image * RIght click to mint * use link component for tracking * fix active/inactive state * remove maath * Team feedback round 5 * Team feedback round 6 * background tweaks --------- Co-authored-by: Léo Galley <[email protected]> Co-authored-by: Mike Bodge <[email protected]>
- Loading branch information
1 parent
3247345
commit d41b9e5
Showing
142 changed files
with
9,449 additions
and
2,149 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,71 +1,67 @@ | ||
import { Metadata } from 'next'; | ||
import { FrameButtonMetadata } from '@coinbase/onchainkit/frame'; | ||
import AnalyticsProvider from 'apps/web/contexts/Analytics'; | ||
import { BestOfEthereum } from 'apps/web/src/components/BestOfEthereum/BestOfEthereum'; | ||
import { Commitment } from 'apps/web/src/components/Commitment/Commitment'; | ||
import { Divider } from 'apps/web/src/components/Divider/Divider'; | ||
import { EmpoweredByCoinbase } from 'apps/web/src/components/EmpoweredByCoinbase/EmpoweredByCoinbase'; | ||
import { Features } from 'apps/web/src/components/Features/Features'; | ||
import { GetConnected } from 'apps/web/src/components/GetConnected/GetConnected'; | ||
import { Hero } from 'apps/web/src/components/Home/Hero'; | ||
import { JoinTheCommunity } from 'apps/web/src/components/JoinTheCommunity/JoinTheCommunity'; | ||
import { Partnerships } from 'apps/web/src/components/Partnerships/Partnerships'; | ||
import Button from 'apps/web/src/components/base-org/Button'; | ||
import { ButtonVariants } from 'apps/web/src/components/base-org/Button/types'; | ||
import Title from 'apps/web/src/components/base-org/typography/Title'; | ||
import { TitleLevel } from 'apps/web/src/components/base-org/typography/Title/types'; | ||
import Container from 'apps/web/src/components/base-org/Container'; | ||
import VideoCardsSection from 'apps/web/src/components/base-org/root/VideoCardsSection'; | ||
import BuildExploreSection from 'apps/web/src/components/base-org/root/BuildExploreSection'; | ||
import SlidingTextSection from 'apps/web/src/components/base-org/root/SlidingTextSection'; | ||
import TransactionsFeesSection from 'apps/web/src/components/base-org/root/TransactionsFeesSection'; | ||
import BuildAndRewardSection from 'apps/web/src/components/base-org/root/BuildAndRewardSection'; | ||
import ErrorsProvider from 'apps/web/contexts/Errors'; | ||
import BlogSection from 'apps/web/src/components/base-org/root/BlogSection'; | ||
import dynamic from 'next/dynamic'; | ||
import Link from 'apps/web/src/components/Link'; | ||
import MissionSection from 'apps/web/src/components/base-org/root/MissionSection'; | ||
|
||
/* Farcaster Metadatas */ | ||
const buttons: FrameButtonMetadata[] = [ | ||
{ | ||
action: 'link', | ||
label: 'Read the docs', | ||
target: 'https://docs.base.org/', | ||
}, | ||
{ | ||
action: 'link', | ||
label: 'Bridge assets', | ||
target: 'https://bridge.base.org/deposit', | ||
}, | ||
]; | ||
|
||
const otherMetadata: Metadata['other'] = { | ||
'fc:frame:image': 'https://base.org/images/base-open-graph.png', | ||
}; | ||
|
||
buttons | ||
.map((button, index) => { | ||
const metadataKey = `fc:frame:button:${index + 1}`; | ||
otherMetadata[metadataKey] = [button.label]; | ||
if (button.action) otherMetadata[`${metadataKey}:action`] = [button.action]; | ||
if (button.target) otherMetadata[`${metadataKey}:target`] = [button.target]; | ||
return otherMetadata; | ||
}) | ||
.flat(); | ||
|
||
/* Page Metadatas */ | ||
export const metadata: Metadata = { | ||
other: otherMetadata, | ||
}; | ||
const DynamicThreeHero = dynamic(async () => import('apps/web/src/components/ThreeHero'), { | ||
ssr: false, | ||
}); | ||
|
||
export default async function Home() { | ||
return ( | ||
<AnalyticsProvider context="base_landing_page"> | ||
<ErrorsProvider context="base_landing_page"> | ||
<AnalyticsProvider context="hero"> | ||
<Hero /> | ||
<div className="relative z-10 h-screen w-full"> | ||
<DynamicThreeHero /> | ||
|
||
<div className="absolute bottom-0 left-0 z-20 w-full pb-20 text-white"> | ||
<Container> | ||
<Title level={TitleLevel.Title1}>Base is for everyone.</Title> | ||
<div className="mt-4 flex gap-4"> | ||
<Link href="/getstarted?utm_source=dotorg&medium=hero"> | ||
<Button variant={ButtonVariants.Secondary} iconName="baseOrgDiagonalUpArrow"> | ||
Start building | ||
</Button> | ||
</Link> | ||
<Link href="/names?utm_source=dotorg&medium=hero"> | ||
<Button variant={ButtonVariants.Outlined} iconName="baseOrgDiagonalUpArrow"> | ||
Get a Basename | ||
</Button> | ||
</Link> | ||
</div> | ||
</Container> | ||
<div className="pointer-events-none absolute bottom-0 left-0 z-20 h-[50px] w-full bg-gradient-to-b from-transparent to-black" /> | ||
</div> | ||
</div> | ||
</AnalyticsProvider> | ||
<main className="flex w-full flex-col items-center bg-black"> | ||
<Divider /> | ||
<Features /> | ||
<Divider /> | ||
<BestOfEthereum /> | ||
<Divider /> | ||
<EmpoweredByCoinbase /> | ||
<Divider /> | ||
<Partnerships /> | ||
<Divider /> | ||
<Commitment /> | ||
<Divider /> | ||
<JoinTheCommunity /> | ||
<Divider /> | ||
<GetConnected /> | ||
|
||
<main className="relative z-20 flex w-full flex-col items-center bg-black"> | ||
<Container> | ||
<div className="flex flex-col gap-20 pb-40 pt-20 md:gap-40"> | ||
<MissionSection /> | ||
<BuildExploreSection /> | ||
<VideoCardsSection /> | ||
<SlidingTextSection /> | ||
<TransactionsFeesSection /> | ||
<BuildAndRewardSection /> | ||
<AnalyticsProvider context="blog_carousel"> | ||
<BlogSection /> | ||
</AnalyticsProvider> | ||
</div> | ||
</Container> | ||
</main> | ||
</AnalyticsProvider> | ||
</ErrorsProvider> | ||
); | ||
} |
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
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
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.