mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-26 11:06:23 +00:00
✨ feat: 添加Footer组件并在RootLayout中引入,增强页面结构
style: 更新globals.css,调整sonner-toast背景颜色 fix: 修改request.ts中的日志级别为debug,优化错误信息输出
This commit is contained in:
@ -4,6 +4,7 @@ import { motion } from 'framer-motion'
|
||||
import { usePathname } from 'next/navigation'
|
||||
import { Navbar } from '@/components/navbar'
|
||||
import { BackgroundProvider } from '@/contexts/background-context'
|
||||
import Footer from '@/components/footer'
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@ -31,6 +32,7 @@ export default function RootLayout({
|
||||
<div className='container mx-auto px-4 sm:px-6 lg:px-10 max-w-7xl'>{children}</div>
|
||||
</BackgroundProvider>
|
||||
</motion.main>
|
||||
<Footer />
|
||||
</>
|
||||
)
|
||||
}
|
@ -123,4 +123,8 @@
|
||||
|
||||
html, body {
|
||||
transition: background-color 0.3s, color 0.3s !important;
|
||||
}
|
||||
|
||||
.sonner-toast {
|
||||
background-color: aqua;
|
||||
}
|
@ -32,7 +32,7 @@ export default async function RootLayout({
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
<Toaster richColors/>
|
||||
<Toaster richColors position="top-center" offset={80} />
|
||||
<DeviceProvider>
|
||||
<NextIntlClientProvider>{children}</NextIntlClientProvider>
|
||||
</DeviceProvider>
|
||||
|
Reference in New Issue
Block a user