import type { Metadata } from "next"; import Link from "next/link"; import heroImage from "@/assets/images/hero/hero-1.jpg"; import heroImageMobile from "@/assets/images/hero/hero-1-mobile.jpg"; import { Reveal } from "@/components/Reveal"; import { NewsCarousel } from "@/components/news/NewsCarousel"; import { Editorial } from "@/components/shared/Editorial"; import { PageCta } from "@/components/shared/PageCta"; import { PageHero } from "@/components/shared/PageHero"; import { SiteFooter } from "@/components/SiteFooter"; import { SiteHeader } from "@/components/SiteHeader"; import { blog, news, newsAndBlogPage } from "@/data/site"; export const metadata: Metadata = { title: "مقالات و اخبار", description: "آخرین اخبار، رویدادها و مقالات گروه ساختمانی رئوفی.", }; export default function NewsAndBlogPage() { const hasNews = news.length > 0; const hasBlog = blog.length > 0; const hasNothing = !hasNews && !hasBlog; return ( <>
{hasNothing && (

{newsAndBlogPage.emptyMessage}

)} {hasNews && (

{newsAndBlogPage.news.caption} {newsAndBlogPage.news.captionLatin}

{newsAndBlogPage.news.action}
)} {hasBlog && (

{newsAndBlogPage.blog.caption} {newsAndBlogPage.blog.captionLatin}

{newsAndBlogPage.blog.action}
)}
); }