Separated out the theme tiles
combined data axes into the index file
This commit is contained in:
4
src/lib/components/index.ts
Normal file
4
src/lib/components/index.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export * from './chartDisplay.svelte'
|
||||
export * from './diceRoller.svelte'
|
||||
export * from './themeSelector.svelte'
|
||||
export * from './toggle.svelte'
|
||||
@@ -6,18 +6,13 @@
|
||||
|
||||
<div class="button-row">
|
||||
{#each themes as theme}
|
||||
<button
|
||||
on:click={() => currentTheme = theme}
|
||||
class:active={currentTheme === 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;
|
||||
@@ -26,3 +21,4 @@
|
||||
margin-top: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const xAxes = [
|
||||
const xAxes = [
|
||||
{ values: ["Traditional", "Experimental"], adult: false },
|
||||
{ values: ["Budget", "Luxury"], adult: false },
|
||||
{ values: ["Old", "New"], adult: false },
|
||||
@@ -13,3 +13,5 @@ export const xAxes = [
|
||||
// Add more X axes here...
|
||||
// Format: { values: ["Left extreme", "Right extreme"], adult: true/false }
|
||||
];
|
||||
|
||||
export default xAxes;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const yAxes = [
|
||||
const yAxes = [
|
||||
{ values: ["Thin", "Thick"], adult: false },
|
||||
{ values: ["Planned", "Spontaneous"], adult: false },
|
||||
{ values: ["Calm", "Upbeat"], adult: false },
|
||||
@@ -13,3 +13,5 @@ export const yAxes = [
|
||||
// Add more Y axes here...
|
||||
// Format: { values: ["Bottom extreme", "Top extreme"], adult: true/false }
|
||||
];
|
||||
|
||||
export default yAxes;
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
// place files you want to import through the `$lib` alias in this folder.
|
||||
export { default as xAxes } from './data/xAxes.js'
|
||||
export { default as yAxes } from './data/yAxes.js'
|
||||
|
||||
43
src/lib/styles/cyberpunk.css
Normal file
43
src/lib/styles/cyberpunk.css
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Cyberpunk Theme */
|
||||
:global(.theme-cyberpunk) {
|
||||
font-family: 'Courier New', monospace;
|
||||
background: #0a0e27;
|
||||
color: #00ffff;
|
||||
}
|
||||
|
||||
:global(.theme-cyberpunk .window){
|
||||
background: rgba(10, 14, 39, 0.95);
|
||||
border: 2px solid #00ffff;
|
||||
box-shadow: 0 0 20px #ff00ff;
|
||||
}
|
||||
|
||||
:global(.theme-cyberpunk .title-bar ){
|
||||
background: linear-gradient(90deg, #ff00ff, #00ffff);
|
||||
color: #000;
|
||||
padding: 12px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
:global(.theme-cyberpunk fieldset ){
|
||||
border: 1px solid #ff00ff;
|
||||
}
|
||||
|
||||
:global(.theme-cyberpunk legend ){
|
||||
color: #ff00ff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
:global(.theme-cyberpunk button ){
|
||||
background: transparent;
|
||||
border: 2px solid #ff00ff;
|
||||
color: #ff00ff;
|
||||
font-family: 'Courier New', monospace;
|
||||
text-transform: uppercase;
|
||||
padding: 10px 25px;
|
||||
}
|
||||
|
||||
:global(.theme-cyberpunk button:hover ){
|
||||
background: #ff00ff;
|
||||
color: #000;
|
||||
}
|
||||
44
src/lib/styles/nightmare.css
Normal file
44
src/lib/styles/nightmare.css
Normal file
@@ -0,0 +1,44 @@
|
||||
/* Nightmare Theme */
|
||||
:global(.theme-nightmare) {
|
||||
font-family: 'Georgia', serif;
|
||||
background: #000000;
|
||||
color: #8b0000;
|
||||
}
|
||||
|
||||
:global(.theme-nightmare .window) {
|
||||
background: #0d0000;
|
||||
border: 3px solid #8b0000;
|
||||
box-shadow: 0 0 30px #ff0000;
|
||||
}
|
||||
|
||||
:global(.theme-nightmare .title-bar) {
|
||||
background: linear-gradient(180deg, #3a0000, #000000);
|
||||
color: #ff0000;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 5px;
|
||||
text-shadow: 0 0 10px #ff0000;
|
||||
}
|
||||
|
||||
:global(.theme-nightmare fieldset) {
|
||||
border: 2px solid #8b0000;
|
||||
}
|
||||
|
||||
:global(.theme-nightmare legend) {
|
||||
color: #ff0000;
|
||||
text-shadow: 0 0 5px #ff0000;
|
||||
}
|
||||
|
||||
:global(.theme-nightmare button) {
|
||||
background: #3a0000;
|
||||
border: 2px solid #8b0000;
|
||||
color: #ff0000;
|
||||
font-family: 'Georgia', serif;
|
||||
text-transform: uppercase;
|
||||
padding: 10px 25px;
|
||||
}
|
||||
|
||||
:global(.theme-nightmare button:hover) {
|
||||
background: #8b0000;
|
||||
}
|
||||
58
src/lib/styles/nintendo.css
Normal file
58
src/lib/styles/nintendo.css
Normal file
@@ -0,0 +1,58 @@
|
||||
/* Nintendo Theme */
|
||||
:global(.theme-nintendo) {
|
||||
font-family: 'Arial', sans-serif;
|
||||
background: #e60012;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo .window) {
|
||||
background: #fff;
|
||||
border: 8px solid #e60012;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo .title-bar) {
|
||||
background: #e60012;
|
||||
color: #fff;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 24px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo .window-body) {
|
||||
color: #484848;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo fieldset) {
|
||||
border: 3px solid #e60012;
|
||||
border-radius: 15px;
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo legend) {
|
||||
color: #e60012;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo button) {
|
||||
background: #e60012;
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
padding: 12px 30px;
|
||||
box-shadow: 0 4px 0 #a00009;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo button:hover) {
|
||||
background: #ff0018;
|
||||
}
|
||||
|
||||
:global(.theme-nintendo button:active) {
|
||||
box-shadow: 0 2px 0 #a00009;
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
@@ -1,263 +0,0 @@
|
||||
:global(body) {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.window {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.window-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-weight: bold;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.button-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 8px 24px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Cyberpunk Theme */
|
||||
.theme-cyberpunk {
|
||||
font-family: 'Courier New', monospace;
|
||||
background: #0a0e27;
|
||||
color: #00ffff;
|
||||
}
|
||||
|
||||
.theme-cyberpunk .window {
|
||||
background: rgba(10, 14, 39, 0.95);
|
||||
border: 2px solid #00ffff;
|
||||
box-shadow: 0 0 20px #ff00ff;
|
||||
}
|
||||
|
||||
.theme-cyberpunk .title-bar {
|
||||
background: linear-gradient(90deg, #ff00ff, #00ffff);
|
||||
color: #000;
|
||||
padding: 12px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.theme-cyberpunk fieldset {
|
||||
border: 1px solid #ff00ff;
|
||||
}
|
||||
|
||||
.theme-cyberpunk legend {
|
||||
color: #ff00ff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.theme-cyberpunk button {
|
||||
background: transparent;
|
||||
border: 2px solid #ff00ff;
|
||||
color: #ff00ff;
|
||||
font-family: 'Courier New', monospace;
|
||||
text-transform: uppercase;
|
||||
padding: 10px 25px;
|
||||
}
|
||||
|
||||
.theme-cyberpunk button:hover {
|
||||
background: #ff00ff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Typewriter Theme */
|
||||
.theme-typewriter {
|
||||
font-family: 'Courier', monospace;
|
||||
background: #f4e8d0;
|
||||
color: #2c2416;
|
||||
}
|
||||
|
||||
.theme-typewriter .window {
|
||||
background: #fffef7;
|
||||
border: 3px double #2c2416;
|
||||
box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
.theme-typewriter .title-bar {
|
||||
background: #2c2416;
|
||||
color: #f4e8d0;
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 3px;
|
||||
}
|
||||
|
||||
.theme-typewriter fieldset {
|
||||
border: 2px solid #2c2416;
|
||||
}
|
||||
|
||||
.theme-typewriter button {
|
||||
background: #2c2416;
|
||||
border: 2px solid #2c2416;
|
||||
color: #f4e8d0;
|
||||
font-family: 'Courier', monospace;
|
||||
}
|
||||
|
||||
/* Nightmare Theme */
|
||||
.theme-nightmare {
|
||||
font-family: 'Georgia', serif;
|
||||
background: #000000;
|
||||
color: #8b0000;
|
||||
}
|
||||
|
||||
.theme-nightmare .window {
|
||||
background: #0d0000;
|
||||
border: 3px solid #8b0000;
|
||||
box-shadow: 0 0 30px #ff0000;
|
||||
}
|
||||
|
||||
.theme-nightmare .title-bar {
|
||||
background: linear-gradient(180deg, #3a0000, #000000);
|
||||
color: #ff0000;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 5px;
|
||||
text-shadow: 0 0 10px #ff0000;
|
||||
}
|
||||
|
||||
.theme-nightmare fieldset {
|
||||
border: 2px solid #8b0000;
|
||||
}
|
||||
|
||||
.theme-nightmare legend {
|
||||
color: #ff0000;
|
||||
text-shadow: 0 0 5px #ff0000;
|
||||
}
|
||||
|
||||
.theme-nightmare button {
|
||||
background: #3a0000;
|
||||
border: 2px solid #8b0000;
|
||||
color: #ff0000;
|
||||
font-family: 'Georgia', serif;
|
||||
text-transform: uppercase;
|
||||
padding: 10px 25px;
|
||||
}
|
||||
|
||||
.theme-nightmare button:hover {
|
||||
background: #8b0000;
|
||||
}
|
||||
|
||||
/* Vaporwave Theme */
|
||||
.theme-vaporwave {
|
||||
font-family: 'Arial', sans-serif;
|
||||
background: linear-gradient(180deg, #ff6ad5 0%, #c774e8 50%, #ad8cff 100%);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.theme-vaporwave .window {
|
||||
background: rgba(255, 106, 213, 0.3);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 3px solid #00f0ff;
|
||||
box-shadow: 0 8px 32px rgba(0, 240, 255, 0.4);
|
||||
}
|
||||
|
||||
.theme-vaporwave .title-bar {
|
||||
background: linear-gradient(90deg, #ff6ad5, #00f0ff);
|
||||
color: #fff;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 4px;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.theme-vaporwave fieldset {
|
||||
border: 2px solid #00f0ff;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.theme-vaporwave legend {
|
||||
color: #00f0ff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.theme-vaporwave button {
|
||||
background: linear-gradient(135deg, #ff6ad5, #c774e8);
|
||||
border: 2px solid #00f0ff;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
padding: 12px 30px;
|
||||
}
|
||||
|
||||
/* Nintendo Theme */
|
||||
.theme-nintendo {
|
||||
font-family: 'Arial', sans-serif;
|
||||
background: #e60012;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.theme-nintendo .window {
|
||||
background: #fff;
|
||||
border: 8px solid #e60012;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.theme-nintendo .title-bar {
|
||||
background: #e60012;
|
||||
color: #fff;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 24px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.theme-nintendo .window-body {
|
||||
color: #484848;
|
||||
}
|
||||
|
||||
.theme-nintendo fieldset {
|
||||
border: 3px solid #e60012;
|
||||
border-radius: 15px;
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.theme-nintendo legend {
|
||||
color: #e60012;
|
||||
}
|
||||
|
||||
.theme-nintendo button {
|
||||
background: #e60012;
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
padding: 12px 30px;
|
||||
box-shadow: 0 4px 0 #a00009;
|
||||
}
|
||||
|
||||
.theme-nintendo button:hover {
|
||||
background: #ff0018;
|
||||
}
|
||||
|
||||
.theme-nintendo button:active {
|
||||
box-shadow: 0 2px 0 #a00009;
|
||||
transform: translateY(2px);
|
||||
}
|
||||
32
src/lib/styles/typewriter.css
Normal file
32
src/lib/styles/typewriter.css
Normal file
@@ -0,0 +1,32 @@
|
||||
/* Typewriter Theme */
|
||||
:global(.theme-typewriter) {
|
||||
font-family: 'Courier', monospace;
|
||||
background: #f4e8d0;
|
||||
color: #2c2416;
|
||||
}
|
||||
|
||||
:global(.theme-typewriter .window) {
|
||||
background: #fffef7;
|
||||
border: 3px double #2c2416;
|
||||
box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
:global(.theme-typewriter .title-bar) {
|
||||
background: #2c2416;
|
||||
color: #f4e8d0;
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 3px;
|
||||
}
|
||||
|
||||
:global(.theme-typewriter fieldset) {
|
||||
border: 2px solid #2c2416;
|
||||
}
|
||||
|
||||
:global(.theme-typewriter button) {
|
||||
background: #2c2416;
|
||||
border: 2px solid #2c2416;
|
||||
color: #f4e8d0;
|
||||
font-family: 'Courier', monospace;
|
||||
}
|
||||
42
src/lib/styles/vaporwave.css
Normal file
42
src/lib/styles/vaporwave.css
Normal file
@@ -0,0 +1,42 @@
|
||||
/* Vaporwave Theme */
|
||||
:global(.theme-vaporwave) {
|
||||
font-family: 'Arial', sans-serif;
|
||||
background: linear-gradient(180deg, #ff6ad5 0%, #c774e8 50%, #ad8cff 100%);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
:global(.theme-vaporwave .window) {
|
||||
background: rgba(255, 106, 213, 0.3);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 3px solid #00f0ff;
|
||||
box-shadow: 0 8px 32px rgba(0, 240, 255, 0.4);
|
||||
}
|
||||
|
||||
:global(.theme-vaporwave .title-bar) {
|
||||
background: linear-gradient(90deg, #ff6ad5, #00f0ff);
|
||||
color: #fff;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 4px;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
:global(.theme-vaporwave fieldset) {
|
||||
border: 2px solid #00f0ff;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
:global(.theme-vaporwave legend) {
|
||||
color: #00f0ff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
:global(.theme-vaporwave button) {
|
||||
background: linear-gradient(135deg, #ff6ad5, #c774e8);
|
||||
border: 2px solid #00f0ff;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
padding: 12px 30px;
|
||||
}
|
||||
|
||||
@@ -1,76 +1,34 @@
|
||||
:global(body) {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.window {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.window-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-weight: bold;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.button-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 8px 24px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Windows 95 Theme */
|
||||
.theme-win95 {
|
||||
:global(.theme-win95 ){
|
||||
font-family: 'MS Sans Serif', Arial, sans-serif;
|
||||
background: #008080;
|
||||
}
|
||||
|
||||
.theme-win95 .window {
|
||||
:global(.theme-win95 .window) {
|
||||
background: #c0c0c0;
|
||||
border: 2px solid;
|
||||
border-color: #dfdfdf #808080 #808080 #dfdfdf;
|
||||
box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.theme-win95 .title-bar {
|
||||
:global(.theme-win95 .title-bar ){
|
||||
background: linear-gradient(to right, #000080, #1084d0);
|
||||
color: white;
|
||||
padding: 8px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.theme-win95 fieldset {
|
||||
:global(.theme-win95 fieldset ){
|
||||
border: 2px groove #c0c0c0;
|
||||
}
|
||||
|
||||
.theme-win95 button {
|
||||
:global(.theme-win95 button ){
|
||||
background: #c0c0c0;
|
||||
border: 2px solid;
|
||||
border-color: #ffffff #000000 #000000 #ffffff;
|
||||
font-family: 'MS Sans Serif', Arial, sans-serif;
|
||||
}
|
||||
|
||||
.theme-win95 button:active {
|
||||
:global(.theme-win95 button:active) {
|
||||
border-color: #000000 #ffffff #ffffff #000000;
|
||||
}
|
||||
@@ -9,9 +9,8 @@
|
||||
</svelte:head>
|
||||
|
||||
<nav>
|
||||
<h1>On the Spectrum</h1>
|
||||
<h1><a href="/">On the Spectrum</a></h1>
|
||||
<ul>
|
||||
<li><a href="/">Home</a></li>
|
||||
<li><a href="play">Play</a></li>
|
||||
<li><a href="rules">Rules</a></li>
|
||||
<li><a href="submit">Submit</a></li>
|
||||
@@ -23,8 +22,65 @@
|
||||
</section>
|
||||
|
||||
<style>
|
||||
@import '$lib/styles/cyberpunk.css';
|
||||
@import '$lib/styles/nightmare.css';
|
||||
@import '$lib/styles/nintendo.css';
|
||||
@import '$lib/styles/typewriter.css';
|
||||
@import '$lib/styles/vaporwave.css';
|
||||
@import '$lib/styles/win95.css';
|
||||
|
||||
:global(body) {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
:global(.container) {
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
:global(.window) {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
:global(.window-body) {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
:global(fieldset) {
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
:global(legend) {
|
||||
font-weight: bold;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
:global(.button-row) {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
:global(button) {
|
||||
padding: 8px 24px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
nav {
|
||||
display: inline-flex;
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
font-weight: 600;
|
||||
&:hover {
|
||||
color: oklch(0.6 0.186 25);
|
||||
}
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: none;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,21 +1,19 @@
|
||||
<script>
|
||||
import { goto } from '$app/navigation';
|
||||
import { xAxes } from '$lib/data/xAxes.js';
|
||||
import { yAxes } from '$lib/data/yAxes.js';
|
||||
import { xAxes, yAxes } from '$lib';
|
||||
import ChartDisplay from '$lib/components/chartDisplay.svelte';
|
||||
import DiceRoller from '$lib/components/diceRoller.svelte';
|
||||
import ThemeSelector from '$lib/components/themeSelector.svelte';
|
||||
import Toggle from '$lib/components/toggle.svelte';
|
||||
|
||||
|
||||
let currentTheme = 'win95';
|
||||
let adultMode = false;
|
||||
let currentChart = null;
|
||||
let diceRoll = null;
|
||||
|
||||
function generateChart() {
|
||||
const availableXAxes = adultMode ? xAxes : xAxes.filter(axis => !axis.adult);
|
||||
const availableYAxes = adultMode ? yAxes : yAxes.filter(axis => !axis.adult);
|
||||
const availableXAxes = adultMode ? xAxes : xAxes.filter((axis) => !axis.adult);
|
||||
const availableYAxes = adultMode ? yAxes : yAxes.filter((axis) => !axis.adult);
|
||||
|
||||
const randomX = availableXAxes[Math.floor(Math.random() * availableXAxes.length)];
|
||||
const randomY = availableYAxes[Math.floor(Math.random() * availableYAxes.length)];
|
||||
@@ -74,307 +72,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
@import '$lib/styles/themes.css';
|
||||
@import '$lib/styles/win95.css';
|
||||
</style>
|
||||
<!-- <style>
|
||||
:global(body) {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.window {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.window-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding: 15px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-weight: bold;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
.button-row {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 8px 24px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Windows 95 Theme */
|
||||
.theme-win95 {
|
||||
font-family: 'MS Sans Serif', Arial, sans-serif;
|
||||
background: #008080;
|
||||
}
|
||||
|
||||
.theme-win95 .window {
|
||||
background: #c0c0c0;
|
||||
border: 2px solid;
|
||||
border-color: #dfdfdf #808080 #808080 #dfdfdf;
|
||||
box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.theme-win95 .title-bar {
|
||||
background: linear-gradient(to right, #000080, #1084d0);
|
||||
color: white;
|
||||
padding: 8px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.theme-win95 fieldset {
|
||||
border: 2px groove #c0c0c0;
|
||||
}
|
||||
|
||||
.theme-win95 button {
|
||||
background: #c0c0c0;
|
||||
border: 2px solid;
|
||||
border-color: #ffffff #000000 #000000 #ffffff;
|
||||
font-family: 'MS Sans Serif', Arial, sans-serif;
|
||||
}
|
||||
|
||||
.theme-win95 button:active {
|
||||
border-color: #000000 #ffffff #ffffff #000000;
|
||||
}
|
||||
|
||||
/* Cyberpunk Theme */
|
||||
.theme-cyberpunk {
|
||||
font-family: 'Courier New', monospace;
|
||||
background: #0a0e27;
|
||||
color: #00ffff;
|
||||
}
|
||||
|
||||
.theme-cyberpunk .window {
|
||||
background: rgba(10, 14, 39, 0.95);
|
||||
border: 2px solid #00ffff;
|
||||
box-shadow: 0 0 20px #ff00ff;
|
||||
}
|
||||
|
||||
.theme-cyberpunk .title-bar {
|
||||
background: linear-gradient(90deg, #ff00ff, #00ffff);
|
||||
color: #000;
|
||||
padding: 12px;
|
||||
font-weight: bold;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.theme-cyberpunk fieldset {
|
||||
border: 1px solid #ff00ff;
|
||||
}
|
||||
|
||||
.theme-cyberpunk legend {
|
||||
color: #ff00ff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.theme-cyberpunk button {
|
||||
background: transparent;
|
||||
border: 2px solid #ff00ff;
|
||||
color: #ff00ff;
|
||||
font-family: 'Courier New', monospace;
|
||||
text-transform: uppercase;
|
||||
padding: 10px 25px;
|
||||
}
|
||||
|
||||
.theme-cyberpunk button:hover {
|
||||
background: #ff00ff;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
/* Typewriter Theme */
|
||||
.theme-typewriter {
|
||||
font-family: 'Courier', monospace;
|
||||
background: #f4e8d0;
|
||||
color: #2c2416;
|
||||
}
|
||||
|
||||
.theme-typewriter .window {
|
||||
background: #fffef7;
|
||||
border: 3px double #2c2416;
|
||||
box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
.theme-typewriter .title-bar {
|
||||
background: #2c2416;
|
||||
color: #f4e8d0;
|
||||
padding: 12px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 3px;
|
||||
}
|
||||
|
||||
.theme-typewriter fieldset {
|
||||
border: 2px solid #2c2416;
|
||||
}
|
||||
|
||||
.theme-typewriter button {
|
||||
background: #2c2416;
|
||||
border: 2px solid #2c2416;
|
||||
color: #f4e8d0;
|
||||
font-family: 'Courier', monospace;
|
||||
}
|
||||
|
||||
/* Nightmare Theme */
|
||||
.theme-nightmare {
|
||||
font-family: 'Georgia', serif;
|
||||
background: #000000;
|
||||
color: #8b0000;
|
||||
}
|
||||
|
||||
.theme-nightmare .window {
|
||||
background: #0d0000;
|
||||
border: 3px solid #8b0000;
|
||||
box-shadow: 0 0 30px #ff0000;
|
||||
}
|
||||
|
||||
.theme-nightmare .title-bar {
|
||||
background: linear-gradient(180deg, #3a0000, #000000);
|
||||
color: #ff0000;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 5px;
|
||||
text-shadow: 0 0 10px #ff0000;
|
||||
}
|
||||
|
||||
.theme-nightmare fieldset {
|
||||
border: 2px solid #8b0000;
|
||||
}
|
||||
|
||||
.theme-nightmare legend {
|
||||
color: #ff0000;
|
||||
text-shadow: 0 0 5px #ff0000;
|
||||
}
|
||||
|
||||
.theme-nightmare button {
|
||||
background: #3a0000;
|
||||
border: 2px solid #8b0000;
|
||||
color: #ff0000;
|
||||
font-family: 'Georgia', serif;
|
||||
text-transform: uppercase;
|
||||
padding: 10px 25px;
|
||||
}
|
||||
|
||||
.theme-nightmare button:hover {
|
||||
background: #8b0000;
|
||||
}
|
||||
|
||||
/* Vaporwave Theme */
|
||||
.theme-vaporwave {
|
||||
font-family: 'Arial', sans-serif;
|
||||
background: linear-gradient(180deg, #ff6ad5 0%, #c774e8 50%, #ad8cff 100%);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.theme-vaporwave .window {
|
||||
background: rgba(255, 106, 213, 0.3);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 3px solid #00f0ff;
|
||||
box-shadow: 0 8px 32px rgba(0, 240, 255, 0.4);
|
||||
}
|
||||
|
||||
.theme-vaporwave .title-bar {
|
||||
background: linear-gradient(90deg, #ff6ad5, #00f0ff);
|
||||
color: #fff;
|
||||
padding: 15px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 4px;
|
||||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.theme-vaporwave fieldset {
|
||||
border: 2px solid #00f0ff;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.theme-vaporwave legend {
|
||||
color: #00f0ff;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.theme-vaporwave button {
|
||||
background: linear-gradient(135deg, #ff6ad5, #c774e8);
|
||||
border: 2px solid #00f0ff;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
padding: 12px 30px;
|
||||
}
|
||||
|
||||
/* Nintendo Theme */
|
||||
.theme-nintendo {
|
||||
font-family: 'Arial', sans-serif;
|
||||
background: #e60012;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.theme-nintendo .window {
|
||||
background: #fff;
|
||||
border: 8px solid #e60012;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.theme-nintendo .title-bar {
|
||||
background: #e60012;
|
||||
color: #fff;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
font-size: 24px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.theme-nintendo .window-body {
|
||||
color: #484848;
|
||||
}
|
||||
|
||||
.theme-nintendo fieldset {
|
||||
border: 3px solid #e60012;
|
||||
border-radius: 15px;
|
||||
background: #f7f7f7;
|
||||
}
|
||||
|
||||
.theme-nintendo legend {
|
||||
color: #e60012;
|
||||
}
|
||||
|
||||
.theme-nintendo button {
|
||||
background: #e60012;
|
||||
border: none;
|
||||
border-radius: 25px;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
padding: 12px 30px;
|
||||
box-shadow: 0 4px 0 #a00009;
|
||||
}
|
||||
|
||||
.theme-nintendo button:hover {
|
||||
background: #ff0018;
|
||||
}
|
||||
|
||||
.theme-nintendo button:active {
|
||||
box-shadow: 0 2px 0 #a00009;
|
||||
transform: translateY(2px);
|
||||
}
|
||||
</style> -->
|
||||
Reference in New Issue
Block a user