migrate to Next.js
Some checks failed
Frontend CI/CD / build (push) Has been cancelled
Frontend CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-20 09:46:17 +03:30
parent dacbd3a328
commit 42f2087b7c
86 changed files with 2831 additions and 2679 deletions

56
src/app/page.tsx Normal file
View File

@@ -0,0 +1,56 @@
import type { Metadata } from "next";
import Home from "@/views/Home";
import { siteUrl } from "@/lib/site";
const title = "انجمن علمی کامپیوتر دانشگاه گیلان";
const description =
"با ما همراه شوید و در دنیای مهندسی و علوم کامپیوتر پیشرفت کنید. رویدادها، محتوای آموزشی و جامعه‌ای پویا برای رشد شما فراهم است.";
export const metadata: Metadata = {
title,
description,
alternates: { canonical: "/" },
openGraph: {
title,
description,
url: siteUrl,
siteName: "انجمن علمی کامپیوتر شرق گیلان",
type: "website",
images: [`${siteUrl}/favicon.ico`],
locale: "fa_IR",
},
twitter: {
card: "summary_large_image",
title,
description,
images: [`${siteUrl}/favicon.ico`],
},
};
const structuredData = {
"@context": "https://schema.org",
"@type": "Organization",
name: title,
url: siteUrl,
sameAs: [`${siteUrl}/blog`, `${siteUrl}/events`],
description,
logo: `${siteUrl}/favicon.ico`,
contactPoint: {
"@type": "ContactPoint",
email: "admin@east-guilan-ce.ir",
contactType: "customer support",
availableLanguage: ["fa", "en"],
},
};
export default function HomePage() {
return (
<>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
/>
<Home />
</>
);
}