|
1 | | -import type { Metadata } from 'next'; |
2 | | -import { Space_Grotesk, Manrope } from 'next/font/google'; |
3 | | -import Script from 'next/script'; |
4 | | -import './globals.css'; |
| 1 | +import type { Metadata } from "next"; |
| 2 | +import { Space_Grotesk, Manrope } from "next/font/google"; |
| 3 | +import Script from "next/script"; |
| 4 | +import "./globals.css"; |
5 | 5 |
|
6 | 6 | const display = Space_Grotesk({ |
7 | | - subsets: ['latin'], |
8 | | - variable: '--font-display' |
| 7 | + subsets: ["latin"], |
| 8 | + variable: "--font-display", |
9 | 9 | }); |
10 | 10 |
|
11 | 11 | const body = Manrope({ |
12 | | - subsets: ['latin'], |
13 | | - variable: '--font-body' |
| 12 | + subsets: ["latin"], |
| 13 | + variable: "--font-body", |
14 | 14 | }); |
15 | 15 |
|
16 | 16 | export const metadata: Metadata = { |
17 | | - title: 'Jedabero | Full Stack Engineer', |
| 17 | + title: "Jedabero | Full Stack Engineer", |
18 | 18 | description: |
19 | | - 'Portafolio enfocado en React, React Native, Node/Nest/Express y PostgreSQL. Casos de estudio privados.' |
| 19 | + "Portafolio enfocado en React, React Native, Node/Nest/Express y PostgreSQL. Casos de estudio privados.", |
20 | 20 | }; |
21 | 21 |
|
22 | 22 | export default function RootLayout({ |
23 | | - children |
| 23 | + children, |
24 | 24 | }: { |
25 | 25 | children: React.ReactNode; |
26 | 26 | }) { |
27 | 27 | return ( |
28 | 28 | <html lang="es"> |
29 | | - <body className={`${display.variable} ${body.variable} font-body bg-page-gradient bg-base-bg text-base-text`}> |
| 29 | + <body |
| 30 | + className={`${display.variable} ${body.variable} font-body bg-page-gradient bg-base-bg text-base-text`} |
| 31 | + > |
30 | 32 | <Script |
31 | 33 | src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3740467952996532" |
32 | | - strategy="afterInteractive" // carga solo después de que la app está lista para evitar bloquear el render inicial |
33 | 34 | crossOrigin="anonymous" |
34 | 35 | /> |
35 | 36 | {children} |
|
0 commit comments