添加背景网格组件并优化滚动条样式
This commit is contained in:
+8
-6
@@ -38,16 +38,18 @@ body {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* 核心:点阵网格背景 */
|
||||
.bg-dot-grid {
|
||||
background-size: 24px 24px;
|
||||
background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
|
||||
}
|
||||
|
||||
.no-scrollbar {
|
||||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
}
|
||||
.no-scrollbar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html, body {
|
||||
scrollbar-width: none; /* Firefox */
|
||||
-ms-overflow-style: none; /* IE and Edge */
|
||||
}
|
||||
html::-webkit-scrollbar, body::-webkit-scrollbar {
|
||||
display: none; /* Chrome, Safari and Opera */
|
||||
}
|
||||
+3
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user