|
3 | 3 | <head> |
4 | 4 | <meta charset="UTF-8" /> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | | - <title>Music Lyric Kit</title> |
| 6 | + <title>Music Lyric Parser</title> |
| 7 | + <style> |
| 8 | + :root { |
| 9 | + --primary-color: #007aff; |
| 10 | + --bg-color: #f5f5f7; |
| 11 | + --card-bg: #ffffff; |
| 12 | + --text-color: #333; |
| 13 | + --border-color: #e0e0e0; |
| 14 | + } |
| 15 | + |
| 16 | + body { |
| 17 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; |
| 18 | + background-color: var(--bg-color); |
| 19 | + color: var(--text-color); |
| 20 | + margin: 0; |
| 21 | + padding: 20px; |
| 22 | + min-height: 100vh; |
| 23 | + display: flex; |
| 24 | + flex-direction: column; |
| 25 | + align-items: center; |
| 26 | + } |
| 27 | + |
| 28 | + h1 { |
| 29 | + text-align: center; |
| 30 | + margin-bottom: 30px; |
| 31 | + font-weight: 600; |
| 32 | + } |
| 33 | + |
| 34 | + .main-container { |
| 35 | + width: 100%; |
| 36 | + max-width: 1200px; |
| 37 | + display: flex; |
| 38 | + flex-direction: column; |
| 39 | + gap: 20px; |
| 40 | + } |
| 41 | + |
| 42 | + .input-grid { |
| 43 | + display: grid; |
| 44 | + grid-template-columns: repeat(2, 1fr); |
| 45 | + gap: 20px; |
| 46 | + width: 100%; |
| 47 | + } |
| 48 | + |
| 49 | + @media (max-width: 768px) { |
| 50 | + .input-grid { |
| 51 | + grid-template-columns: 1fr; |
| 52 | + } |
| 53 | + } |
| 54 | + |
| 55 | + .input-group { |
| 56 | + display: flex; |
| 57 | + flex-direction: column; |
| 58 | + background: var(--card-bg); |
| 59 | + padding: 15px; |
| 60 | + border-radius: 12px; |
| 61 | + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); |
| 62 | + } |
| 63 | + |
| 64 | + .input-group label { |
| 65 | + font-weight: 600; |
| 66 | + margin-bottom: 10px; |
| 67 | + color: #666; |
| 68 | + font-size: 0.9em; |
| 69 | + text-transform: uppercase; |
| 70 | + letter-spacing: 0.5px; |
| 71 | + } |
| 72 | + |
| 73 | + textarea { |
| 74 | + width: 100%; |
| 75 | + height: 200px; |
| 76 | + padding: 12px; |
| 77 | + border: 1px solid var(--border-color); |
| 78 | + border-radius: 8px; |
| 79 | + resize: vertical; |
| 80 | + font-family: 'Menlo', 'Monaco', 'Courier New', monospace; |
| 81 | + font-size: 13px; |
| 82 | + line-height: 1.4; |
| 83 | + box-sizing: border-box; |
| 84 | + outline: none; |
| 85 | + transition: border-color 0.2s; |
| 86 | + } |
| 87 | + |
| 88 | + textarea:focus { |
| 89 | + border-color: var(--primary-color); |
| 90 | + } |
| 91 | + |
| 92 | + .action-area { |
| 93 | + display: flex; |
| 94 | + justify-content: center; |
| 95 | + margin: 10px 0; |
| 96 | + } |
| 97 | + |
| 98 | + button { |
| 99 | + background-color: var(--primary-color); |
| 100 | + color: white; |
| 101 | + border: none; |
| 102 | + padding: 12px 40px; |
| 103 | + font-size: 16px; |
| 104 | + font-weight: 600; |
| 105 | + border-radius: 25px; |
| 106 | + cursor: pointer; |
| 107 | + transition: |
| 108 | + transform 0.1s, |
| 109 | + box-shadow 0.2s; |
| 110 | + box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); |
| 111 | + } |
| 112 | + |
| 113 | + button:hover { |
| 114 | + transform: translateY(-1px); |
| 115 | + box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4); |
| 116 | + } |
| 117 | + |
| 118 | + button:active { |
| 119 | + transform: translateY(1px); |
| 120 | + } |
| 121 | + |
| 122 | + .result-container { |
| 123 | + background: var(--card-bg); |
| 124 | + padding: 20px; |
| 125 | + border-radius: 12px; |
| 126 | + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); |
| 127 | + width: 100%; |
| 128 | + box-sizing: border-box; |
| 129 | + display: flex; |
| 130 | + flex-direction: column; |
| 131 | + } |
| 132 | + |
| 133 | + .result-container h2 { |
| 134 | + margin-top: 0; |
| 135 | + font-size: 1.2em; |
| 136 | + color: #666; |
| 137 | + } |
| 138 | + |
| 139 | + pre { |
| 140 | + background: #1e1e1e; |
| 141 | + color: #d4d4d4; |
| 142 | + padding: 20px; |
| 143 | + border-radius: 8px; |
| 144 | + overflow-x: auto; |
| 145 | + font-family: 'Menlo', 'Monaco', 'Courier New', monospace; |
| 146 | + font-size: 13px; |
| 147 | + white-space: pre-wrap; |
| 148 | + word-wrap: break-word; |
| 149 | + } |
| 150 | + </style> |
7 | 151 | <script type="module" src="./index.ts"></script> |
8 | 152 | </head> |
9 | | - <body></body> |
| 153 | + <body> |
| 154 | + <div class="main-container"> |
| 155 | + <h1>Music Lyric Parser</h1> |
| 156 | + |
| 157 | + <div class="input-grid"> |
| 158 | + <div class="input-group"> |
| 159 | + <label for="input-original">Original Lyrics</label> |
| 160 | + <textarea id="input-original" placeholder="Paste original lyrics here..."></textarea> |
| 161 | + </div> |
| 162 | + <div class="input-group"> |
| 163 | + <label for="input-syllable">Syllable Lyrics</label> |
| 164 | + <textarea id="input-syllable" placeholder="Paste syllable lyrics here..."></textarea> |
| 165 | + </div> |
| 166 | + <div class="input-group"> |
| 167 | + <label for="input-translate">Translation</label> |
| 168 | + <textarea id="input-translate" placeholder="Paste translation here..."></textarea> |
| 169 | + </div> |
| 170 | + <div class="input-group"> |
| 171 | + <label for="input-roman">Romanization</label> |
| 172 | + <textarea id="input-roman" placeholder="Paste romanization here..."></textarea> |
| 173 | + </div> |
| 174 | + </div> |
| 175 | + |
| 176 | + <div class="action-area"> |
| 177 | + <button id="btn-parse">Parse Lyrics</button> |
| 178 | + </div> |
| 179 | + |
| 180 | + <div class="result-container"> |
| 181 | + <h2>Parse Result</h2> |
| 182 | + <pre id="output-result">// Result will appear here...</pre> |
| 183 | + </div> |
| 184 | + </div> |
| 185 | + </body> |
10 | 186 | </html> |
0 commit comments