Separated out the theme tiles

combined data axes into the index file
This commit is contained in:
2025-12-08 22:46:53 -06:00
parent 4bf7505592
commit a1349f9cd1
16 changed files with 384 additions and 711 deletions

View File

@@ -1,28 +1,24 @@
<script>
export let currentTheme;
const themes = ['win95', 'cyberpunk', 'typewriter', 'nightmare', 'vaporwave', 'nintendo'];
export let currentTheme;
const themes = ['win95', 'cyberpunk', 'typewriter', 'nightmare', 'vaporwave', 'nintendo'];
</script>
<div class="button-row">
{#each themes as theme}
<button
on:click={() => currentTheme = theme}
class:active={currentTheme === theme}
>
{theme.charAt(0).toUpperCase() + theme.slice(1)}
</button>
{/each}
{#each themes as theme}
<button on:click={() => (currentTheme = theme)} class:active={currentTheme === theme}>
{theme.charAt(0).toUpperCase() + theme.slice(1)}
</button>
{/each}
</div>
<style>
@import '$lib/styles/themes.css';
@import '$lib/styles/win95.css';
.button-row {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap;
margin-top: 10px;
}
</style>
.button-row {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap;
margin-top: 10px;
}
</style>