Skip to content

Commit 383acd5

Browse files
committed
refactor(homepage): refactor contact section
1 parent 0258c7b commit 383acd5

4 files changed

Lines changed: 31 additions & 2 deletions

File tree

src/app/(user-scope)/(homepage)/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { getMetaData } from '@/utils/seo/get-metadata'
66
import { getHomepageJsonLd } from './json-ld'
77
import { Benefits } from './sections/benefits'
88
import { Skiper } from './sections/contact'
9+
import { ContactSimplified } from './sections/contact-simplified'
910
import { Details } from './sections/details'
1011
import { Header } from './sections/header'
1112
import { HowItWorks } from './sections/how-it-works'
@@ -36,6 +37,7 @@ const Page: NextPage = async () => {
3637
<MoreInfoAbout />
3738
<HowItWorks />
3839
<Skiper />
40+
<ContactSimplified />
3941
</main>
4042
</>
4143
)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { ArrowRight } from 'lucide-react'
2+
import Link from 'next/link'
3+
import type { FC } from 'react'
4+
5+
export const ContactSimplified: FC = () => {
6+
return (
7+
<section className="relative z-40 flex w-full bg-white px-4 pt-8 pb-12 lg:hidden lg:py-16 xl:px-0">
8+
<div className="mx-auto flex w-full max-w-2xl flex-col items-center gap-4 lg:max-w-7xl">
9+
<h2 className="text-2xl font-bold lg:text-4xl">Tem alguma sugestão?</h2>
10+
<p className="text-center text-sm text-neutral-500 lg:text-base">
11+
Se conhece alguma ONG, projeto social ou iniciativa solidária, envie{' '}
12+
<br className="hidden xl:block" /> sua sugestão e ajude a ampliar o
13+
alcance dessas ações.
14+
</p>
15+
<Link
16+
className="mt-2 flex cursor-pointer items-center gap-3 rounded-full bg-neutral-700 py-2.5 pr-4 pl-5 text-sm font-semibold text-white transition-all duration-150 hover:bg-neutral-800"
17+
href="/contato"
18+
>
19+
Enviar sugestão
20+
<figure className="flex h-5 w-5 items-center justify-center rounded-full bg-white">
21+
<ArrowRight className="h-3 w-3 text-neutral-700" />
22+
</figure>
23+
</Link>
24+
</div>
25+
</section>
26+
)
27+
}

src/app/(user-scope)/(homepage)/sections/contact/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Skiper = () => {
1313

1414
return (
1515
<section
16-
className="mx-auto flex h-[1560px] w-screen flex-col items-center overflow-hidden bg-white px-4"
16+
className="mx-auto hidden h-[1560px] w-screen flex-col items-center overflow-hidden bg-white px-4 lg:flex"
1717
ref={ref}
1818
>
1919
<article className="relative mt-42 flex w-fit flex-col items-center justify-center gap-5 text-center">

src/app/(user-scope)/sobre/sections/stack/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const Stack = () => {
176176

177177
return (
178178
<ReactLenis root>
179-
<section className="mb-[-45vh] w-full bg-white">
179+
<section className="mb-[-45vh] hidden w-full bg-white lg:flex">
180180
<div
181181
className="relative box-border flex h-[210vh] items-center justify-center gap-[2vw] overflow-hidden bg-[#f5f4f3] p-[2vw]"
182182
ref={targetRef}

0 commit comments

Comments
 (0)