feat(loading): preload portfolio assets before reveal
This commit is contained in:
@@ -16,6 +16,7 @@ export const metadata: Metadata = {
|
||||
};
|
||||
|
||||
const themeScript = `
|
||||
document.documentElement.dataset.siteLoading = 'true';
|
||||
try {
|
||||
const savedTheme = localStorage.getItem('portfolio-theme');
|
||||
const systemTheme = matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
||||
@@ -35,6 +36,9 @@ export default function RootLayout({
|
||||
</head>
|
||||
<body>
|
||||
<ThemeProvider>{children}</ThemeProvider>
|
||||
<noscript>
|
||||
<style>{`#site-loader { display: none !important; }`}</style>
|
||||
</noscript>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
@@ -7,10 +7,12 @@ import { EducationSection } from '@/components/EducationSection';
|
||||
import { MilestonesSection } from '@/components/MilestonesSection';
|
||||
import { FooterSection } from '@/components/FooterSection';
|
||||
import { MotionController } from '@/components/MotionController';
|
||||
import { SiteLoader } from '@/components/SiteLoader';
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main className="desktop-canvas">
|
||||
<SiteLoader />
|
||||
<MotionController />
|
||||
|
||||
{/* 1. Hero & About Me River Journey (Seamless Scenic Background) */}
|
||||
|
||||
Reference in New Issue
Block a user