Skip to content

Commit 0e71914

Browse files
committed
upgrade to next 15
1 parent d38ada5 commit 0e71914

File tree

9 files changed

+1992
-1325
lines changed

9 files changed

+1992
-1325
lines changed

app/blog/[slug]/page.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

app/blog/page.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/blog/posts/helloworld.mdx

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/blog/utils.ts

Lines changed: 0 additions & 55 deletions
This file was deleted.

app/components/posts.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export default function RootLayout({
1616
}) {
1717
return (
1818
<html lang="en">
19-
<body className={`${inter.className} max-w-xl mx-4 mt-8 lg:mx-auto`}>
20-
<main className=' flex-auto min-w-0 mt-6 flex flex-col px-2 md:px-0'>
19+
<body className={`${inter.className}`}>
20+
<main>
2121
{children}
2222
</main>
2323
</body>

app/page.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
1-
import Link from "next/link"
2-
import { getBlogPosts } from "./blog/utils"
3-
41
export default function Page() {
5-
let post = getBlogPosts()[0]
6-
72
return (
83
<section>
9-
<h1 className=" text-2xl font-semibold tracking-tighter">hi there, rasyidcode here 👋</h1>
10-
<p>
11-
{`I am just testing this next.js framework to build a simple blog just like leerob.io,
12-
you can find the template on the official next.js site.`}
13-
</p>
14-
<div className="py-8">
15-
<Link href={`/blog/${post.slug}`}>
16-
<div className="border p-2">
17-
<p className=" font-medium">{post.metadata.title}</p>
18-
<p>{post.metadata.summary}</p>
19-
</div>
20-
</Link>
21-
</div>
4+
225
</section>
236
)
247
}

0 commit comments

Comments
 (0)