Use Layout component
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import type { NextPage } from "next";
|
||||
import Head from "next/head";
|
||||
import type { ContentList } from "../lib/content/types";
|
||||
import Navigation from "../components/Blog/Navigation";
|
||||
import ProjectCard from "../components/Blog/Card";
|
||||
|
||||
import contentList from "../public/content/list.json";
|
||||
|
||||
import styles from "../styles/Blog/Front.module.scss";
|
||||
import Layout from "../components/Blog/Layout";
|
||||
|
||||
const Blog: NextPage<{ content: ContentList }> = ({content}) => {
|
||||
const generateCards = (type: string) => {
|
||||
@@ -14,22 +13,14 @@ const Blog: NextPage<{ content: ContentList }> = ({content}) => {
|
||||
};
|
||||
|
||||
return <>
|
||||
<Head>
|
||||
<title>c0ntroller.de</title>
|
||||
</Head>
|
||||
<div id={"blogBody"}>
|
||||
<header>
|
||||
<Navigation />
|
||||
</header>
|
||||
<main>
|
||||
<h1>Hello there!</h1>
|
||||
<p>Miaumiau Lorem ipsum</p>
|
||||
<h2>Projects</h2>
|
||||
{ generateCards("project") }
|
||||
<h2>Diaries</h2>
|
||||
{ generateCards("diary") }
|
||||
</main>
|
||||
</div>
|
||||
<Layout>
|
||||
<h1>Hello there!</h1>
|
||||
<p>Miaumiau Lorem ipsum</p>
|
||||
<h2>Projects</h2>
|
||||
{ generateCards("project") }
|
||||
<h2>Diaries</h2>
|
||||
{ generateCards("diary") }
|
||||
</Layout>
|
||||
</>;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user