Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions projects/tpyingjazz/css/animations.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* typing-jazz/css/animations.css
*/

@keyframes fade-in {
from {
opacity: 0;
transform: translateY(10px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

header h1 {
animation: fade-in 1s ease-out forwards;
}

.subtitle {
animation: fade-in 1.2s ease-out forwards;
}

#visualizer-container {
animation: fade-in 1.4s ease-out forwards;
}

#text-area-container {
animation: fade-in 1.6s ease-out forwards;
}

.note-bubble {
position: absolute;
border-radius: 50%;
border: 1px solid var(--accent-gold);
pointer-events: none;
animation: note-expand 2s ease-out forwards;
}

@keyframes note-expand {
0% {
width: 10px;
height: 10px;
opacity: 0.8;
transform: translate(-50%, -50%) scale(1);
}

100% {
width: 200px;
height: 200px;
opacity: 0;
transform: translate(-50%, -50%) scale(1.5);
}
}
232 changes: 232 additions & 0 deletions projects/tpyingjazz/css/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
/**
* typing-jazz/css/layout.css
*/

:root {
--bg-color: #0d0d0f;
--panel-bg: #1a1a1e;
--accent-gold: #c5a059;
--accent-gold-glow: rgba(197, 160, 89, 0.3);
--text-primary: #e0e0e0;
--text-secondary: #909090;
--border-color: #2a2a2f;
--font-serif: 'Playfair Display', serif;
--font-sans: 'Inter', sans-serif;

/* Animation Tokens */
--transition-speed: 0.3s;
}

* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

body {
background-color: var(--bg-color);
color: var(--text-primary);
font-family: var(--font-sans);
line-height: 1.6;
overflow: hidden;
height: 100vh;
}

#app {
display: flex;
flex-direction: column;
height: 100%;
}

header {
padding: 2rem;
text-align: center;
}

h1 {
font-family: var(--font-serif);
font-size: 3rem;
font-weight: 700;
color: var(--accent-gold);
letter-spacing: -1px;
margin-bottom: 0.5rem;
}

.subtitle {
color: var(--text-secondary);
font-weight: 300;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 0.8rem;
}

main {
flex: 1;
display: flex;
flex-direction: column;
padding: 0 2rem;
max-width: 1200px;
margin: 0 auto;
width: 100%;
gap: 2rem;
}

#visualizer-container {
height: 300px;
background: var(--panel-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
position: relative;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#audio-visualizer {
width: 100%;
height: 100%;
display: block;
}

#text-area-container {
flex: 1;
position: relative;
background: var(--panel-bg);
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 2rem;
}

#jazz-input {
width: 100%;
height: 100%;
background: transparent;
border: none;
color: var(--text-primary);
font-family: var(--font-serif);
font-size: 1.5rem;
resize: none;
outline: none;
line-height: 1.8;
}

#jazz-input::placeholder {
color: var(--border-color);
}

footer {
padding: 1.5rem 2rem;
border-top: 1px solid var(--border-color);
background: rgba(20, 20, 25, 0.8);
}

.controls {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1400px;
margin: 0 auto;
}

.left-controls {
display: flex;
gap: 1rem;
}

button {
background: var(--panel-bg);
color: var(--accent-gold);
border: 1px solid var(--accent-gold);
padding: 0.6rem 1.2rem;
font-family: var(--font-sans);
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 4px;
cursor: pointer;
transition: all var(--transition-speed) ease;
}

button:hover {
background: var(--accent-gold);
color: var(--bg-color);
box-shadow: 0 0 15px var(--accent-gold-glow);
}

#init-audio {
background: var(--accent-gold);
color: var(--bg-color);
padding: 1rem 2.5rem;
font-size: 1rem;
}

#record-toggle.recording {
background: #ff4444;
border-color: #ff4444;
color: white;
animation: blink 1s infinite;
}

@keyframes blink {
50% {
opacity: 0.6;
}
}

.status {
color: var(--text-secondary);
font-size: 0.9rem;
}

.status span {
color: var(--text-primary);
font-weight: 600;
}

/* Modal Overlay */
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(13, 13, 15, 0.95);
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease;
}

#overlay.visible {
opacity: 1;
pointer-events: all;
}

.modal {
background: var(--panel-bg);
padding: 3rem;
border-radius: 12px;
max-width: 500px;
text-align: center;
border: 1px solid var(--border-color);
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal h2 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
color: var(--accent-gold);
}

.modal p {
margin-bottom: 2rem;
color: var(--text-secondary);
}

.playfair {
font-family: var(--font-serif);
font-style: italic;
}
49 changes: 49 additions & 0 deletions projects/tpyingjazz/css/piano.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* typing-jazz/css/piano.css
*/

#piano-view {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 80px;
display: flex;
padding: 0 10px;
pointer-events: none;
opacity: 0.5;
transition: opacity 0.3s ease;
}

#visualizer-container:hover #piano-view {
opacity: 1;
}

.piano-key {
flex: 1;
margin: 0 1px;
background: #2a2a2f;
border-radius: 0 0 4px 4px;
transition: all 0.1s ease;
border-bottom: 3px solid #1a1a1e;
}

.piano-key.active {
background: var(--accent-gold);
box-shadow: 0 0 20px var(--accent-gold-glow);
transform: translateY(2px);
border-bottom-width: 1px;
}

/* Different shades for "octaves" */
.piano-key:nth-child(n+12) {
opacity: 0.9;
}

.piano-key:nth-child(n+24) {
opacity: 0.8;
}

.piano-key:nth-child(n+36) {
opacity: 0.7;
}
37 changes: 37 additions & 0 deletions projects/tpyingjazz/css/visualization.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* typing-jazz/css/visualization.css
*/

.spark {
position: absolute;
width: 4px;
height: 20px;
background: var(--accent-gold);
border-radius: 2px;
pointer-events: none;
animation: spark-rise 1s ease-out forwards;
}

@keyframes spark-rise {
0% {
transform: translateY(0) scaleY(1);
opacity: 1;
filter: blur(0px);
}

100% {
transform: translateY(-100px) scaleY(2);
opacity: 0;
filter: blur(4px);
}
}

#input-cursor {
position: absolute;
width: 2px;
height: 1.5rem;
background: var(--accent-gold);
display: none;
pointer-events: none;
box-shadow: 0 0 10px var(--accent-gold-glow);
}
Loading