Skip to content

Commit

Permalink
solved preload issue in link font extensions files in Layout componen…
Browse files Browse the repository at this point in the history
…t and test importing Menu component using next/link .
  • Loading branch information
DanValMont committed Nov 4, 2023
1 parent 194b0ee commit 40381bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/Layout/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ function Layout({ title, description, children, applycss, applyFilter }) {
<meta name="theme-color" content="#ffffff" />
<link
rel="preload"
href="/fonts/Soulmaze/Soulmaze.otf"
href="/fonts/Soulmaze/Soulmaze.woff2"
as="font"
crossOrigin=""
/>
<link
rel="preload"
href="/fonts/Soulmaze/Soulmaze-Italic.otf"
href="/fonts/Soulmaze/Soulmaze-Italic.woff2"
as="font"
crossOrigin=""
/>
Expand Down
5 changes: 4 additions & 1 deletion components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import React, { useState } from "react";
import Link from "next/link";
import classes from "./Navbar.module.css";
import Image from "next/image";
import Menu from "../Menu/Menu.js";
// import Menu from "../Menu/Menu.js";
import dynamic from "next/dynamic";
import { useInvertContext } from "../../context/invert.js";

const Menu = dynamic(() => import("../Menu/Menu.js"));

function Navbar({ invertHeader, invertEffect }) {
const [styleLayout, setStyleLayout] = useInvertContext();
const [isMenuIconOpen, setIsMenuIconOpen] = useState(false);
Expand Down
10 changes: 5 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
const nextConfig = {
/* config options here */
reactStrictMode: true,
images: {
loader: "akamai",
path: "",
},
basePath: "/danielvaldezmontalvan.com",
// images: {
// loader: "akamai",
// path: "",
// },
// basePath: "/danielvaldezmontalvan.com",
};

module.exports = nextConfig;

0 comments on commit 40381bf

Please sign in to comment.