Skip to content

Commit 813e985

Browse files
Responsive fix (#36)
fix: responsive
1 parent 1e69a71 commit 813e985

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

web/components/Hero.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ import Navbar from './Navbar'
44

55
export default function Hero() {
66
return (
7-
<div className="relative flex h-screen flex-col">
7+
<div className="relative flex flex-col py-20 md:h-screen md:py-0">
88
{/* Blur absolute div */}
99
<div className="absolute top-0 left-1/2 h-48 w-[40rem] -translate-x-1/2 bg-[#2A468E] blur-[140px]"></div>
1010
{/* Main content */}
1111
<Navbar />
1212
<div className="z-10 flex flex-1 flex-col items-center justify-center p-10 text-center xl:p-0">
13-
<div className="max-w-5xl text-5xl font-black leading-normal lg:text-7xl lg:leading-[6rem]">
13+
<div className="text-5xl font-black leading-[3.5rem] md:max-w-5xl lg:text-7xl lg:leading-[6rem]">
1414
Stop rewriting your <span className="text-[#24D1DC]">React</span> and{' '}
1515
<span className="text-[#24D1DC]">Next.js</span> code
1616
</div>
1717
<div className="mt-7 text-3xl leading-normal text-gray-400">
1818
Use our VSCode and Jetbrains snippets extension
1919
</div>
20-
<div className="mt-8 grid grid-cols-2 gap-5">
20+
<div className="mt-8 grid grid-cols-1 gap-5 md:grid-cols-2">
2121
<Link href="#">
2222
<a className="w-48 rounded-md bg-gradient-to-r from-[#000A67] to-[#004E92] py-3 text-xl">
2323
Get started
@@ -32,4 +32,4 @@ export default function Hero() {
3232
</div>
3333
</div>
3434
)
35-
}
35+
}

web/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Working from '../components/Working'
66

77
export default function Home() {
88
return (
9-
<div className="w-screen overflow-y-hidden">
9+
<div className="w-screen overflow-x-hidden">
1010
<div className="mx-auto max-w-6xl">
1111
<Head>
1212
<title>React &amp; Next.js snippets</title>
@@ -19,4 +19,4 @@ export default function Home() {
1919
</div>
2020
</div>
2121
)
22-
}
22+
}

0 commit comments

Comments
 (0)