feat: increase navbar z-index and allow .online domains for remote images

This commit is contained in:
kuekhaoyang
2025-11-19 15:55:30 +08:00
parent 7b9b359d23
commit c9c5c5f788
2 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ function HomePage() {
return (
<div className="min-h-screen">
{/* Glass Navbar */}
<nav className="sticky top-0 z-50 pt-4 pb-2" style={{
<nav className="sticky top-0 z-[2000] pt-4 pb-2" style={{
transform: 'translate3d(0, 0, 0)',
willChange: 'transform'
}}>
+10 -2
View File
@@ -4,12 +4,12 @@ const nextConfig: NextConfig = {
// Performance optimizations
reactStrictMode: true,
poweredByHeader: false,
// Compiler optimizations
compiler: {
removeConsole: process.env.NODE_ENV === 'production',
},
images: {
remotePatterns: [
// Douban images
@@ -86,6 +86,14 @@ const nextConfig: NextConfig = {
protocol: 'https',
hostname: '**.xyz',
},
{
protocol: 'http',
hostname: '**.online',
},
{
protocol: 'https',
hostname: '**.online',
},
],
// Add image optimization for better performance
formats: ['image/webp'],