Skip to content

Commit

Permalink
Move homepage hero to component
Browse files Browse the repository at this point in the history
  • Loading branch information
carletex committed Feb 16, 2024
1 parent 82fd808 commit 3dedcd3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 38 deletions.
32 changes: 32 additions & 0 deletions packages/nextjs/app/_components/HomepageHero.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Image from "next/image";
import Link from "next/link";

export const HomepageHero = () => (
<div className="container max-w-[90%] lg:max-w-7xl m-auto py-10 lg:py-16 xl:pl-18 lg:pl-8 flex flex-col-reverse lg:flex-row items-center justify-between gap-5 lg:gap-0">
<div className="space-y-2 lg:max-w-[65%] flex flex-col items-center lg:items-start">
<div className="relative">
<h2 className="text-3xl md:text-4xl lg:text-6xl lg:leading-[1.2] text-center lg:text-left font-ppEditorial">
Funding meaningful projects <br /> across the ecosystem
</h2>
<Image className="absolute -top-3 -right-7" src="/assets/sparkle.png" alt="sparkle" width={32} height={32} />
</div>
<div className="text-center font-spaceMono px-1 max-w-lg lg:max-w-none lg:w-4/5 lg:px-0 lg:text-left space-y-5">
<p className="m-0 text-xs md:text-sm lg:text-lg">
Our micro grants are one of many ways BuidlGuidl funds development and contribute to Ethereum. Did you just
finished SRE or completed one of our batches? This could be your next step in BuidlGuidl’s journey.
</p>
<Link
href="/submit-grant"
className="btn btn-primary btn-md border-1 border-black rounded-2xl px-14 font-medium shadow-none"
>
Learn More
</Link>
</div>
</div>
<div className="flex flex-col items-center">
<div className="max-w-md lg:max-w-none">
<Image src="/assets/bg-universe.png" alt="developers list" width={500} height={500} />
</div>
</div>
</div>
);
40 changes: 2 additions & 38 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,47 +1,11 @@
import Image from "next/image";
import Link from "next/link";
import { CompletedGrants } from "./_components/CompletedGrants";
import { GrantsStats } from "./_components/GrantsStats";
import { HomepageHero } from "./_components/HomepageHero";

const Home = () => {
return (
<>
{/* Hero section */}
<div>
<div className="container max-w-[90%] lg:max-w-7xl m-auto py-10 lg:py-16 xl:pl-18 lg:pl-8 flex flex-col-reverse lg:flex-row items-center justify-between gap-5 lg:gap-0">
<div className="space-y-2 lg:max-w-[65%] flex flex-col items-center lg:items-start">
<div className="relative">
<h2 className="text-3xl md:text-4xl lg:text-6xl lg:leading-[1.2] text-center lg:text-left font-ppEditorial">
Funding meaningful projects <br /> across the ecosystem
</h2>
<Image
className="absolute -top-3 -right-7"
src="/assets/sparkle.png"
alt="sparkle"
width={32}
height={32}
/>
</div>
<div className="text-center font-spaceMono px-1 max-w-lg lg:max-w-none lg:w-4/5 lg:px-0 lg:text-left space-y-5">
<p className="m-0 text-xs md:text-sm lg:text-lg">
Our micro grants are one of many ways BuidlGuidl funds development and contribute to Ethereum. Did you
just finished SRE or completed one of our batches? This could be your next step in BuidlGuidl’s journey.
</p>
<Link
href="/submit-grant"
className="btn btn-primary btn-md border-1 border-black rounded-2xl px-14 font-medium shadow-none"
>
Learn More
</Link>
</div>
</div>
<div className="flex flex-col items-center">
<div className="max-w-md lg:max-w-none">
<Image src="/assets/bg-universe.png" alt="developers list" width={500} height={500} />
</div>
</div>
</div>
</div>
<HomepageHero />
<GrantsStats />
<CompletedGrants />
</>
Expand Down

0 comments on commit 3dedcd3

Please sign in to comment.