diff --git a/backend/.tmp/data.db b/backend/.tmp/data.db index 5c35fa5..0a4b27a 100644 Binary files a/backend/.tmp/data.db and b/backend/.tmp/data.db differ diff --git a/frontend/components/Articles.js b/frontend/components/Articles.js index 9cdfc2b..41d6a74 100644 --- a/frontend/components/Articles.js +++ b/frontend/components/Articles.js @@ -1,21 +1,20 @@ -import Card from "./card"; +import Card from "./Card"; const Articles = ({ articles }) => { - console.log(articles) const leftArticlesCount = Math.ceil(articles.length / 5); const leftArticles = articles.slice(0, leftArticlesCount); const rightArticles = articles.slice(leftArticlesCount, articles.length); return (
-
+
{leftArticles.map((article, i) => { return ; })}
-
+
{rightArticles.map((article, i) => { return ; })} diff --git a/frontend/components/Layout.js b/frontend/components/Layout.js new file mode 100644 index 0000000..df359d1 --- /dev/null +++ b/frontend/components/Layout.js @@ -0,0 +1,27 @@ +import Head from 'next/head' +import Nav from './Nav' + +const Layout = props => { + return( + <> + + {props.titlePage} + + +