-
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
Showing
21 changed files
with
165 additions
and
117 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
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,4 +1,4 @@ | ||
import { withContentlayer } from 'next-contentlayer'; | ||
import { withContentlayer } from 'next-contentlayer' | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { reactStrictMode: true, images: { domains: ['localhost'] } }; | ||
export default withContentlayer(nextConfig) | ||
const nextConfig = { reactStrictMode: true, images: { domains: ['localhost'] } } | ||
export default withContentlayer(nextConfig) |
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,26 +1,25 @@ | ||
import type { Metadata } from "next"; | ||
import "../styles/globals.css"; | ||
import { Header, Footer } from "../components"; | ||
import type { Metadata } from 'next' | ||
import '@/styles/globals.css' | ||
import { Footer, Header } from '@/components' | ||
import type { ReactNode } from 'react' | ||
|
||
export const metadata: Metadata = { | ||
title: "Liam", | ||
description: "Liam blog", | ||
}; | ||
title: 'Liam', | ||
description: 'Liam blog', | ||
} | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
children: ReactNode | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body> | ||
<Header></Header> | ||
<main> | ||
{children} | ||
</main> | ||
<Footer></Footer> | ||
<Header /> | ||
<main>{children}</main> | ||
<Footer /> | ||
</body> | ||
</html> | ||
); | ||
) | ||
} |
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,11 +1,11 @@ | ||
import { compareDesc } from 'date-fns' | ||
import { allPosts } from 'contentlayer/generated' | ||
import { TopCards } from '../components/TopCards' | ||
import { compareDesc } from 'date-fns' | ||
import { TopCards } from '../components' | ||
|
||
export default function Home() { | ||
const posts = allPosts.sort((a, b) => compareDesc(new Date(a.date), new Date(b.date))) | ||
|
||
return ( | ||
<TopCards posts={posts.slice(0, 14)}/> | ||
const posts = allPosts.sort((a, b) => | ||
compareDesc(new Date(a.date), new Date(b.date)), | ||
) | ||
|
||
return <TopCards posts={posts.slice(0, 14)} /> | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import Link from 'next/link' | ||
import styles from './Header.module.css' | ||
import { LiamLogo } from './logos' | ||
import styles from './Header.module.css'; | ||
|
||
export const Header = () => { | ||
return ( | ||
<header className={styles.header}> | ||
<Link href="/"> | ||
<h1 className={styles.h1}> | ||
<LiamLogo /> | ||
</h1> | ||
</Link> | ||
</header> | ||
); | ||
}; | ||
return ( | ||
<header className={styles.header}> | ||
<Link href="/"> | ||
<h1 className={styles.h1}> | ||
<LiamLogo /> | ||
</h1> | ||
</Link> | ||
</header> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { Header } from "./Header"; | ||
export { Footer } from "./Footer"; | ||
export { Header } from './Header' | ||
export { Footer } from './Footer' | ||
export * from './TopCards' |
Oops, something went wrong.