switch to the new VN-style design
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
15d88dfa25
commit
7fcb4784e3
4 changed files with 326 additions and 116 deletions
153
src/App.css
153
src/App.css
|
@ -1,42 +1,137 @@
|
|||
#root {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
:root {
|
||||
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: linear-gradient(to bottom, #bae6fd, #ffffff);
|
||||
color: #1f2937;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.app-container {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.scene-wrapper {
|
||||
position: relative;
|
||||
max-width: 640px;
|
||||
width: 100%;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
position: absolute;
|
||||
top: -80px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
border-radius: 50%;
|
||||
border: 4px solid white;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
object-fit: cover;
|
||||
animation: popIn 0.4s ease;
|
||||
}
|
||||
|
||||
.dialogue-box {
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
border: 1px solid #d1d5db;
|
||||
border-radius: 1.5rem;
|
||||
padding: 1.5rem;
|
||||
margin-top: 6rem;
|
||||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
|
||||
animation: fadeIn 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.dialogue-text {
|
||||
font-size: 1.125rem;
|
||||
color: #374151;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.dialogue-text strong {
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.control-button {
|
||||
margin-top: 1.5rem;
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 9999px;
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
|
||||
transition: background 0.3s ease;
|
||||
}
|
||||
|
||||
.control-button.recording {
|
||||
background-color: #ef4444;
|
||||
}
|
||||
|
||||
.control-button.idle {
|
||||
background-color: #3b82f6;
|
||||
}
|
||||
|
||||
.control-button.idle:hover {
|
||||
background-color: #2563eb;
|
||||
}
|
||||
|
||||
.recording-indicator {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
margin-top: 1rem;
|
||||
text-align: center;
|
||||
animation: pulse 1s infinite;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.react:hover {
|
||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
||||
.waveform-canvas {
|
||||
width: 300px; /* same as element width */
|
||||
height: 60px; /* same as element height */
|
||||
background-color: #000;
|
||||
border-radius: 8px;
|
||||
margin: 10px auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
@keyframes logo-spin {
|
||||
|
||||
|
||||
@keyframes pulse {
|
||||
0% { opacity: 1; }
|
||||
50% { opacity: 0.3; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
a:nth-of-type(2) .logo {
|
||||
animation: logo-spin infinite 20s linear;
|
||||
@keyframes popIn {
|
||||
0% {
|
||||
transform: scale(0.8);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.read-the-docs {
|
||||
color: #888;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue