Skip to content

Commit

Permalink
Ajuste carga tipografía
Browse files Browse the repository at this point in the history
  • Loading branch information
clara7227 committed Sep 27, 2024
1 parent 52be5ae commit 7b91bb8
Show file tree
Hide file tree
Showing 4 changed files with 950 additions and 496 deletions.
12 changes: 5 additions & 7 deletions app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ import { Source_Sans_3, Ubuntu } from "next/font/google";
import "./globals.css";
import { useState, useEffect } from "react";



// import i18n (needs to be bundled ;))
import "./i18n";

import Header from "@/components/core/Header";
import Footer from "@/components/core/Footer";


const sourceSans = Source_Sans_3({ subsets: ["latin"] });
const ubuntu = Ubuntu({ subsets: ["latin"], weight: ["400", "700"] });
const sourceSans = Source_Sans_3({ subsets: ["latin"] , variable: "--font-sourceSans" });
const ubuntu = Ubuntu({ subsets: ["latin"], weight: ["400", "700"] , variable: "--font-ubuntu" });

export default function RootLayout({ children }) {
//disable SSR whole project, this will make the project to be rendered only on client side
Expand All @@ -25,8 +22,9 @@ export default function RootLayout({ children }) {
}, []);

return (
<html hola="bye">
<body className={sourceSans.className}>

<html className={` ${sourceSans.variable} ${ubuntu.variable} `}>
<body>
<Header/>
{isClient ? (
<div className={ubuntu.className}>
Expand Down
1 change: 0 additions & 1 deletion app/research/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default function Research() {
useEffect(() => {
window.scrollTo(0, 0);
}, []);


// desestructuración state
const { items, search, year, category, papersToShow } = state;
Expand Down
Loading

0 comments on commit 7b91bb8

Please sign in to comment.