27 lines
814 B
TypeScript
27 lines
814 B
TypeScript
import type { Metadata } from "next";
|
|
|
|
import { OmniyatAbout } from "@/components/about/OmniyatAbout";
|
|
import { SiteFooter } from "@/components/SiteFooter";
|
|
import { SiteHeader } from "@/components/SiteHeader";
|
|
import { getRecentPortfolios, toDisplayProject } from "@/lib/api";
|
|
|
|
export const revalidate = 300;
|
|
|
|
export const metadata: Metadata = {
|
|
title: "درباره ما",
|
|
description: "روایت شکلگیری، ارزشها و مسیر گروه ساختمانی رئوفی از سال ۱۳۷۹ تا امروز.",
|
|
};
|
|
|
|
export default async function AboutPage() {
|
|
const portfolios = await getRecentPortfolios(8);
|
|
const displayProjects = portfolios.map(toDisplayProject);
|
|
|
|
return (
|
|
<>
|
|
<SiteHeader />
|
|
<OmniyatAbout projects={displayProjects} />
|
|
<SiteFooter />
|
|
</>
|
|
);
|
|
}
|