cduss's picture
Make Me v1: voice/text-prompted photo transformation
18e1208
Raw
History Blame Contribute Delete
6.53 kB
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0f1117;
--surface: #1a1d27;
--surface2: #242836;
--border: #2e3348;
--text: #e4e6f0;
--muted: #8b8fa8;
--accent: #f97316;
--accent2: #ef4444;
--ok: #22c55e;
--warn: #f59e0b;
--radius: 12px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}
section { padding: 1.5rem; max-width: 1000px; margin: 0 auto; }
.center-card {
max-width: 440px;
margin: 12vh auto 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 2rem;
text-align: center;
}
.center-card h1 { font-size: 2rem; margin-bottom: 0.25rem; letter-spacing: -0.5px; }
.subtitle { color: var(--muted); margin-bottom: 1.25rem; }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; font-style: italic; }
/* Buttons */
.primary {
background: linear-gradient(135deg, var(--accent), #ea580c);
color: #fff;
border: none;
border-radius: 10px;
padding: 0.7rem 1.6rem;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
}
.primary.big { padding: 0.85rem 1.8rem; font-size: 1.05rem; }
.primary:disabled { opacity: 0.5; cursor: default; }
.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,0.3); }
.secondary {
background: var(--surface2);
color: var(--muted);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.55rem 1rem;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.15s;
}
.secondary:hover { border-color: var(--accent); color: var(--text); }
.small { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
.badge {
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 0.25rem 0.6rem;
font-size: 0.8rem;
}
.badge.warn { border-color: var(--warn); color: var(--warn); }
/* Robot list */
.robot-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.robot-btn {
background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
color: var(--text); padding: 0.7rem 1rem; cursor: pointer; font-size: 0.95rem;
transition: all 0.15s;
}
.robot-btn:hover { border-color: var(--accent); background: rgba(249,115,22,0.1); }
.muted { color: var(--muted); }
.error { color: var(--accent2); }
/* Header */
header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 1rem;
}
header h1 { font-size: 1.4rem; }
.header-right { display: flex; align-items: center; gap: 0.5rem; }
/* Video */
.video-section { margin-bottom: 1rem; }
.video-container {
position: relative;
background: #000;
border-radius: var(--radius);
overflow: hidden;
max-height: 420px;
}
.video-container video {
width: 100%;
display: block;
max-height: 420px;
object-fit: contain;
}
/* Flash */
.flash-overlay {
position: absolute; inset: 0;
background: #fff;
opacity: 0;
pointer-events: none;
transition: opacity 0.1s;
}
.flash-overlay.flash-active { opacity: 0.9; transition: opacity 0.04s; }
/* Countdown */
.countdown-overlay {
position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
background: rgba(0,0,0,0.4);
pointer-events: none;
}
#countdownNumber {
font-size: 8rem; font-weight: 800;
color: #fff; text-shadow: 0 0 40px rgba(249,115,22,0.8);
letter-spacing: -4px;
}
#countdownNumber.pulse {
animation: pulse 0.9s ease-out;
}
@keyframes pulse {
0% { transform: scale(0.7); opacity: 0; }
40% { transform: scale(1.2); opacity: 1; }
100% { transform: scale(1); opacity: 0.9; }
}
/* Prompt bar */
.prompt-section { margin-bottom: 1.5rem; }
.prompt-row {
display: flex; gap: 0.5rem; align-items: stretch;
}
.mic-btn {
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 0.1rem; min-width: 64px;
background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
color: var(--muted); cursor: pointer; font-size: 0.72rem;
transition: all 0.12s;
user-select: none;
}
.mic-btn:hover { border-color: var(--accent); color: var(--text); }
.mic-btn .mic-icon { font-size: 1.4rem; }
.mic-btn.recording {
background: var(--accent2); border-color: var(--accent2); color: #fff;
animation: recpulse 1.2s infinite;
}
@keyframes recpulse {
0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
.prompt-input {
flex: 1;
background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
padding: 0.8rem 1rem; color: var(--text); font-size: 1rem;
transition: border-color 0.15s;
}
.prompt-input:focus { outline: none; border-color: var(--accent); }
/* Chips */
.chips {
display: flex; flex-wrap: wrap; gap: 0.4rem;
margin-top: 0.6rem;
}
.chip {
background: var(--surface2); border: 1px solid var(--border); border-radius: 999px;
color: var(--muted); padding: 0.3rem 0.75rem; font-size: 0.82rem;
cursor: pointer; transition: all 0.12s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
/* Status line */
.status-line {
margin-top: 0.5rem; font-size: 0.85rem; min-height: 1.2em;
}
.status-line.error { color: var(--accent2); }
/* Reveal */
.reveal-section { margin-top: 1.5rem; }
.compare {
display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.img-box {
position: relative;
background: var(--surface); border: 1px solid var(--border);
border-radius: var(--radius); overflow: hidden;
aspect-ratio: 1 / 1;
}
.img-box img {
width: 100%; height: 100%; display: block;
object-fit: contain; background: #000;
}
.img-box .label {
position: absolute; top: 0.5rem; left: 0.5rem;
background: rgba(0,0,0,0.6); padding: 0.15rem 0.5rem;
border-radius: 4px; font-size: 0.75rem; color: #fff;
}
.download {
position: absolute; bottom: 0.5rem; right: 0.5rem;
background: var(--accent); color: #fff;
padding: 0.35rem 0.8rem; border-radius: 6px;
font-size: 0.85rem; text-decoration: none; font-weight: 500;
}
.reveal-actions {
margin-top: 0.8rem;
display: flex; justify-content: space-between; align-items: center;
}
/* Footer */
footer {
margin-top: 2rem; text-align: center;
color: var(--muted); font-size: 0.82rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }