diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-07-15 13:43:54 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-07-15 13:43:54 -0400 |
| commit | b5b66d3841cebac5ab34744e63fc60e2a69a7252 (patch) | |
| tree | 5a01d5bc019b118f38bebde87b96611aa8a233a7 /app/updates/page.js | |
| parent | 959996961284a2800004eca2205add8e7d4f40f2 (diff) | |
| download | alure-website-b5b66d3841cebac5ab34744e63fc60e2a69a7252.tar.gz alure-website-b5b66d3841cebac5ab34744e63fc60e2a69a7252.tar.bz2 alure-website-b5b66d3841cebac5ab34744e63fc60e2a69a7252.zip | |
New page; Post system; Fixed more padding
Diffstat (limited to 'app/updates/page.js')
| -rw-r--r-- | app/updates/page.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/updates/page.js b/app/updates/page.js new file mode 100644 index 0000000..3f20871 --- /dev/null +++ b/app/updates/page.js @@ -0,0 +1,22 @@ +import getPostMetadata from "@/components/getPostMetadata"; +import PostPreview from "@/components/PostPreview"; + +export default function Updates() { + const postMetadata = getPostMetadata(); + const postPreviews = postMetadata.map((post) => ( + <PostPreview key={post.slug} {...post} /> + )); + return ( + <main className="flex flex-col"> + <div className="bg-center bg-no-repeat bg-[url('/jumbotron.webp')] bg-gray-700 bg-blend-multiply"> + <div className="md:px-40 px-10 max-w-screen-xl text-left py-24 lg:py-10 space-y-3"> + <h1 className="font-medium text-4xl">Updates</h1> + <h2 className="font-light text-lg">Follow the latest updates from the Government of Alure Regions</h2> + </div> + </div> + <div className="md:px-60 px-2 py-3"> + <div className="px-10 grid grid-cols-1 md:grid-cols-2 gap-4">{postPreviews}</div> + </div> + </main> + ) +} |
