From fcd2945b7e7b686e60fded0672b06614adf66937 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 3 Mar 2025 13:19:13 +0100 Subject: Nicer score widget --- index.html | 157 +++++++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 122 insertions(+), 35 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 499dfce..8b8a81d 100644 --- a/index.html +++ b/index.html @@ -195,6 +195,68 @@ } } + .score-container { + margin-bottom: 20px; + width: 100%; + } + + .score-widget { + background-color: rgba(255, 255, 255, 0.1); + border-radius: 10px; + padding: 15px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + } + + .score-info { + display: flex; + flex-direction: column; + align-items: flex-start; + margin-right: 15px; + min-width: 100px; + } + + .score-label { + font-size: 18px; + margin-bottom: 5px; + color: rgba(255, 255, 255, 0.8); + } + + .score-value { + font-size: 24px; + font-weight: bold; + } + + .score-tracker { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 5px; + max-width: 100%; + margin-top: 5px; + } + + .score-dot { + width: 12px; + height: 12px; + border-radius: 50%; + margin: 2px; + transition: all 0.3s ease; + } + + .score-dot.correct { + background-color: #2ecc71; + box-shadow: 0 0 5px rgba(46, 204, 113, 0.7); + } + + .score-dot.incorrect { + background-color: #e74c3c; + box-shadow: 0 0 5px rgba(231, 76, 60, 0.7); + } + .feedback { height: 40px; margin-top: 30px; @@ -204,6 +266,39 @@ text-shadow: 0 0 10px rgba(243, 156, 18, 0.5); } + .footer { + margin-top: 30px; + padding: 15px; + text-align: center; + font-family: Arial, sans-serif; + font-size: 14px; + color: rgba(255, 255, 255, 0.7); + width: 100%; + } + + .footer a { + color: #3498db; + text-decoration: none; + font-weight: bold; + transition: color 0.3s; + } + + .footer a:hover { + color: #4aa3df; + text-decoration: underline; + } + + .title-link { + color: inherit; + text-decoration: none; + transition: color 0.3s; + } + + .title-link:hover { + color: #3498db; + text-shadow: 0 0 10px rgba(52, 152, 219, 0.7); + } + .score { font-size: 32px; font-weight: bold; @@ -277,39 +372,6 @@ vertical-align: middle; cursor: pointer; } - - .footer { - margin-top: 30px; - padding: 15px; - text-align: center; - font-family: Arial, sans-serif; - font-size: 14px; - color: rgba(255, 255, 255, 0.7); - width: 100%; - } - - .footer a { - color: #3498db; - text-decoration: none; - font-weight: bold; - transition: color 0.3s; - } - - .footer a:hover { - color: #4aa3df; - text-decoration: underline; - } - - .title-link { - color: inherit; - text-decoration: none; - transition: color 0.3s; - } - - .title-link:hover { - color: #3498db; - text-shadow: 0 0 10px rgba(52, 152, 219, 0.7); - } @@ -323,9 +385,19 @@