Skip to content

Commit b1ce52a

Browse files
committedMar 19, 2024
add basic homepage UI
1 parent 6a89783 commit b1ce52a

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed
 

‎app/page.js

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
import Link from "next/link";
22

3+
import { Button } from "@/components/ui/button";
4+
35
export default function Home() {
46
return (
5-
<>
6-
<section>My NextJs Minimal Blog Boilerplate.</section>
7-
<p>Ready to go with minimal setup. Move fast with blogs.</p>
8-
<br />
9-
<Link href="/blog">Blog &rarr;</Link>
10-
</>
7+
<main className="flex min-h-screen flex-col items-center p-24">
8+
<h1 className="text-2xl font-bold">Blog Fast!</h1>
9+
<p>Start your blog in <span className="text-purple-800 font-bold dark:text-purple-500">few hours not few days.</span></p>
10+
<small className="my-4">
11+
Ready to go, <span className="text-purple-800 font-bold dark:text-purple-500">done for you NextJs blog setup</span>.
12+
Clone, write your first blog, and deploy. As simple as that.
13+
<br /><br />
14+
Focus on writing, not on setting up the blog.
15+
<br /><br />
16+
New templates launching soon.
17+
</small>
18+
<Link href="/blog">
19+
<Button>Read blogs</Button>
20+
</Link>
21+
</main>
1122
);
1223
}

‎components/site-header.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ import { cn } from "@/lib/utils";
33
import Link from "next/link";
44
import { buttonVariants } from "./ui/button";
55
import { Icons } from "./icons";
6-
// import { MainNav } from "./main-nav";
76
import { ModeToggle } from "./mode-toggle";
87

98
export function SiteHeader() {
109
return (
1110
<header className="sticky top-0 w-full border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
1211
<div className="container flex h-14 max-w-screen-2xl items-center">
13-
{/* <MainNav /> */}
12+
<Link href="/">BlogFast</Link>
1413
<div className="flex flex-1 items-center justify-end space-x-2">
1514
<nav className="flex items-center">
1615
<ModeToggle />

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "nextjs-blog-boilerplate",
2+
"name": "blog-fast",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {

0 commit comments

Comments
 (0)
Please sign in to comment.