Skip to content

Commit b0191c9

Browse files
authored
Hero update (redo) (#65)
* Updated hero section and deleted old image * Changed hover color on client section's button * Deleted unused image * Added rounded corners to footer * Added image above the footer
1 parent b8945d7 commit b0191c9

File tree

6 files changed

+30
-21
lines changed

6 files changed

+30
-21
lines changed

packages/nextjs/components/Footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Image from "next/image";
55
*/
66
export const Footer = () => {
77
return (
8-
<div className="bg-[#182232] lg:p-12 p-8 flex items-center justify-center text-[16px]">
8+
<div className="bg-[#182232] lg:p-12 p-8 flex items-center justify-center text-[16px] rounded-t-3xl">
99
<div className="grid grid-cols-12 lg:gap-8 gap-3 max-w-7xl">
1010
<div className="col-span-12 lg:col-span-6 flex flex-col">
1111
<div className="flex flex-col">

packages/nextjs/pages/index.tsx

+28-19
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,26 @@ const Home: NextPage<{
2525
<>
2626
<MetaHeader />
2727
{/* Hero section with header */}
28-
<div className="relative h-[70vh] md:min-h-screen flex flex-col">
28+
<div className="relative h-[75vh] flex flex-col">
2929
<div className="absolute h-1/4 w-full top-0 left-0 hero-top-gradient"></div>
3030
<Header />
31-
<div className="bg-[url(/assets/hero.png)] bg-[#EFFBCA] bg-cover md:bg-center bg-[position:40%_0] flex-grow">
32-
<div className="flex justify-center">
33-
<h1 className="text-center z-10 text-2xl max-w-xs lg:text-5xl lg:mt-8 lg:max-w-2xl px-3">
34-
Learn, build, and thrive on Ethereum
31+
<div className="bg-[url(/assets/hero-new.png)] bg-[#EFFBCA] bg-cover bg-center flex-grow mt-[-50px]">
32+
<div className="flex flex-col justify-center items-center md:items-start md:justify-left mx-6 h-full md:ml-14 mt-[-30px]">
33+
<h1 className="text-center md:text-left z-10 lg:text-5xl text-4xl">
34+
Learn, build, and <br /> thrive on Ethereum
3535
</h1>
36+
<Link href="#start-building-on-ethereum">
37+
<TrackedLink
38+
id="hero-button"
39+
href="#start-building-on-ethereum"
40+
className="btn btn-secondary btn-md px-8 hover:opacity-100 w-fit mt-4"
41+
>
42+
Learn more
43+
</TrackedLink>
44+
</Link>
3645
</div>
3746
</div>
38-
<div className="absolute h-1/4 w-full bottom-0 left-0 hero-bottom-gradient flex items-end justify-center">
39-
<Link href="#start-building-on-ethereum" className="hidden lg:block">
40-
<Image
41-
src="/assets/down-arrow.svg"
42-
alt="diamon icon"
43-
width={25}
44-
height={25}
45-
className="mb-3 cursor-pointer animate-bounce-interval"
46-
/>
47-
</Link>
48-
</div>
47+
<div className="absolute h-1/4 w-full bottom-0 left-0 hero-bottom-gradient flex items-end justify-center"></div>
4948
</div>
5049

5150
{/* Quote section*/}
@@ -113,7 +112,8 @@ const Home: NextPage<{
113112
</div>
114113

115114
{/* Scaffold-ETH 2 */}
116-
<div className="base-200">
115+
<div className="bg-[#FFD2B3]">
116+
<div className="-mt-12 bg-repeat-x h-20 bg-[35%_top] bg-white"></div>
117117
<div className="-mt-12 bg-[url(/assets/sre-path.png)] bg-repeat-x h-20 bg-[35%_top]"></div>
118118
<div className="container max-w-[90%] lg:max-w-6xl m-auto py-16 lg:py-20 lg:px-12 flex flex-col-reverse lg:flex-row items-center gap-5 lg:gap-0">
119119
<div className="space-y-6">
@@ -336,7 +336,7 @@ const Home: NextPage<{
336336
<TrackedLink
337337
id="BG-Nodes"
338338
href="https://client.buidlguidl.com"
339-
className="btn btn-primary btn-md px-8 bg-[#FF66F9] border-[#FF66F9] hover:opacity-100"
339+
className="btn btn-md px-8 bg-[#FF66F9] text-black border-none hover:opacity-100"
340340
>
341341
Run Ethereum
342342
</TrackedLink>
@@ -385,7 +385,16 @@ const Home: NextPage<{
385385
</div>
386386
</div>
387387
</div>
388-
<Footer />
388+
389+
{/* Image above footer */}
390+
<div className="bg-skin relative -mb-[20px]">
391+
<div className="object-cover w-full">
392+
<Image src="/assets/bg-batches-footer.png" alt="Footer image" width={2500} height={1000} />
393+
</div>
394+
</div>
395+
<div className="relative z-10">
396+
<Footer />
397+
</div>
389398
</>
390399
);
391400
};
432 KB
Loading
-859 KB
Binary file not shown.
-55.1 KB
Binary file not shown.

packages/nextjs/styles/globals.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ html {
3333

3434
:root,
3535
[data-theme] {
36-
background: hsl(var(--b2));
36+
background: #EBECFE;
3737
}
3838

3939
body {

0 commit comments

Comments
 (0)