Initial commit 🌟
This commit is contained in:
49
src/app/layout.tsx
Normal file
49
src/app/layout.tsx
Normal file
@@ -0,0 +1,49 @@
|
||||
// src/app/layout.tsx
|
||||
import { ConfigProvider } from "antd";
|
||||
import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import Header from "./components/Header/Header";
|
||||
import "./globals.css";
|
||||
import { themeConfig } from "./theme/themeConfig";
|
||||
|
||||
// Modern font (Inter + Orbitron backup)
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
const orbitron = {
|
||||
className: "font-orbitron",
|
||||
style:
|
||||
"@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');",
|
||||
};
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Tech Master | Dubai To Stars",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
{/* ThreeJS CDN */}
|
||||
<script
|
||||
src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"
|
||||
async
|
||||
></script>
|
||||
<script
|
||||
src="http://threejs.org/examples/js/libs/stats.min.js"
|
||||
async
|
||||
></script>
|
||||
{/* Orbitron Font */}
|
||||
<style>{orbitron.style}</style>
|
||||
</head>
|
||||
<body
|
||||
className={`${inter.className} bg-gradient-to-br from-[#0F0525] to-[#2A0B45]`}
|
||||
>
|
||||
<Header />
|
||||
<ConfigProvider theme={themeConfig}>{children}</ConfigProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user