Skip to content

Commit 9c40fa2

Browse files
committed
Fix mobile section
1 parent fb6ce2c commit 9c40fa2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ body {
3636
}
3737

3838
.btn-link {
39-
@apply cursor-pointer mr-2 transition-all rounded-full border-[1px] px-8 py-1 text-lg font-medium shadow-sm hover:brightness-[80%]
39+
@apply cursor-pointer mr-2 transition-all rounded-full border-[1px] px-8 py-1 text-lg font-medium shadow-sm hover:brightness-[80%] mt-2 w-full md:w-auto md:mt-0 text-center md:-text-left
4040
}

src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Binaries from '@/sections/Binaries'
77
import Contributors from '@/sections/Contributors'
88
import Documentation from '@/sections/Documentation'
99
import Downloads from '@/sections/Downloads'
10-
import Hero3 from '@/sections/Hero3'
10+
import Hero from '@/sections/Hero'
1111
import LearnMore from '@/sections/LearnMore'
1212
import RunningNode from '@/sections/RunningNode'
1313
import SpecsTable2 from '@/sections/SpecsTable2'
@@ -18,7 +18,7 @@ export default function Home() {
1818
return (
1919
<main className="flex flex-col bg-[#0f0f0f]">
2020
<Navbar />
21-
<Hero3 />
21+
<Hero />
2222
<WithForestYouCan2 />
2323
<BetaTesters />
2424
<SpecsTable2 />

src/sections/Hero3/index.tsx renamed to src/sections/Hero/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33

44
import { Link } from 'react-scroll';
55

6-
export default function Hero3() {
6+
export default function Hero() {
77
return (
88
<div className="relative h-screen w-full px-4 md:px-8 bg-no-repeat bg-cover bg-multi-gradient">
9-
<div className="relative flex flex-col max-w-7xl py-48">
9+
<div className="relative flex flex-col max-w-7xl mt-[40%] md:mt-0 md:py-48">
1010
<img className='max-w-[60%]' src="full-mark.png" alt="" />
1111
<div className='mt-10 flex flex-col sm:flex-row justify-start items-start'>
1212
<h1 className="md:max-w-[700px] text-6xl text-neutral-100">
1313
Rust implementation of the Filecoin Protocol
1414
</h1>
1515
<div className='flex flex-col'>
1616
<h3 className='md:max-w-[500px] mt-3 text-2xl text-neutral-400 '>Run Forest to access Filecoin, the decentralized storage network.</h3>
17-
<div className="py-4 flex items-center">
17+
<div className="py-4 flex flex-col md:mt-0 md:flex-row items-center">
1818
<Link smooth offset={40} className="btn-link border-brand-400 text-brand-400" to="download">Download</Link>
1919
<a href="https://share.hsforms.com/1DrMrWob7QM-C2RRL7HW0hQ4kcdm" target="_blank" rel="noopener noreferrer" className='btn-link border-gray-700 text-neutral-200' >Reach the Team</a>
2020
</div>

0 commit comments

Comments
 (0)