添加背景网格组件并优化滚动条样式

This commit is contained in:
2026-08-31 20:39:50 +08:00
parent 37173cfbeb
commit 77b928c442
3 changed files with 86 additions and 7 deletions
+3 -1
View File
@@ -3,6 +3,7 @@ import localFont from "next/font/local";
import "./globals.css";
import SmoothScroller from "@/components/dom/SmoothScroller";
import Header from "@/components/dom/Header";
import BackgroundGrid from "@/components/dom/BackgroundGrid";
const tiktokSans = localFont({
src: "./fonts/TikTokSans.ttf",
@@ -34,7 +35,8 @@ export default function RootLayout({
}>) {
return (
<html lang="en" className={`${tiktokSans.variable} ${geistMono.variable} ${departureMono.variable}`}>
<body className="bg-dot-grid min-h-screen">
<body className="min-h-screen relative">
<BackgroundGrid />
<SmoothScroller />
<Header />
{children}