Skip to content

Commit bef5cdd

Browse files
committed
Use based paths
1 parent 5205781 commit bef5cdd

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

src/routes/+page.svelte

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import Navbar from "$lib/Navbar/navbar.svelte";
33
import Grid from "$lib/Grid/grid.svelte";
44
import GameTile from "$lib/Grid/Items/game-tile.svelte";
5+
import { base } from "$app/paths";
56
</script>
67

78
<Navbar pageName="BreadBird Games"></Navbar>
@@ -10,26 +11,26 @@
1011

1112
<Grid>
1213
<GameTile
13-
link="/games/Unanswered%20Questions%20with%20H.N.%20Andersen"
14-
thumbnailPath="/gameThumbs/HNAndersen.png"
14+
link="{base}/games/Unanswered%20Questions%20with%20H.N.%20Andersen"
15+
thumbnailPath="{base}/gameThumbs/HNAndersen.png"
1516
name="Unanswered Questions with H.N. Andersen"
1617
description="A small game in collaboration with Asia House, to provide a brain break and teach the story of H.N. Andersen."
1718
></GameTile>
1819
<GameTile
19-
link="/games/Fight%20for%20the%20Forest"
20-
thumbnailPath="/gameThumbs/FightForForest.png"
20+
link="{base}/games/Fight%20for%20the%20Forest"
21+
thumbnailPath="{base}/gameThumbs/FightForForest.png"
2122
name="Fight for the Forest"
2223
description="A award winning 2 player arcade game where you fight for who will control the forest."
2324
></GameTile>
2425
<GameTile
25-
link="/games/Switcheroo"
26-
thumbnailPath="/gameThumbs/Switcheroo.png"
26+
link="{base}/games/Switcheroo"
27+
thumbnailPath="{base}/gameThumbs/Switcheroo.png"
2728
name="Switcheroo"
2829
description="A winning game jam submission where play as two characters who have been merged split again."
2930
></GameTile>
3031
<GameTile
31-
link="/games/Meleetonin"
32-
thumbnailPath="/gameThumbs/Meleetonin.png"
32+
link="{base}/games/Meleetonin"
33+
thumbnailPath="{base}/gameThumbs/Meleetonin.png"
3334
name="Meleetonin"
3435
description="A game jam submission from the Nordic Game jam 2025 where you play as a a young boy who's unable to sleep."
3536
></GameTile>

src/routes/about/+page.svelte

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
import Navbar from "$lib/Navbar/navbar.svelte";
33
import Grid from "$lib/Grid/grid.svelte";
44
import Developer from "$lib/Grid/Items/developer-tile.svelte";
5+
6+
import { base } from "$app/paths";
57
</script>
68

79
<Navbar pageName="About"></Navbar>
@@ -10,7 +12,7 @@
1012

1113
<Grid>
1214
<Developer
13-
thumbnailPath="/devThumbs/Devin.png"
15+
thumbnailPath="{base}/devThumbs/Devin.png"
1416
name="Devin"
1517
pronouns="He/Him"
1618
description="Artist"
@@ -23,7 +25,7 @@
2325
</a>
2426
</Developer>
2527
<Developer
26-
thumbnailPath="/devThumbs/Isabella.png"
28+
thumbnailPath="{base}/devThumbs/Isabella.png"
2729
name="Isabella"
2830
pronouns="She/Her"
2931
description="Artist"
@@ -33,7 +35,7 @@
3335
</a>
3436
</Developer>
3537
<Developer
36-
thumbnailPath="/devThumbs/Frida.png"
38+
thumbnailPath="{base}/devThumbs/Frida.png"
3739
name="Frida"
3840
pronouns="She/Her"
3941
description="Programmer"
@@ -46,19 +48,19 @@
4648
</a>
4749
</Developer>
4850
<Developer
49-
thumbnailPath="/devThumbs/Daniel.png"
51+
thumbnailPath="{base}/devThumbs/Daniel.png"
5052
name="Daniel"
5153
pronouns="He/Him"
5254
description="Game designer"
5355
></Developer>
5456
<Developer
55-
thumbnailPath="/devThumbs/Ida.png"
57+
thumbnailPath="{base}/devThumbs/Ida.png"
5658
name="Ida"
5759
pronouns="She/Her"
5860
description="Composer"
5961
></Developer>
6062
<Developer
61-
thumbnailPath="/devThumbs/Valdemar.png"
63+
thumbnailPath="{base}/devThumbs/Valdemar.png"
6264
name="Valdemar"
6365
pronouns="He/Him"
6466
description="Writer"

0 commit comments

Comments
 (0)