(create) created dummy posts and styled it

This commit is contained in:
Yusuf İpek
2021-08-07 14:52:17 +03:00
parent 55f7b9e9fb
commit df8e941c9f
4 changed files with 47 additions and 6 deletions
+11 -2
View File
@@ -1,3 +1,12 @@
export default function Home() {
return <div className="homepage"></div>;
export default function Home({ posts }) {
return (
<div className="homepage">
<h1 className="homepage_heading-1">Rehberler</h1>
<div className="homepage_posts">
{posts.slice(0, 20).map((post) => (
<li key={post.id}>{post.title}</li>
))}
</div>
</div>
);
}