diff --git a/web/demo.png b/web/demo.png index b1d6bd0..dd3a9c4 100644 Binary files a/web/demo.png and b/web/demo.png differ diff --git a/web/live_transcription.html b/web/live_transcription.html index d7bb4a7..8b6c29c 100644 --- a/web/live_transcription.html +++ b/web/live_transcription.html @@ -13,22 +13,25 @@ } #recordButton { - width: 80px; - height: 80px; + width: 50px; + height: 50px; border: none; border-radius: 50%; background-color: white; cursor: pointer; - transition: background-color 0.3s ease, transform 0.2s ease; + transition: all 0.3s ease; border: 1px solid rgb(233, 233, 233); display: flex; align-items: center; justify-content: center; + position: relative; } #recordButton.recording { - border: 1px solid rgb(216, 182, 182); - color: white; + width: 180px; + border-radius: 40px; + justify-content: flex-start; + padding-left: 20px; } #recordButton:active { @@ -37,26 +40,59 @@ /* Shape inside the button */ .shape-container { - width: 40px; - height: 40px; + width: 25px; + height: 25px; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + } + + .shape { + width: 25px; + height: 25px; + background-color: rgb(209, 61, 53); + border-radius: 50%; + transition: all 0.3s ease; + } + + #recordButton.recording .shape { + border-radius: 5px; + width: 25px; + height: 25px; + } + + /* Recording elements */ + .recording-info { + display: none; + align-items: center; + margin-left: 15px; + flex-grow: 1; + } + + #recordButton.recording .recording-info { + display: flex; + } + + .wave-container { + width: 60px; + height: 30px; + position: relative; display: flex; align-items: center; justify-content: center; } - .shape { - width: 40px; - height: 40px; - background-color: rgb(209, 61, 53); - border-radius: 50%; - transition: border-radius 0.3s ease, background-color 0.3s ease; + #waveCanvas { + width: 100%; + height: 100%; } - #recordButton.recording .shape { - border-radius: 10px; - width: 30px; - height: 30px; - + .timer { + font-size: 14px; + font-weight: 500; + color: #333; + margin-left: 10px; } #status { @@ -107,7 +143,7 @@ /* Speaker-labeled transcript area */ #linesTranscript { margin: 20px auto; - max-width: 600px; + max-width: 700px; text-align: left; font-size: 16px; } @@ -132,6 +168,8 @@ border-radius: 8px 8px 8px 8px; padding: 2px 10px; margin-left: 10px; + display: inline-block; + white-space: nowrap; font-size: 14px; margin-bottom: 0px; color: rgb(134, 134, 134) @@ -141,10 +179,12 @@ background-color: #ffffff66; border-radius: 8px 8px 8px 8px; padding: 2px 10px; + display: inline-block; + white-space: nowrap; margin-left: 10px; font-size: 14px; margin-bottom: 0px; - color: #7474746f + color: #000000 } #timeInfo { @@ -168,7 +208,7 @@ } .buffer_transcription { - color: #7474746f; + color: #7474748c; margin-left: 4px; } @@ -207,7 +247,6 @@ padding: 2px 10px; font-size: 14px; margin-bottom: 0px; - } @@ -219,6 +258,12 @@
${speakerLabel}