Skip to content

Commit 962db37

Browse files
committed
add hero section
1 parent 911876f commit 962db37

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

components/Hero.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import React from "react";
2+
import Link from "next/link";
3+
import Image from "next/image";
4+
5+
import { Button } from "@/components/ui/button";
6+
7+
export default function Hero() {
8+
return (
9+
<div className="mx-auto max-w-7xl px-6 lg:px-8 mt-14 relative">
10+
<div className="flex flex-col md:flex-col md:space-x-4 md:space-y-0 items-center gap-5">
11+
<div className="relative mx-auto max-w-3xl text-center gap-3">
12+
<h1 className="bg-gradient-to-br from-white to-sky-200 bg-clip-text text-4xl/[1.07] font-bold tracking-tight text-transparent md:text-6xl/[1.07]">
13+
Find your next optimal Visual Studio Code setup
14+
</h1>
15+
<p className="mt-6 text-md font-medium text-slate-100 md:text-lg">
16+
Explore multiple font and theme pairings for Visual Studio Code that
17+
just work!
18+
</p>
19+
<div className="mt-6 flex flex-col items-center justify-center gap-y-8">
20+
<Button
21+
asChild
22+
size="lg"
23+
variant="outline"
24+
className="font-semibold text-[#007ACC] hover:text-[#007ACC]"
25+
>
26+
<Link href="/explore">Explore Pairs</Link>
27+
</Button>
28+
</div>
29+
</div>
30+
<div className="-m-2 rounded-xl bg-neutral-900/5 dark:bg-neutral-100/10 p-2 ring-1 ring-inset ring-neutral-900/10 lg:-m-4 lg:rounded-2xl lg:p-4">
31+
<Image
32+
alt="Hero"
33+
height="400"
34+
width="600"
35+
src="/img/hero-img.png"
36+
style={{
37+
aspectRatio: "16/9",
38+
objectFit: "cover",
39+
}}
40+
className="rounded-md bg-white shadow-2xl ring-1 ring-sky-900/10"
41+
/>
42+
</div>
43+
</div>
44+
</div>
45+
);
46+
}

0 commit comments

Comments
 (0)