Files
Aut.ManagementFaculty/src/app/(main)/events/page.tsx
T
smhk1376andCursor 2b0db26a93
Deploy edu.mstaut.ir / deploy (push) Has been cancelled
Ship site UI checklist, move admin to /mstcontroller, and add safe taxonomy label migration.
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>
2026-10-16 16:26:21 +03:30

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>
);
}