From 30ca40f16018c3602a9b6cc9acafe55393b56a20 Mon Sep 17 00:00:00 2001 From: Alv24-hub Date: Mon, 22 Jun 2026 01:20:38 +0300 Subject: [PATCH 1/2] Fix: Consistent button styling --- web-app/css/styles.css | 185 ++++++ .../js/projects/coordinate-polar-transform.js | 46 +- web-app/js/projects/derivative-calculator.js | 55 +- web-app/js/projects/fibonacci.js | 78 +-- web-app/js/projects/pascal-triangle.js | 572 ++++++++---------- web-app/js/projects/progression-recognizer.js | 11 +- 6 files changed, 528 insertions(+), 419 deletions(-) diff --git a/web-app/css/styles.css b/web-app/css/styles.css index e3f18e4b..c92534e6 100644 --- a/web-app/css/styles.css +++ b/web-app/css/styles.css @@ -6760,3 +6760,188 @@ body.sidebar-collapsed .sidebar-dock .sidebar-footer button { border-color: var(--danger); color: var(--danger); } +} + +/* ============================================ + FIX: Coordinate to Polar Convert Button - GREEN GLOW + ============================================ */ +.coord-actions .btn-primary#convertCoordinateBtn { + background: linear-gradient(135deg, #22c55e, #16a34a) !important; + color: #ffffff !important; + border: none !important; + padding: 16px 44px !important; + border-radius: 50px !important; + cursor: pointer !important; + font-size: 1.1rem !important; + font-weight: 700 !important; + transition: all 0.3s ease !important; + box-shadow: 0 0 30px rgba(34, 197, 94, 0.35), 0 4px 20px rgba(34, 197, 94, 0.25) !important; + min-width: 180px !important; + height: auto !important; + line-height: 1.5 !important; + letter-spacing: 0.5px !important; + text-transform: none !important; + font-family: 'Space Grotesk', system-ui, sans-serif !important; +} + +.coord-actions .btn-primary#convertCoordinateBtn:hover { + transform: translateY(-4px) !important; + box-shadow: 0 0 50px rgba(34, 197, 94, 0.5), 0 8px 35px rgba(34, 197, 94, 0.4) !important; + background: linear-gradient(135deg, #4ade80, #22c55e) !important; + color: #ffffff !important; +} + +.coord-actions .btn-primary#convertCoordinateBtn:active { + transform: scale(0.95) !important; + box-shadow: 0 0 20px rgba(34, 197, 94, 0.2), 0 2px 10px rgba(34, 197, 94, 0.15) !important; +} + +/* ============================================ + FIX: AP/GP/AGP/HP Recognizer - Recognize Button - GREEN GLOW + ============================================ */ +#recognizeProgressionBtn { + background: linear-gradient(135deg, #22c55e, #16a34a) !important; + color: #ffffff !important; + border: none !important; + padding: 16px 48px !important; + border-radius: 50px !important; + cursor: pointer !important; + font-size: 1.1rem !important; + font-weight: 700 !important; + transition: all 0.3s ease !important; + box-shadow: 0 0 30px rgba(34, 197, 94, 0.35), 0 4px 20px rgba(34, 197, 94, 0.25) !important; + min-width: 200px !important; + letter-spacing: 0.5px !important; + font-family: 'Space Grotesk', system-ui, sans-serif !important; + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + gap: 8px !important; + line-height: 1.5 !important; +} + +#recognizeProgressionBtn:hover { + transform: translateY(-4px) !important; + box-shadow: 0 0 50px rgba(34, 197, 94, 0.5), 0 8px 35px rgba(34, 197, 94, 0.4) !important; + background: linear-gradient(135deg, #4ade80, #22c55e) !important; + color: #ffffff !important; +} + +#recognizeProgressionBtn:active { + transform: scale(0.95) !important; + box-shadow: 0 0 20px rgba(34, 197, 94, 0.2), 0 2px 10px rgba(34, 197, 94, 0.15) !important; +} + +/* ============================================ + FIX: Derivative Calculator - All Buttons - GREEN GLOW (Smaller) + ============================================ */ +#calcFirstDerivativeBtn, +#calcNthDerivativeBtn, +#evalDerivativeBtn { + background: linear-gradient(135deg, #22c55e, #16a34a) !important; + color: #ffffff !important; + border: none !important; + padding: 10px 22px !important; + border-radius: 50px !important; + cursor: pointer !important; + font-size: 0.9rem !important; + font-weight: 600 !important; + transition: all 0.3s ease !important; + box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 4px 12px rgba(34, 197, 94, 0.2) !important; + min-width: 120px !important; + letter-spacing: 0.3px !important; + font-family: 'Space Grotesk', system-ui, sans-serif !important; + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + gap: 6px !important; + line-height: 1.5 !important; +} + +#calcFirstDerivativeBtn:hover, +#calcNthDerivativeBtn:hover, +#evalDerivativeBtn:hover { + transform: translateY(-3px) !important; + box-shadow: 0 0 35px rgba(34, 197, 94, 0.5), 0 8px 25px rgba(34, 197, 94, 0.4) !important; + background: linear-gradient(135deg, #4ade80, #22c55e) !important; + color: #ffffff !important; +} + +#calcFirstDerivativeBtn:active, +#calcNthDerivativeBtn:active, +#evalDerivativeBtn:active { + transform: scale(0.95) !important; + box-shadow: 0 0 15px rgba(34, 197, 94, 0.2), 0 2px 10px rgba(34, 197, 94, 0.15) !important; +} + +/* ============================================ + FIX: Fibonacci Series - Generate Button - GREEN GLOW (Smaller) + ============================================ */ +#generateFib { + background: linear-gradient(135deg, #22c55e, #16a34a) !important; + color: #ffffff !important; + border: none !important; + padding: 10px 28px !important; + border-radius: 50px !important; + cursor: pointer !important; + font-size: 0.9rem !important; + font-weight: 600 !important; + transition: all 0.3s ease !important; + box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 4px 12px rgba(34, 197, 94, 0.2) !important; + min-width: 120px !important; + letter-spacing: 0.3px !important; + font-family: 'Space Grotesk', system-ui, sans-serif !important; + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + gap: 6px !important; + line-height: 1.5 !important; +} + +#generateFib:hover { + transform: translateY(-3px) !important; + box-shadow: 0 0 35px rgba(34, 197, 94, 0.5), 0 8px 25px rgba(34, 197, 94, 0.4) !important; + background: linear-gradient(135deg, #4ade80, #22c55e) !important; + color: #ffffff !important; +} + +#generateFib:active { + transform: scale(0.95) !important; + box-shadow: 0 0 15px rgba(34, 197, 94, 0.2), 0 2px 10px rgba(34, 197, 94, 0.15) !important; +} + +/* ============================================ + FIX: Pascal's Triangle - Generate Button - GREEN GLOW + ============================================ */ +#generatePascal { + background: linear-gradient(135deg, #22c55e, #16a34a) !important; + color: #ffffff !important; + border: none !important; + padding: 12px 28px !important; + border-radius: 50px !important; + cursor: pointer !important; + font-size: 0.9rem !important; + font-weight: 600 !important; + transition: all 0.3s ease !important; + box-shadow: 0 0 20px rgba(34, 197, 94, 0.3), 0 4px 12px rgba(34, 197, 94, 0.2) !important; + min-width: 120px !important; + letter-spacing: 0.3px !important; + font-family: 'Space Grotesk', system-ui, sans-serif !important; + display: inline-flex !important; + align-items: center !important; + justify-content: center !important; + gap: 6px !important; + line-height: 1.5 !important; +} + +#generatePascal:hover { + transform: translateY(-3px) !important; + box-shadow: 0 0 35px rgba(34, 197, 94, 0.5), 0 8px 25px rgba(34, 197, 94, 0.4) !important; + background: linear-gradient(135deg, #4ade80, #22c55e) !important; + color: #ffffff !important; +} + +#generatePascal:active { + transform: scale(0.95) !important; + box-shadow: 0 0 15px rgba(34, 197, 94, 0.2), 0 2px 10px rgba(34, 197, 94, 0.15) !important; +} \ No newline at end of file diff --git a/web-app/js/projects/coordinate-polar-transform.js b/web-app/js/projects/coordinate-polar-transform.js index c50a364d..2de89507 100644 --- a/web-app/js/projects/coordinate-polar-transform.js +++ b/web-app/js/projects/coordinate-polar-transform.js @@ -31,7 +31,7 @@ function getCoordinatePolarTransformHTML() { - `; diff --git a/web-app/js/projects/derivative-calculator.js b/web-app/js/projects/derivative-calculator.js index 55b0c80b..99375522 100644 --- a/web-app/js/projects/derivative-calculator.js +++ b/web-app/js/projects/derivative-calculator.js @@ -45,11 +45,33 @@ function getDerivativeCalculatorHTML() { line-height: 1.6; } + .control-group { + display: flex; + flex-direction: column; + gap: 0.45rem; + text-align: left; + } + + .control-group label { + font-weight: 600; + color: var(--text-secondary); + } + + .control-group input { + padding: 0.7rem; + border: 2px solid var(--border-color); + border-radius: 10px; + background: var(--surface-color); + color: var(--text-primary); + font-size: 1rem; + width: 100%; + } + .derivative-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; - margin-top: 1rem; + margin: 1rem 0; } .derivative-actions { @@ -70,37 +92,6 @@ function getDerivativeCalculatorHTML() { min-height: 110px; line-height: 1.7; } - input { - padding: 15px; - border-radius: 30px; - background-color: var(--bg-color); - outline: none; - border: 1px solid var(--border-color); - color: var(--text-color); - width: 100%; - } - - button { - background: var(--primary-color); - color: white; - border: none; - padding: 12px 24px; - border-radius: 30px; - cursor: pointer; - font-weight: 600; - font-size: 0.95rem; - transition: all 0.2s ease; - } - - button:hover { - transform: translateY(-2px); - box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); - filter: brightness(1.05); - } - - button:active { - transform: translateY(0); - } `; } diff --git a/web-app/js/projects/fibonacci.js b/web-app/js/projects/fibonacci.js index d3fd760a..af01c495 100644 --- a/web-app/js/projects/fibonacci.js +++ b/web-app/js/projects/fibonacci.js @@ -17,11 +17,45 @@ function getFibonacciHTML() { - `; diff --git a/web-app/js/projects/pascal-triangle.js b/web-app/js/projects/pascal-triangle.js index 943df7b6..faf94c8f 100644 --- a/web-app/js/projects/pascal-triangle.js +++ b/web-app/js/projects/pascal-triangle.js @@ -53,312 +53,272 @@ function getPascalTriangleHTML() { - + `; } diff --git a/web-app/js/projects/progression-recognizer.js b/web-app/js/projects/progression-recognizer.js index 7c24a3b4..afea5660 100644 --- a/web-app/js/projects/progression-recognizer.js +++ b/web-app/js/projects/progression-recognizer.js @@ -21,7 +21,7 @@ function getProgressionRecognizerHTML() { - `; } From 1464c5aebbf09efaf9b8b6320e2c4b640cf4d501 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 22 Jun 2026 04:43:29 +0000 Subject: [PATCH 2/2] docs: update contributor gallery [skip ci] --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c7391574..e4b437c6 100644 --- a/README.md +++ b/README.md @@ -1185,6 +1185,12 @@ These standalone Python project files do not have a browser counterpart yet and + + + yughpatel
+ @yughpatel +
+ yuvraj-k-singh
@@ -1195,7 +1201,6 @@ These standalone Python project files do not have a browser counterpart yet and -