Skip to content

Commit ec9099b

Browse files
Merge pull request #2 from FalaAiMatheus/feature/welcome-page
feat: create welcome page
2 parents 1c8b471 + 208676c commit ec9099b

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
@layer base {
3838
* {
39-
@apply border-border;
39+
@apply scroll-smooth border-border;
4040
}
4141
body {
4242
@apply bg-background text-foreground;

src/app/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import { WelcomePage } from '@/features/welcome/components/welcome-section'
12
import { Header } from '@/layouts/header'
23

34
export default function Home() {
45
return (
5-
<main className="space-y-10">
6+
<main>
67
<Header />
8+
<WelcomePage />
79
</main>
810
)
911
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { Section } from '@/layouts/section'
2+
import { ChevronDown } from 'lucide-react'
3+
import Link from 'next/link'
4+
5+
export const WelcomePage = () => {
6+
return (
7+
<Section className="min-h-screen">
8+
<Section.Container className="flex flex-col items-start">
9+
<div className="flex flex-col items-start gap-2">
10+
<span className="text-lg font-medium lg:text-2xl xl:text-4xl">
11+
Welcome to my Portfolio
12+
</span>
13+
<span className="text-lg font-medium lg:text-2xl xl:text-4xl">
14+
Bem vindo(a) ao meu portfólio
15+
</span>
16+
</div>
17+
<Link className="absolute bottom-2 self-center" href="#content">
18+
<div className="flex cursor-pointer flex-col items-center gap-2 rounded-lg p-4 text-center">
19+
<span>Clique aqui para ver mais!</span>
20+
<ChevronDown size={32} />
21+
</div>
22+
</Link>
23+
</Section.Container>
24+
</Section>
25+
)
26+
}

src/layouts/header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Section } from '../section'
33

44
export const Header = () => {
55
return (
6-
<Section>
6+
<Section className="fixed top-0">
77
<Section.Container className="justify-end" asChild>
88
<header>
99
<nav>

0 commit comments

Comments
 (0)