Skip to content

Commit

Permalink
Changed static file paths to absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
JonAlexandra committed Jun 30, 2023
1 parent 77b53df commit d4ae8a5
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/Gesture.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
<ImageSkeleton
height={95}
width={140}
src="imgs/microbit_record_guide.svg"
src="/imgs/microbit_record_guide.svg"
alt="microbit recording guide" />
</div>
<p class=" text-center absolute w-60px right-23px top-30px">
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoadingSpinner.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script></script>

<div class="justify-center items-center self-center m-auto">
<img alt="loading" src="imgs/loadingspinner.gif" width="150px" />
<img alt="loading" src="/imgs/loadingspinner.gif" width="150px" />
</div>
2 changes: 1 addition & 1 deletion src/components/PleaseConnectFirst.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="text-center ml-auto mr-auto mb-2 mt-10">
<img
class="m-auto arrow-filter-color"
src="imgs/down_arrow.svg"
src="/imgs/down_arrow.svg"
alt="down arrow icon"
width="100px" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/bottom/ConnectedLiveGraphButtons.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
>{$t('footer.disconnectButton')}</StandardButton>
{:else}
<StandardButton onClick={TypingUtils.emptyFunction} color="disabled">
<img alt="loading" src="imgs/loadingspinner.gif" style="height:24px" />
<img alt="loading" src="/imgs/loadingspinner.gif" style="height:24px" />
</StandardButton>
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<!-- Show spinner while connecting -->
<div class="w-650px flex flex-col justify-center items-center">
<p>{$t('popup.connectMB.bluetooth.connecting')}</p>
<img alt="loading" src="imgs/loadingspinner.gif" width="100px" />
<img alt="loading" src="/imgs/loadingspinner.gif" width="100px" />
</div>
{:else}
<div class="grid grid-cols-3 mb-5 w-650px">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<ImageSkeleton
alt="microbit recording guide"
height={134}
src="imgs/microbit_record_guide.svg"
src="/imgs/microbit_record_guide.svg"
width={200} />
</div>
<p class=" text-center absolute w-60px right-10px top-35px">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ModelPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<div class="text-center ml-0 mb-2 mt-8">
<img
class="m-auto arrow-filter-color"
src="imgs/down_arrow.svg"
src="/imgs/down_arrow.svg"
alt="down arrow icon"
width="80px" />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ImageSkeleton
alt="microbit guide"
height={114}
src="imgs/microbit_guide.svg"
src="/imgs/microbit_guide.svg"
width={200} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/PageContentView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
</script>

<div class="absolute -z-1 bottom-2 right-1">
<img alt="theme graphic" src="imgs/arrow_group.svg" width="350px" />
<img alt="theme graphic" src="/imgs/arrow_group.svg" width="350px" />
</div>
<svelte:component this={$currentPageComponent} />
4 changes: 2 additions & 2 deletions src/views/SideBarMenuView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- Menu -->
<div class="p-5 pl-5 pr-5">
<div class="absolute bottom-15 -left-2">
<img alt="decoration arrows" src="imgs/partial_red_arrows.svg" width="225px" />
<img alt="decoration arrows" src="/imgs/red_arrows.svg" width="225px" />
</div>

<div class="relative">
Expand All @@ -61,7 +61,7 @@
<div class="text-center ml-auto mr-auto mb-1 mt-1">
<img
class="m-auto"
src="imgs/down_arrow.svg"
src="/imgs/down_arrow.svg"
alt="down arrow icon"
width="30px" />
</div>
Expand Down

0 comments on commit d4ae8a5

Please sign in to comment.