Skip to content

Commit

Permalink
17.9 Blog Section
Browse files Browse the repository at this point in the history
  • Loading branch information
serranoarevalo committed Feb 17, 2022
1 parent 98142b5 commit 0dca0fc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/server/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare global {
var client: PrismaClient | undefined;
}

const client = global.client || new PrismaClient({ log: ["query"] });
const client = global.client || new PrismaClient();

if (process.env.NODE_ENV === "development") global.client = client;

Expand Down
10 changes: 10 additions & 0 deletions pages/blog.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Layout from "@components/layout";

export default function Blog() {
return (
<Layout title="Blog" seoTitle="Blog">
<h1 className="font-semibold text-lg">Latest Posts:</h1>
<ul></ul>
</Layout>
);
}
2 changes: 1 addition & 1 deletion pages/chats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Chats: NextPage = () => {
return (
<Layout hasTabBar title="채팅">
<div className="divide-y-[1px] ">
{[1, 1, 1, 1, 1, 1, 1].map((_, i) => (
{[1].map((_, i) => (
<Link href={`/chats/${i}`} key={i}>
<a className="flex px-4 cursor-pointer py-3 items-center space-x-3">
<div className="w-12 h-12 rounded-full bg-slate-300" />
Expand Down
5 changes: 5 additions & 0 deletions posts/01-first-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Welcome everyone!

This is my fist blog post!

Thank you for reading!

0 comments on commit 0dca0fc

Please sign in to comment.