Files
koring-space/app/layout.tsx
T
dream_pep 6d87e76ebb Add CardNav, theme providers, and UI updates
Introduce an interactive top navigation and theming + site UI/branding changes.

- Add CardNav component (TSX + CSS) with GSAP animations and responsive behavior.
- Dynamic Header now loads CardNav (client-side).
- Add Providers (next-themes) and wrap RootLayout; enable theme toggle and update site title to "Koring Team".
- Add Koring logo component and public SVG asset.
- Add custom 404 (app/not-found.tsx).
- Update home page spacing and card paddings for responsiveness.
- Refactor Footer content and layout for legal/branding text.
- Add dependencies: gsap, react-icons and update pnpm lock.
2026-07-11 01:21:44 +08:00

59 lines
1.5 KiB
TypeScript

import type { Metadata } from "next";
import localFont from "next/font/local";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Header } from "@/layout/header";
import { Footer } from "@/layout/footer";
import Script from "next/script";
import { cn } from "@/lib/utils";
import { Providers } from "./providers";
const alimamaFangYuan = localFont({
src: "../public/font/Alimama.ttf",
variable: "--font-sans",
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Koring Team",
description: "Generated by create next app",
icons: {
icon: "/favicon.svg",
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html
lang="en"
suppressHydrationWarning
className={cn("h-full", "antialiased", alimamaFangYuan.variable, geistMono.variable, "font-sans")}
>
<body className="min-h-full flex flex-col">
<Providers>
<Header />
<div style={{ height: 20 }} />
<main className="flex-1 px-4 sm:px-10 lg:px-48">
{children}
<Script
src="https://analysis.rivfox.com/api/script.js"
data-site-id="aaedd41de497"
strategy="afterInteractive"
/>
</main>
<div style={{ height: 50 }} />
<Footer/>
</Providers>
</body>
</html>
);
}