Skip to content

Commit

Permalink
fix image path.
Browse files Browse the repository at this point in the history
  • Loading branch information
53-gm committed Dec 26, 2024
1 parent d04519c commit 15fce36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
12 changes: 1 addition & 11 deletions components/ContentSection/ContentSection.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import Image from "next/image";
import nextConfig from "../../next.config.mjs";
import ContentHeader from "../ContentHeader/ContentHeader";
import styles from "./ContentSection.module.css";

const BASE_PATH = nextConfig.basePath || "";

const ContentSection = ({
number,
title,
Expand Down Expand Up @@ -33,14 +30,7 @@ const ContentSection = ({
</div>
</div>
{/* 右側 */}
<Image
src={`${BASE_PATH}/${imageUrl}`}
width={700}
height={700}
alt=""
priority
/>
`
<Image src={imageUrl} width={700} height={700} alt="" priority />`
</div>
);
};
Expand Down
5 changes: 2 additions & 3 deletions components/hero/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import ie from "@/public/ichipiroexplorer.png";
import Image from "next/legacy/image";
import { useEffect, useState } from "react";
import nextConfig from "../../next.config.mjs";
import ThreeScene from "../ThreeScene";
import styles from "./hero.module.css";
const BASE_PATH = nextConfig.basePath || "";

const Hero = ({
title,
Expand All @@ -28,7 +27,7 @@ const Hero = ({
{isMobile ? (
<figure className={styles.image}>
<Image
src={`${BASE_PATH}/ichipiroexplorer.png`}
src={ie}
alt=""
layout="responsive"
sizes="(min-width: 1152px) 576px, (min-width: 768px) 50vw, 100vw"
Expand Down

0 comments on commit 15fce36

Please sign in to comment.