From 3a1b1420eec301f798ad62b7dd26e1c37ce5f474 Mon Sep 17 00:00:00 2001 From: Barbara Peric Date: Mon, 1 Apr 2024 12:46:44 +0200 Subject: [PATCH 1/2] replace img with Image/Next --- components/Footer.js | 13 +++++++++---- components/Header.js | 13 +++++++++---- pages/index.js | 26 ++++++++++++++------------ sass/_about.scss | 1 + 4 files changed, 33 insertions(+), 20 deletions(-) diff --git a/components/Footer.js b/components/Footer.js index 8745203..7e9d5d6 100644 --- a/components/Footer.js +++ b/components/Footer.js @@ -1,6 +1,7 @@ import React from "react"; import { Col, Row } from "react-bootstrap"; import FooterBg from "../svgs/FooterBg.js"; +import Image from 'next/image' function Footer(props) { const pagePos = props.pagePos; @@ -91,17 +92,21 @@ function Footer(props) {
- IPFS Logo - Filecoin Logo
diff --git a/components/Header.js b/components/Header.js index ee5fb16..6783969 100644 --- a/components/Header.js +++ b/components/Header.js @@ -1,4 +1,5 @@ import React, { useEffect, useState } from "react"; +import Image from "next/image"; import { disableBodyScroll, @@ -101,17 +102,21 @@ function Header(props) {
- IPFS Logo - Filecoin Logo
diff --git a/pages/index.js b/pages/index.js index f41a419..9e60b13 100755 --- a/pages/index.js +++ b/pages/index.js @@ -6,6 +6,7 @@ import LookupBg from "../svgs/LookupBg.js"; import { Waypoint } from "react-waypoint"; import Slider from "react-slick"; import cbor from "cbor"; +import Image from "next/image"; export default function Home(props) { const setPagePos = props.setPagePos; @@ -1071,7 +1072,7 @@ export default function Home(props) {
- Map + Map

@@ -1085,7 +1086,7 @@ export default function Home(props) { - Solarsystem + Solarsystem

@@ -1101,7 +1102,7 @@ export default function Home(props) { - Connected Circles + Connected Circles

@@ -1142,55 +1143,56 @@ export default function Home(props) { target="_blank" rel="noreferrer" > - Ken Labs Logo + Ken Labs Logo - Leeway Hertz Logo + Leeway Hertz Logo - PiKNiK Logo + PiKNiK Logo - FilSwan Logo + FilSwan Logo - San Xia Xing Future Data Logo - Infura Logo + Infura Logo - DSS Logo + DSS Logo - Cloudflare Logo + Cloudflare Logo

diff --git a/sass/_about.scss b/sass/_about.scss index 6e7cc52..e35f21a 100644 --- a/sass/_about.scss +++ b/sass/_about.scss @@ -96,6 +96,7 @@ padding: 6px; border-radius: 6px; margin: 0; + overflow: auto; } } } From 2ec1b1a175655c245bbcde3eab547903b41b4762 Mon Sep 17 00:00:00 2001 From: Barbara Peric Date: Mon, 1 Apr 2024 13:02:48 +0200 Subject: [PATCH 2/2] FIX build error --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index 5a9f45a..33d6c4e 100755 --- a/next.config.js +++ b/next.config.js @@ -3,6 +3,10 @@ const nextConfig = { reactStrictMode: true, swcMinify: true, assetPrefix: './', + images: { + loader: 'akamai', + path: '', + }, } module.exports = nextConfig