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>
50 lines
1.5 KiB
TypeScript
50 lines
1.5 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 { ArticleCard } from "@/components/molecules/Cards";
|
|
import { PageHero } from "@/components/molecules/PageHero";
|
|
import { getArticles } from "@/lib/data/articles";
|
|
import { pageMetadata } from "@/lib/seo/metadata";
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
const t = await getTranslations("pages");
|
|
return pageMetadata({
|
|
title: t("insightsTitle"),
|
|
description: t("insightsIntro"),
|
|
path: "/insights",
|
|
});
|
|
}
|
|
|
|
export default async function InsightsPage() {
|
|
const t = await getTranslations("pages");
|
|
const articles = await getArticles();
|
|
|
|
return (
|
|
<main id="main-content">
|
|
<PageHero
|
|
title={t("insightsTitle")}
|
|
intro={t("insightsIntro")}
|
|
imageUrl="/brand/neural-open-book.png"
|
|
/>
|
|
<Section tone="subtle">
|
|
<Container>
|
|
<div className="mx-auto max-w-5xl">
|
|
{articles.map((article) => (
|
|
<ArticleCard
|
|
key={article.id}
|
|
title={article.title}
|
|
category={article.category}
|
|
excerpt={article.excerpt}
|
|
imageUrl={article.imageUrl}
|
|
href={article.href}
|
|
variant="list"
|
|
/>
|
|
))}
|
|
</div>
|
|
</Container>
|
|
</Section>
|
|
</main>
|
|
);
|
|
}
|