Move assets from lib to static

This commit is contained in:
LogolicusYZ 2023-06-09 11:04:56 +02:00
parent 6e1698c05f
commit 89390fa1eb
25 changed files with 6 additions and 11 deletions

View file

@ -1,6 +1,5 @@
<script>
import { onMount } from 'svelte';
import demoImage from '$lib/assets/images/gallery/pic0.png'
function rand(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min)
@ -31,7 +30,7 @@
<a href="/modlist" role="button" class="secondary outline">Modlist</a>
</div>
<!-- svelte-ignore a11y-img-redundant-alt -->
<a href="/gallery" class="banner" data-tooltip="See more..."><img src="{demoImage}" id="banner" alt="Random picture from the gallery."></a>
<a href="/gallery" class="banner" data-tooltip="See more..."><img src="assets/images/gallery/pic0.png" id="banner" alt="Random picture from the gallery."></a>
<style>
a.banner img {

View file

@ -1,13 +1,12 @@
<script>
import { page } from '$app/stores';
import logo from '$lib/assets/logo/explorecraft.svg';
import Switcher from './Switcher.svelte';
</script>
<div class="header-container">
<a class="link contrast" href="/">
<div class="header">
<img class="logo" src="{logo}" alt="ExploreCraft Logo" />
<img class="logo" src="/assets/logo/explorecraft.svg" alt="ExploreCraft Logo" />
<div>ExploreCraft</div>
</div>
</a>

View file

@ -1,8 +1,6 @@
<!-- Switcher.svelte -->
<script>
import { onMount } from "svelte";
import sun from "$lib/assets/icons/sun.svg";
import moon from "$lib/assets/icons/moon.svg";
let isDarkMode = false;
@ -25,9 +23,9 @@
<button class:dark={isDarkMode} class="switcher" on:click={toggleDarkMode}>
{#if isDarkMode}
<img src={sun} class="icon" alt="Light Mode" />
<img src="/assets/icons/sun.svg" class="icon" alt="Light Mode" />
{:else}
<img src={moon} class="icon" alt="Dark Mode" />
<img src="/assets/icons/moon.svg" class="icon" alt="Dark Mode" />
{/if}
</button>

View file

@ -5,7 +5,6 @@
<script>
import { onMount } from 'svelte';
import celebrate from '$lib/assets/audio/8bit-win.mp3';
let characters = ['🥳', '🎉', '✨'];
@ -51,7 +50,7 @@
<div class="text-column">
<h1>Yahoo!</h1>
<h2>Celebrate good times COME ON!</h2>
<audio loop="true" autoplay="true" src="{celebrate}" />
<audio loop="true" autoplay="true" src="assets/audio/8bit-win.mp3" />
</div>
<style>

View file

Before

Width:  |  Height:  |  Size: 711 B

After

Width:  |  Height:  |  Size: 711 B

View file

Before

Width:  |  Height:  |  Size: 724 B

After

Width:  |  Height:  |  Size: 724 B

View file

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

View file

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 4.3 MiB

View file

Before

Width:  |  Height:  |  Size: 4.1 MiB

After

Width:  |  Height:  |  Size: 4.1 MiB

View file

Before

Width:  |  Height:  |  Size: 259 KiB

After

Width:  |  Height:  |  Size: 259 KiB

View file

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 167 KiB

View file

Before

Width:  |  Height:  |  Size: 4.6 MiB

After

Width:  |  Height:  |  Size: 4.6 MiB

View file

Before

Width:  |  Height:  |  Size: 582 KiB

After

Width:  |  Height:  |  Size: 582 KiB

View file

Before

Width:  |  Height:  |  Size: 5.3 MiB

After

Width:  |  Height:  |  Size: 5.3 MiB

View file

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

View file

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View file

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View file

Before

Width:  |  Height:  |  Size: 4.7 MiB

After

Width:  |  Height:  |  Size: 4.7 MiB

View file

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 4.3 MiB

View file

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View file

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB