fix(build): carga de fuente sin dependencia externa en docker build

This commit is contained in:
Marcos Fargas
2026-10-04 19:34:02 +02:00
parent 2f6e50d5a7
commit e84310ec52
2 changed files with 11 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ html {
body { body {
background-color: var(--background); background-color: var(--background);
color: var(--foreground); color: var(--foreground);
font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif; font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
min-height: 100vh; min-height: 100vh;
} }

View File

@@ -1,13 +1,6 @@
import type { Metadata } from 'next'; import type { Metadata } from 'next';
import { Source_Sans_3 } from 'next/font/google';
import './globals.css'; import './globals.css';
const sans = Source_Sans_3({
subsets: ['latin'],
variable: '--font-sans',
display: 'swap',
});
export const metadata: Metadata = { export const metadata: Metadata = {
title: '4Ventures — Centro de Mando del Cliente', title: '4Ventures — Centro de Mando del Cliente',
description: description:
@@ -27,8 +20,16 @@ export default function RootLayout({
children: React.ReactNode; children: React.ReactNode;
}) { }) {
return ( return (
<html lang="es" className={sans.variable}> <html lang="es">
<body className={`${sans.className} bg-background text-gray-900 min-h-screen antialiased`}> <head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
<link
href="https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,300..900;1,300..900&display=swap"
rel="stylesheet"
/>
</head>
<body className="bg-background text-gray-900 min-h-screen antialiased">
{children} {children}
</body> </body>
</html> </html>