UploadFile / frontend /src /app /layout.tsx
ddosvn's picture
Deploy Upload ThTuanIT Full-stack (Go + Next.js + Python hf_xet + MongoDB)
7c5da52 verified
Raw History Blame Contribute Delete
6.28 kB
import type { Metadata, Viewport } from "next";
import { Inter, JetBrains_Mono } from "next/font/google";
import { CloudProvider } from "@/context/CloudContext";
import "./globals.css";
const inter = Inter({
subsets: ["latin", "vietnamese"],
variable: "--font-inter",
display: "swap",
});
const mono = JetBrains_Mono({
subsets: ["latin"],
variable: "--font-mono",
display: "swap",
});
export const viewport: Viewport = {
themeColor: "#03050c",
width: "device-width",
initialScale: 1,
};
export const metadata: Metadata = {
metadataBase: new URL("http://localhost:3000"),
title: {
default: "Upload ThTuanIT — Nền tảng Lưu trữ & Tải tệp Đám mây Siêu Tốc",
template: "%s | Upload ThTuanIT",
},
description:
"Upload ThTuanIT là nền tảng lưu trữ đám mây thế hệ mới hỗ trợ Turbo Parallel Upload tới 10 GiB/file, cô lập không gian tệp cá nhân theo từng thành viên, phát trực tuyến Video 4K HTTP Range và Quản trị Phân quyền RBAC chuyên nghiệp.",
keywords: [
"Upload ThTuanIT",
"ThTuanIT",
"ThTuanIT Cloud",
"Lưu trữ đám mây Upload ThTuanIT",
"Upload file tốc độ cao",
"Chia sẻ tệp tin lớn 10GB",
"Phân quyền RBAC",
"Cloud Object Storage Việt Nam",
],
authors: [{ name: "ThTuanIT" }],
creator: "ThTuanIT",
publisher: "Upload ThTuanIT",
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
"max-video-preview": -1,
"max-image-preview": "large",
"max-snippet": -1,
},
},
alternates: {
canonical: "/",
},
openGraph: {
type: "website",
locale: "vi_VN",
url: "http://localhost:3000",
siteName: "Upload ThTuanIT",
title: "Upload ThTuanIT — Hạ tầng Lưu trữ & Chia sẻ Tệp Đám mây Siêu Tốc",
description:
"Tải lên song song (Turbo Parallel Upload) tới 10 GiB/tệp, cô lập dữ liệu cá nhân, phát trực tuyến Video 4K và quản trị phân quyền Admin/User toàn diện cùng Upload ThTuanIT.",
},
twitter: {
card: "summary_large_image",
title: "Upload ThTuanIT — Cloud Object Storage & Turbo Upload",
description:
"Hạ tầng lưu trữ đám mây tốc độ cao Upload ThTuanIT với Turbo Upload Engine, RBAC IAM & Media Streaming.",
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const jsonLd = {
"@context": "https://schema.org",
"@graph": [
{
"@type": "SoftwareApplication",
name: "Upload ThTuanIT",
applicationCategory: "CloudStorageApplication",
operatingSystem: "Web, Windows, Linux, macOS",
offers: {
"@type": "Offer",
price: "0",
priceCurrency: "VND",
},
description:
"Upload ThTuanIT là hệ thống lưu trữ và chia sẻ tệp đám mây tốc độ cao, tích hợp phân quyền người dùng RBAC, cô lập tệp cá nhân và công nghệ Turbo Parallel Upload.",
featureList: [
"Turbo Parallel & Batch Upload siêu tốc độ qua Dual-Lane Worker Pool",
"Zero-Copy Server-Side Rename đổi tên tệp lớn tức thì",
"Cô lập không gian lưu trữ cá nhân cho từng User và chế độ toàn quyền cho Admin",
"Phân quyền chi tiết Admin & User (RBAC)",
"HTTP 206 Partial Content Video Streaming mượt mà",
],
},
{
"@type": "Organization",
name: "Upload ThTuanIT",
url: "http://localhost:3000",
},
{
"@type": "WebSite",
name: "Upload ThTuanIT",
url: "http://localhost:3000",
},
{
"@type": "BreadcrumbList",
itemListElement: [
{
"@type": "ListItem",
position: 1,
name: "Trang chủ Upload ThTuanIT",
item: "http://localhost:3000/",
},
{
"@type": "ListItem",
position: 2,
name: "Bảng điều khiển Upload ThTuanIT",
item: "http://localhost:3000/dashboard",
},
{
"@type": "ListItem",
position: 3,
name: "Trình duyệt Tệp Upload ThTuanIT",
item: "http://localhost:3000/explorer",
},
{
"@type": "ListItem",
position: 4,
name: "Tài liệu API Upload ThTuanIT",
item: "http://localhost:3000/developers",
},
],
},
{
"@type": "FAQPage",
mainEntity: [
{
"@type": "Question",
name: "Công nghệ Turbo Upload của Upload ThTuanIT giúp tăng tốc độ tải lên như thế nào?",
acceptedAnswer: {
"@type": "Answer",
text: "Upload ThTuanIT duy trì kiến trúc Dual-Lane Persistent Worker Pool tốc độ cao và gom nhiều tệp vào một phiên đồng bộ duy nhất (Batch Commit), giúp triệt tiêu độ trễ khởi tạo và tối đa hóa băng thông đường truyền.",
},
},
{
"@type": "Question",
name: "Cơ chế bảo mật tệp cá nhân và phân quyền Admin trên Upload ThTuanIT hoạt động ra sao?",
acceptedAnswer: {
"@type": "Answer",
text: "Trên Upload ThTuanIT, mỗi thành viên (User) chỉ nhìn thấy và tải xuống các tệp tin do chính mình tải lên. Quản trị viên (Admin) có quyền giám sát toàn bộ kho lưu trữ và bật/tắt quyền Upload, Rename, Delete theo thời gian thực.",
},
},
],
},
],
};
return (
<html lang="vi" className="dark scroll-smooth">
<head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
</head>
<body
className={`${inter.variable} ${mono.variable} font-sans min-h-screen antialiased selection:bg-indigo-500 selection:text-white`}
>
<CloudProvider>{children}</CloudProvider>
</body>
</html>
);
}