|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | + <title>track-click-stable</title> |
| 7 | + <style> |
| 8 | + :root { |
| 9 | + color-scheme: dark; |
| 10 | + --bg: #101417; |
| 11 | + --panel: #171d22; |
| 12 | + --ink: #f4f6f4; |
| 13 | + --muted: #a9b2ae; |
| 14 | + --line: #303a40; |
| 15 | + --accent: #a78bfa; |
| 16 | + --ok: #5eead4; |
| 17 | + } |
| 18 | + * { box-sizing: border-box; } |
| 19 | + body { |
| 20 | + margin: 0; |
| 21 | + min-height: 100vh; |
| 22 | + display: grid; |
| 23 | + place-items: center; |
| 24 | + background: var(--bg); |
| 25 | + color: var(--ink); |
| 26 | + font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; |
| 27 | + } |
| 28 | + .stage { |
| 29 | + width: min(940px, calc(100vw - 32px)); |
| 30 | + min-height: 500px; |
| 31 | + display: grid; |
| 32 | + grid-template-columns: 220px 1fr; |
| 33 | + grid-template-rows: 1fr 170px 44px; |
| 34 | + border: 1px solid var(--line); |
| 35 | + background: var(--panel); |
| 36 | + overflow: hidden; |
| 37 | + } |
| 38 | + .clips { |
| 39 | + grid-row: 1 / span 2; |
| 40 | + border-right: 1px solid var(--line); |
| 41 | + padding: 18px 12px; |
| 42 | + } |
| 43 | + .clip { |
| 44 | + height: 48px; |
| 45 | + display: flex; |
| 46 | + align-items: center; |
| 47 | + gap: 10px; |
| 48 | + padding: 0 12px; |
| 49 | + margin-bottom: 8px; |
| 50 | + border: 1px solid #263139; |
| 51 | + color: var(--muted); |
| 52 | + } |
| 53 | + .clip.active { |
| 54 | + border-color: var(--accent); |
| 55 | + background: rgba(167,139,250,.12); |
| 56 | + color: var(--ink); |
| 57 | + } |
| 58 | + .mark { |
| 59 | + width: 3px; |
| 60 | + height: 16px; |
| 61 | + background: var(--accent); |
| 62 | + } |
| 63 | + .preview { |
| 64 | + margin: 42px auto 26px; |
| 65 | + width: min(620px, calc(100% - 70px)); |
| 66 | + aspect-ratio: 16 / 9; |
| 67 | + border: 1px solid #25313a; |
| 68 | + background: linear-gradient(120deg, rgba(94,234,212,.16), rgba(167,139,250,.10)), #0d1215; |
| 69 | + display: grid; |
| 70 | + place-items: center; |
| 71 | + color: rgba(244,246,244,.72); |
| 72 | + font-size: 26px; |
| 73 | + font-weight: 720; |
| 74 | + } |
| 75 | + .timeline { |
| 76 | + border-top: 1px solid var(--line); |
| 77 | + background: #0d1215; |
| 78 | + padding: 18px 20px; |
| 79 | + } |
| 80 | + .row { |
| 81 | + height: 28px; |
| 82 | + position: relative; |
| 83 | + margin-bottom: 12px; |
| 84 | + border: 1px solid #2a363d; |
| 85 | + background: #12181c; |
| 86 | + animation: clickRow 8s steps(1) infinite; |
| 87 | + } |
| 88 | + .row:nth-child(2) { animation-delay: 2s; } |
| 89 | + .row:nth-child(3) { animation-delay: 4s; } |
| 90 | + .bar { |
| 91 | + position: absolute; |
| 92 | + inset: 4px; |
| 93 | + background: rgba(94,234,212,.35); |
| 94 | + } |
| 95 | + .cursor { |
| 96 | + position: absolute; |
| 97 | + width: 18px; |
| 98 | + height: 18px; |
| 99 | + border: 2px solid var(--ink); |
| 100 | + border-radius: 50%; |
| 101 | + right: 22%; |
| 102 | + top: 4px; |
| 103 | + animation: cursor 8s linear infinite; |
| 104 | + } |
| 105 | + .status { |
| 106 | + grid-column: 1 / span 2; |
| 107 | + position: relative; |
| 108 | + border-top: 1px solid var(--line); |
| 109 | + background: #0b1013; |
| 110 | + } |
| 111 | + .progress { |
| 112 | + height: 4px; |
| 113 | + width: 100%; |
| 114 | + transform-origin: left; |
| 115 | + background: var(--ok); |
| 116 | + animation: progress 8s linear infinite; |
| 117 | + } |
| 118 | + .toast { |
| 119 | + position: absolute; |
| 120 | + right: 14px; |
| 121 | + top: 10px; |
| 122 | + color: #c7f8df; |
| 123 | + font-size: 13px; |
| 124 | + opacity: 0; |
| 125 | + animation: toast 8s linear infinite; |
| 126 | + } |
| 127 | + @keyframes clickRow { |
| 128 | + 0%, 20% { border-color: var(--accent); } |
| 129 | + 21%, 100% { border-color: #2a363d; } |
| 130 | + } |
| 131 | + @keyframes cursor { |
| 132 | + 0%, 18% { transform: translate(0, 0); opacity: 1; } |
| 133 | + 19%, 38% { transform: translate(-130px, 40px); opacity: 1; } |
| 134 | + 39%, 58% { transform: translate(-40px, 80px); opacity: 1; } |
| 135 | + 59%, 100% { transform: translate(-40px, 80px); opacity: 0; } |
| 136 | + } |
| 137 | + @keyframes progress { |
| 138 | + from { transform: scaleX(0); } |
| 139 | + to { transform: scaleX(1); } |
| 140 | + } |
| 141 | + @keyframes toast { |
| 142 | + 0%, 78% { opacity: 0; } |
| 143 | + 84%, 95% { opacity: 1; } |
| 144 | + 100% { opacity: 0; } |
| 145 | + } |
| 146 | + </style> |
| 147 | +</head> |
| 148 | +<body> |
| 149 | + <main class="stage"> |
| 150 | + <aside class="clips"> |
| 151 | + <div class="clip"><span class="mark"></span>全部</div> |
| 152 | + <div class="clip active"><span class="mark"></span>Intro</div> |
| 153 | + <div class="clip"><span class="mark"></span>Local Tracks</div> |
| 154 | + <div class="clip"><span class="mark"></span>Voice Timeline</div> |
| 155 | + </aside> |
| 156 | + <section class="preview">local preview stays mounted</section> |
| 157 | + <section class="timeline"> |
| 158 | + <div class="row"><span class="bar"></span><span class="cursor"></span></div> |
| 159 | + <div class="row"><span class="bar"></span></div> |
| 160 | + <div class="row"><span class="bar"></span></div> |
| 161 | + </section> |
| 162 | + <footer class="status"><div class="progress"></div><div class="toast">round complete</div></footer> |
| 163 | + </main> |
| 164 | +</body> |
| 165 | +</html> |
0 commit comments