Skip to content

Commit 5be6a18

Browse files
committed
assets: prefix public folder paths with BASE_URL for github pages
1 parent 7b934ee commit 5be6a18

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/components/CompaniesLogos.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const COMPANY_COUNT = 20;
22
const COMPANIES = Array.from({ length: COMPANY_COUNT }, (_, i) => ({
33
id: i + 1,
4-
src: `/companies/company_${i + 1}.svg`,
4+
src: `${import.meta.env.BASE_URL}companies/company_${i + 1}.svg`,
55
}));
66

77
export default function CompaniesLogos() {

src/components/Nav.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function NextonNav({ active = "talent", dark = false }) {
1111
<div className="nx-nav-inner">
1212
<TransitionLink to="/talent" className="nx-logo" aria-label="Nexton">
1313
<img
14-
src={dark ? "/Nexton/NextonLogo.svg" : "/Nexton/NextonLogoDark.svg"}
14+
src={`${import.meta.env.BASE_URL}Nexton/${dark ? "NextonLogo.svg" : "NextonLogoDark.svg"}`}
1515
alt="Nexton"
1616
className="nx-logo-img"
1717
/>
@@ -50,7 +50,7 @@ export function NextonFooter() {
5050
<div>
5151
<Link to="/" aria-label="Nexton home">
5252
<img
53-
src="/Nexton/NextonLogo.svg"
53+
src={`${import.meta.env.BASE_URL}Nexton/NextonLogo.svg`}
5454
alt="Nexton Logo"
5555
loading="lazy"
5656
className="nx-footer-logo"

src/pages/Companies/components/CaseStudies.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function CaseStudies() {
4343
<div className="section-inner">
4444
<div className="c-cases-frame">
4545
<img
46-
src="/team.jpg"
46+
src={`${import.meta.env.BASE_URL}team.jpg`}
4747
alt="The Nexton team"
4848
className="c-cases-bg"
4949
loading="lazy"
@@ -67,7 +67,11 @@ export default function CaseStudies() {
6767
referrerPolicy="no-referrer"
6868
aria-label="Review on Clutch"
6969
>
70-
<img src="/clutch.svg" alt="Clutch" className="c-tclutch-img" />
70+
<img
71+
src={`${import.meta.env.BASE_URL}clutch.svg`}
72+
alt="Clutch"
73+
className="c-tclutch-img"
74+
/>
7175
</a>
7276
<span className="c-tclutch-score">4.9</span>
7377
<span className="c-tclutch-stars">

0 commit comments

Comments
 (0)