Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Production already has migrations through 008; 009 only updates four seed labels by id. Faculty sync remains upsert-by-email/name and does not wipe curated data. Co-authored-by: Cursor <cursoragent@cursor.com>
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { getTranslations } from "next-intl/server";
|
|
import { Container } from "@/components/atoms/Container";
|
|
import { Section } from "@/components/atoms/Section";
|
|
import { EventCard } from "@/components/molecules/Cards";
|
|
import { PageHero } from "@/components/molecules/PageHero";
|
|
import { getEvents } from "@/lib/data/events";
|
|
import { pageMetadata } from "@/lib/seo/metadata";
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
const t = await getTranslations("pages");
|
|
return pageMetadata({
|
|
title: t("eventsTitle"),
|
|
description: t("eventsIntro"),
|
|
path: "/events",
|
|
});
|
|
}
|
|
|
|
export default async function EventsPage() {
|
|
const t = await getTranslations("pages");
|
|
const events = await getEvents();
|
|
|
|
return (
|
|
<main id="main-content">
|
|
<PageHero title={t("eventsTitle")} intro={t("eventsIntro")} />
|
|
<Section tone="subtle">
|
|
<Container>
|
|
<div className="grid gap-4 md:grid-cols-2">
|
|
{events.map((event) => (
|
|
<EventCard key={event.id} {...event} variant="list" />
|
|
))}
|
|
</div>
|
|
</Container>
|
|
</Section>
|
|
</main>
|
|
);
|
|
}
|