aboutsummaryrefslogtreecommitdiff
path: root/app/updates/page.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2023-07-15 13:43:54 -0400
committerAndrew Lee <alee14498@protonmail.com>2023-07-15 13:43:54 -0400
commitb5b66d3841cebac5ab34744e63fc60e2a69a7252 (patch)
tree5a01d5bc019b118f38bebde87b96611aa8a233a7 /app/updates/page.js
parent959996961284a2800004eca2205add8e7d4f40f2 (diff)
downloadalure-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.js22
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>
+ )
+}