From c6db18a00391824ffb9d3240799934190a944309 Mon Sep 17 00:00:00 2001 From: David Cervantes Caballero <3668610+dcervantes@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:48:12 +0200 Subject: [PATCH] redesing styles of buttons and mic --- css/styles.css | 43 +++++++++++++++++++++++++++++++++++- index.html | 56 ++++++++++++++++++++++++++++++++++++++++++----- js/main.js | 7 ------ js/recognition.js | 6 +++++ 4 files changed, 98 insertions(+), 14 deletions(-) diff --git a/css/styles.css b/css/styles.css index 8b29ab0..fea2a1f 100644 --- a/css/styles.css +++ b/css/styles.css @@ -70,6 +70,14 @@ h1 { .flashcard.incorrect { border: 3px solid red; } + +.button-section { + display: flex; + justify-content: space-between; + margin-top: 20px; + width: 100%; +} + .buttons, .input-section { display: flex; justify-content: center; @@ -86,10 +94,37 @@ button { border: none; cursor: pointer; transition: background-color 0.3s; + border-radius: 12px; +} + +.primary { + background-color: #0eb42a; + width: 100%; +} + +.primary-outline { + background-color: #00000000; + border: 2px solid #007bff; + width: 100%; } + +.secondary { + background-color: #6c757d; +} + button:hover { background-color: #0056b3; } + +.secondary:hover { + background-color:#aaa +} + +.primary:hover { + background-color: #0c7f24; + +} + input { border: 2px solid #444; width: 60%; @@ -110,9 +145,15 @@ input { background-color: #218838; } -#start-rec-btn.recording { +#start-rec-btn.recording, #recording-mic1.recording, #recording-mic2.recording { background-color: rgba(255, 0, 0, 0.514); transition: background-color 0.3s; + fill:#ffffff; +} + +#recording-mic-pad.recording { + fill: rgba(255, 0, 0, 0.514); + transition: background-color 0.3s; } #recognized-text { diff --git a/index.html b/index.html index 6d04524..bc64272 100644 --- a/index.html +++ b/index.html @@ -54,8 +54,15 @@

Levels:

- - + +
@@ -72,7 +79,27 @@

Levels:

- 🎙️ + + + + + + + + + + + + + + + +
0 | ❌ 0 @@ -84,9 +111,26 @@

Levels:

🏁

- - - +
+ + + +