-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b99cae0
commit 6cca2d5
Showing
26 changed files
with
211 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import Link from "next/link"; | ||
import Link from 'next/link'; | ||
|
||
export default function NotFound() { | ||
const NotFound = () => { | ||
return ( | ||
<div> | ||
<h2>Post Not Found</h2> | ||
<Link href="/blog"> | ||
<Link href='/blog'> | ||
<span>←</span> | ||
<span>Go to list page</span> | ||
</Link> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { PostListContainer } from '../../components/posts/custom-container'; | ||
import { getAllPostsFromNotion } from '../../lib/posts'; | ||
import PostList from '../../components/posts/post-list'; | ||
import { getPostsFromNotion } from '../../lib/posts'; | ||
|
||
const Blog = async () => { | ||
const posts = await getAllPostsFromNotion(); | ||
const posts = await getPostsFromNotion(); | ||
|
||
return <PostListContainer posts={posts} />; | ||
return <PostList posts={posts} />; | ||
}; | ||
|
||
export default Blog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import { Analytics } from "@vercel/analytics/react"; | ||
import { SpeedInsights } from "@vercel/speed-insights/next"; | ||
import CustomProviders from "../components/custom-providers"; | ||
import "./globals.css"; | ||
import { Analytics } from '@vercel/analytics/react'; | ||
import { SpeedInsights } from '@vercel/speed-insights/next'; | ||
import CustomProvider from '../components/custom-provider'; | ||
import './globals.css'; | ||
|
||
const theme = "dark"; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
// NOTE: suppressHydrationWarning is a hack to avoid warnings | ||
// see: https://legacy.reactjs.org/docs/dom-elements.html#suppresshydrationwarning:~:text=It%20only%20works%20one%20level%20deep | ||
// NOTE: suppressHydrationWarning is a hack to avoid warnings | ||
// see: https://legacy.reactjs.org/docs/dom-elements.html#suppresshydrationwarning:~:text=It%20only%20works%20one%20level%20deep | ||
const RootLayout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<html suppressHydrationWarning lang="en"> | ||
<html suppressHydrationWarning lang='en'> | ||
<head /> | ||
<body> | ||
<CustomProviders theme={theme}>{children}</CustomProviders> | ||
<CustomProvider theme={'dark'}>{children}</CustomProvider> | ||
<Analytics /> | ||
<SpeedInsights /> | ||
</body> | ||
</html> | ||
); | ||
} | ||
}; | ||
|
||
export default RootLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.