A lot betternpm run dev!

This commit is contained in:
cirroskais 2024-08-12 13:05:23 -04:00
parent 866972d3bd
commit c08fc02b17
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D
4 changed files with 7 additions and 5 deletions

Binary file not shown.

View file

@ -1,3 +1,5 @@
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@ -6,4 +8,5 @@ html,
body { body {
@apply bg-neutral-900; @apply bg-neutral-900;
@apply text-white; @apply text-white;
font-family: "Nunito", sans-serif;
} }

View file

@ -2,7 +2,7 @@
"imageDuration": 10, "imageDuration": 10,
"images": ["/img/1.jpg", "/img/2.jpg", "/img/3.jpg", "/img/4.jpg", "/img/5.jpg", "/img/6.jpg", "/img/7.jpg", "/img/8.jpg"], "images": ["/img/1.jpg", "/img/2.jpg", "/img/3.jpg", "/img/4.jpg", "/img/5.jpg", "/img/6.jpg", "/img/7.jpg", "/img/8.jpg"],
"audioMethod": "radio", "audioMethod": "playlist",
"radio": "https://noise.madhouselabs.net", "radio": "https://noise.madhouselabs.net",
"radioServerName": "dope", "radioServerName": "dope",
@ -10,7 +10,6 @@
"playlist": [ "playlist": [
{ "title": "MF DOOM - Rapp Snitch Knishes", "location": "/audio/Rapp Snitch Knishes.mp3" }, { "title": "MF DOOM - Rapp Snitch Knishes", "location": "/audio/Rapp Snitch Knishes.mp3" },
{ "title": "Modjo - Lady (Hear Me Tonight)", "location": "/audio/Lady.mp3" }, { "title": "Modjo - Lady (Hear Me Tonight)", "location": "/audio/Lady.mp3" },
{ "title": "EVABOY - is there a point (girl u know)", "location": "/audio/is there a point (girl u know).mp3" }, { "title": "EVABOY - is there a point (girl u know)", "location": "/audio/is there a point (girl u know).mp3" }
{ "title": "snuffles - SPOTS", "location": "/audio/SPOTS.mp3" }
] ]
} }

View file

@ -1,5 +1,5 @@
<script> <script>
import { slide } from "svelte/transition"; import { fade, slide } from "svelte/transition";
import { images, imageDuration } from "../config.json"; import { images, imageDuration } from "../config.json";
let index = Math.floor(Math.random() * images.length), let index = Math.floor(Math.random() * images.length),
@ -20,6 +20,6 @@
{#each images as image} {#each images as image}
{#if selected === image} {#if selected === image}
<img in:slide={{ axis: "x" }} out:slide={{ axis: "x" }} class="max-h-screen" src={image} alt="" /> <img transition:fade class="absolute max-h-screen" src={image} alt="" />
{/if} {/if}
{/each} {/each}