migrate to Next.js
This commit is contained in:
56
src/app/page.tsx
Normal file
56
src/app/page.tsx
Normal 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 />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user