Skip to content

Commit 015be5b

Browse files
committed
feat: implement Welcome component for improved page structure and user experience
1 parent 56c47ce commit 015be5b

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

app/page.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
import Logomark from "@/components/logomark";
2-
import { appName } from "@/lib/const";
1+
import Welcome from "@/components/welcome";
32

43
export default function Page() {
54
return (
6-
<div className="flex flex-col items-center justify-center p-24">
7-
<div className="text-center">
8-
<Logomark />
9-
<h1 className="text-4xl font-bold mt-4">Welcome to {appName}</h1>
10-
<p className="text-lg mt-2 text-muted-foreground">
11-
Get started by building out your dashboard.
12-
</p>
13-
</div>
14-
</div>
5+
<Welcome />
156
);
167
}

components/welcome.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { appName } from "@/lib/const";
2+
import Logomark from "./logomark";
3+
4+
export default function Welcome() {
5+
return (
6+
<div className="flex flex-col items-center justify-center p-24">
7+
<div className="text-center">
8+
<Logomark />
9+
<h1 className="text-3xl font-bold mt-4">Welcome to {appName}</h1>
10+
<p className="mt-2 text-muted-foreground">
11+
Get started by building out your dashboard.
12+
</p>
13+
</div>
14+
</div>
15+
)
16+
}

0 commit comments

Comments
 (0)