This commit is contained in:
Iliyan Angelov
2025-12-10 01:36:00 +02:00
parent 2f6dca736a
commit 6a9e823402
84 changed files with 5293 additions and 1836 deletions

View File

@@ -12,6 +12,7 @@ const montserrat = Montserrat({
display: "swap",
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
variable: "--mont",
preload: false, // Disable preload to prevent warnings
fallback: [
"-apple-system",
"Segoe UI",
@@ -28,6 +29,7 @@ const inter = Inter({
display: "swap",
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
variable: "--inter",
preload: false, // Disable preload to prevent warnings
fallback: [
"-apple-system",
"Segoe UI",
@@ -64,6 +66,8 @@ export default function RootLayout({
return (
<html lang="en" style={{ scrollBehavior: 'auto', overflow: 'auto' }}>
<head>
{/* Suppress scroll-linked positioning warning - expected with GSAP ScrollTrigger */}
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<script
dangerouslySetInnerHTML={{
__html: `
@@ -71,6 +75,20 @@ export default function RootLayout({
history.scrollRestoration = 'manual';
}
window.scrollTo(0, 0);
// Suppress Font Awesome glyph bbox warnings (harmless font rendering warnings)
(function() {
const originalWarn = console.warn;
console.warn = function(...args) {
const message = args.join(' ');
if (message.includes('downloadable font: Glyph bbox') ||
message.includes('Font Awesome') ||
message.includes('glyph ids')) {
return; // Suppress Font Awesome font warnings
}
originalWarn.apply(console, args);
};
})();
`,
}}
/>