Split Themes and added themes.js. Updated components
This commit is contained in:
48
src/lib/styles/cyberPunk.css
Normal file
48
src/lib/styles/cyberPunk.css
Normal file
@@ -0,0 +1,48 @@
|
||||
.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;
|
||||
}
|
||||
|
||||
.theme-cyberpunk .chart-display,
|
||||
.theme-cyberpunk .dice-display {
|
||||
background: rgba(0, 255, 255, 0.05);
|
||||
border: 1px solid #00ffff;
|
||||
}
|
||||
86
src/lib/styles/general.css
Normal file
86
src/lib/styles/general.css
Normal file
@@ -0,0 +1,86 @@
|
||||
/* Base styles that apply to all themes */
|
||||
.container {
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.window {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.window-body {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.title-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.home-button {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||||
color: inherit;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.home-button:hover {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
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;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 8px 24px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.chart-display,
|
||||
.dice-display {
|
||||
padding: 20px;
|
||||
min-height: 120px;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.axis {
|
||||
margin: 10px 0;
|
||||
padding: 10px;
|
||||
border: 1px solid currentColor;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.axis-label {
|
||||
font-weight: bold;
|
||||
margin-bottom: 5px;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
49
src/lib/styles/nightmare.css
Normal file
49
src/lib/styles/nightmare.css
Normal file
@@ -0,0 +1,49 @@
|
||||
.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;
|
||||
}
|
||||
|
||||
.theme-nightmare .chart-display,
|
||||
.theme-nightmare .dice-display {
|
||||
background: #000000;
|
||||
border: 2px solid #8b0000;
|
||||
}
|
||||
64
src/lib/styles/nintendo.css
Normal file
64
src/lib/styles/nintendo.css
Normal file
@@ -0,0 +1,64 @@
|
||||
.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);
|
||||
}
|
||||
|
||||
.theme-nintendo .chart-display,
|
||||
.theme-nintendo .dice-display {
|
||||
background: #fff;
|
||||
border: 3px solid #00a3e0;
|
||||
border-radius: 10px;
|
||||
color: #484848;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
20
src/lib/styles/themes.js
Normal file
20
src/lib/styles/themes.js
Normal file
@@ -0,0 +1,20 @@
|
||||
export const themeNames = ['win95', 'cyberpunk', 'typewriter', 'nightmare', 'vaporwave', 'nintendo'];
|
||||
|
||||
export const themeDisplayNames = {
|
||||
win95: 'Windows 95',
|
||||
cyberpunk: 'Cyberpunk',
|
||||
typewriter: 'Typewriter',
|
||||
nightmare: 'Nightmare',
|
||||
vaporwave: 'Vaporwave',
|
||||
nintendo: 'Nintendo'
|
||||
};
|
||||
|
||||
// Import all theme CSS files
|
||||
// These will be bundled and applied globally
|
||||
import './win95.css';
|
||||
import './cyberPunk.css';
|
||||
import './typewriter.css';
|
||||
import './nightmare.css';
|
||||
import './vaporWave.css';
|
||||
import './nintendo.css';
|
||||
import './general.css';
|
||||
42
src/lib/styles/typewriter.css
Normal file
42
src/lib/styles/typewriter.css
Normal file
@@ -0,0 +1,42 @@
|
||||
.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 legend {
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.theme-typewriter button {
|
||||
background: #2c2416;
|
||||
border: 2px solid #2c2416;
|
||||
color: #f4e8d0;
|
||||
font-family: 'Courier', monospace;
|
||||
}
|
||||
|
||||
.theme-typewriter .chart-display,
|
||||
.theme-typewriter .dice-display {
|
||||
background: #fffef7;
|
||||
border: 1px solid #2c2416;
|
||||
}
|
||||
46
src/lib/styles/vaporWave.css
Normal file
46
src/lib/styles/vaporWave.css
Normal file
@@ -0,0 +1,46 @@
|
||||
.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;
|
||||
}
|
||||
|
||||
.theme-vaporwave .chart-display,
|
||||
.theme-vaporwave .dice-display {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
border: 2px solid #ff6ad5;
|
||||
}
|
||||
@@ -1,46 +1,3 @@
|
||||
: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;
|
||||
@@ -73,4 +30,10 @@ button {
|
||||
|
||||
.theme-win95 button:active {
|
||||
border-color: #000000 #ffffff #ffffff #000000;
|
||||
}
|
||||
|
||||
.theme-win95 .chart-display,
|
||||
.theme-win95 .dice-display {
|
||||
background: white;
|
||||
border: 2px inset #808080;
|
||||
}
|
||||
Reference in New Issue
Block a user