Update site changes
This commit is contained in:
+11
-11
@@ -1,5 +1,5 @@
|
||||
import type { Metadata, Viewport } from 'next';
|
||||
import { Inter, Poppins } from 'next/font/google';
|
||||
import { Poppins } from 'next/font/google';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
import { LanguageProvider } from '@/context/LanguageContext';
|
||||
import { AuthProvider } from '@/context/AuthContext';
|
||||
@@ -7,18 +7,14 @@ import PlausibleAnalytics from '@/components/PlausibleAnalytics';
|
||||
import './globals.css';
|
||||
|
||||
// Self-hosted fonts via next/font - eliminates render-blocking external requests
|
||||
const inter = Inter({
|
||||
subsets: ['latin'],
|
||||
display: 'swap',
|
||||
variable: '--font-inter',
|
||||
weight: ['400', '500', '600', '700'],
|
||||
});
|
||||
|
||||
// Poppins: entire site
|
||||
// - Titles: Medium (500) / SemiBold (600)
|
||||
// - Body: Regular (400)
|
||||
const poppins = Poppins({
|
||||
subsets: ['latin'],
|
||||
display: 'swap',
|
||||
variable: '--font-poppins',
|
||||
weight: ['500', '600', '700'],
|
||||
weight: ['400', '500', '600', '700'],
|
||||
});
|
||||
|
||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://spanglish.com.py';
|
||||
@@ -95,6 +91,10 @@ export const metadata: Metadata = {
|
||||
},
|
||||
category: 'events',
|
||||
manifest: '/manifest.json',
|
||||
icons: {
|
||||
icon: '/images/favicon.png',
|
||||
apple: '/images/favicon_icon.png',
|
||||
},
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
@@ -110,8 +110,8 @@ export default function RootLayout({
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="en" className={`${inter.variable} ${poppins.variable}`}>
|
||||
<body className={inter.className}>
|
||||
<html lang="en" className={poppins.variable}>
|
||||
<body className={poppins.className}>
|
||||
<PlausibleAnalytics />
|
||||
<AuthProvider>
|
||||
<LanguageProvider>
|
||||
|
||||
Reference in New Issue
Block a user