diff options
Diffstat (limited to 'app/page.js')
| -rw-r--r-- | app/page.js | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/app/page.js b/app/page.js new file mode 100644 index 0000000..b518096 --- /dev/null +++ b/app/page.js @@ -0,0 +1,71 @@ +import getPostMetadata from "@/components/updates/getPostMetadata"; +import PostPreview from "@/components/updates/PostPreview"; +import Link from "next/link"; + +export const metadata = { + title: 'Home - Government of Southeastern Islands', + description: 'The official website of the Government of Southeastern Islands', +} +export default function Home() { + const postMetadata = getPostMetadata(); + const postPreviews = postMetadata.slice(0,3).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-500 bg-blend-multiply"> + <div className="px-4 mx-auto max-w-screen-xl text-center py-24 lg:py-56 space-y-3"> + <h1 className="font-medium md:text-5xl text-4xl">Welcome to Southeastern Islands</h1> + <h2 className="font-light md:text-3xl text-xl">The official website of the Government of Southeastern Islands</h2> + </div> + </div> + <ul> + <li> + <div className="bg-center bg-no-repeat bg-[url('/cantons/swampisland.webp')] bg-gray-600 bg-blend-multiply"> + <div className="sm:px-40 px-10 py-14 space-y-2"> + <h1 className="font-medium sm:text-5xl text-3xl">Swamp Island</h1> + <span>Leader: Alee</span> + <h2 className="text-lg">Capital of Southeastern Islands and the original home of MinePot</h2> + </div> + </div> + </li> + <li> + <div className="bg-center bg-no-repeat bg-[url('/regions/breadcroust.webp')] bg-gray-600 bg-blend-multiply"> + <div className="sm:px-40 px-10 py-14 space-y-2"> + <h1 className="font-medium sm:text-5xl text-3xl">Nexus Underground</h1> + <span>Vacant</span> + <h2 className="text-lg">Home to MinePot Barton Centre and athletics</h2> + </div> + </div> + </li> + <li> + <div className="bg-center bg-no-repeat bg-[url('/regions/skycity.webp')] bg-gray-600 bg-blend-multiply"> + <div className="sm:px-40 px-10 py-14 space-y-2"> + <h1 className="font-medium sm:text-5xl text-3xl">Longhorn Hills</h1> + <span>Leader: Raina</span> + <h2 className="text-lg">A city that floats in the sky</h2> + </div> + </div> + </li> + <li> + <div className="bg-center bg-no-repeat bg-[url('/regions/silicon-valley.webp')] bg-gray-600 bg-blend-multiply"> + <div className="sm:px-40 px-10 py-14 space-y-2"> + <h1 className="font-medium sm:text-5xl text-3xl">Foret Quebec</h1> + <span>Leader: Idk837384</span> + <h2 className="text-lg">Where all things tech-related lie</h2> + </div> + </div> + </li> + </ul> + <div className="sm:px-40 px-10 py-3 space-y-3"> + <h1 className="text-2xl font-medium" id="about">About Southeastern Islands</h1> + <p>Southeastern Islands was founded in July 2023 with the goal of achieving greater autonomy in our regions.</p> + <p>Originally known as Alee Isle Regions, we later became Southeastern Islands before branching out on our own.</p> + <p>We are committed to continuous improvement and growth as small regions.</p> + <h1 className="text-2xl font-medium">Latest Updates</h1> + <div className="grid grid-cols-1 md:grid-cols-3 gap-4">{postPreviews}</div> + <Link href="/updates"><p className="text-blue-500 hover:text-blue-300 pt-2">View more</p></Link> + </div> + </main> + ) +} |
