udpate for coming soon

This commit is contained in:
diyaa
2026-03-13 03:45:13 +01:00
parent 243a182d33
commit cdf83cd466
32 changed files with 907 additions and 143 deletions
+23 -3
View File
@@ -1,14 +1,34 @@
import type { Metadata } from "next";
import type { ReactNode } from "react";
import { siteConfig } from "@/lib/site";
import "./globals.css";
export const metadata: Metadata = {
title: "diyaa | Personal Website",
description: "Bilingual personal website built with Next.js",
metadataBase: new URL(siteConfig.siteUrl),
title: {
default: "Diyaa",
template: "%s | Diyaa",
},
description: "Bilingual professional website built for private-server deployment.",
applicationName: "Diyaa",
authors: [{ name: "Diyaa" }],
creator: "Diyaa",
publisher: "Diyaa",
alternates: {
languages: {
ar: "/ar",
en: "/en",
"x-default": "/ar",
},
},
};
const themeScript = `
(() => {
const locale = window.location.pathname.split("/").filter(Boolean)[0] === "en" ? "en" : "ar";
const direction = locale === "ar" ? "rtl" : "ltr";
document.documentElement.lang = locale;
document.documentElement.dir = direction;
try {
const storedTheme = localStorage.getItem("theme");
const activeTheme = storedTheme === "light" || storedTheme === "dark" ? storedTheme : "dark";
@@ -21,7 +41,7 @@ const themeScript = `
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="ar" data-theme="dark" suppressHydrationWarning>
<html lang="ar" dir="rtl" data-theme="dark" suppressHydrationWarning>
<head>
<script dangerouslySetInnerHTML={{ __html: themeScript }} />
</head>