Skip to content

Commit df5dbf8

Browse files
fix: make some img paths absolute to prevent load issues
1 parent 0dcf0d8 commit df5dbf8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Carousel.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const props = Astro.props;
2727
<div class="divider" />
2828
<div class="carousel-buttons">
2929
<button class="prev-button">
30-
<img src="static/icons/carousel-prev-button.svg" />
30+
<img src="/static/icons/carousel-prev-button.svg" />
3131
</button>
3232
<button class="next-button">
33-
<img src="static/icons/carousel-next-button.svg" />
33+
<img src="/static/icons/carousel-next-button.svg" />
3434
</button>
3535
</div>
3636
</div>

src/components/sponsorsComponents/WantToSponsorUs.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h1 class="title">Want to sponsor us?</h1>
33
<p class="intro">Check out our sponsorship package for more information.</p>
44

5-
<iframe src="UBC_iGEM_2025_Sponsorship_Package.pdf#zoom=FitH"></iframe>
5+
<iframe src="/UBC_iGEM_2025_Sponsorship_Package.pdf#zoom=FitH"></iframe>
66
</div>
77

88
<style>
@@ -54,4 +54,4 @@
5454
height: 30rem;
5555
}
5656
}
57-
</style>
57+
</style>

src/pages/how-we-work.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const subteams = subteamInfo as unknown as Record<string, SubteamInfo>
3939
<p>{subteam.description}</p>
4040
</div>
4141
{subteam.imgs.length !== 0 && (
42-
<Carousel imgs={subteam.imgs} imgPrefix={"static/subteam-pics/"}/>
42+
<Carousel imgs={subteam.imgs} imgPrefix={"/static/subteam-pics/"}/>
4343
)}
4444
</div>
4545
))}

0 commit comments

Comments
 (0)