From 61b18abc2a5ff6cc807f52fc4a635b31215106ad Mon Sep 17 00:00:00 2001 From: Sarthak5598 Date: Sat, 9 Mar 2024 08:51:41 +0530 Subject: [PATCH] Use QR Library instead of using API and Make a Nav button to display all the QRs!! #1971 --- website/templates/_leaderboard_widget.html | 107 ++++++++++++++++----- website/templates/profile.html | 89 ++++++++++++----- 2 files changed, 147 insertions(+), 49 deletions(-) diff --git a/website/templates/_leaderboard_widget.html b/website/templates/_leaderboard_widget.html index b7da14486..a51598486 100644 --- a/website/templates/_leaderboard_widget.html +++ b/website/templates/_leaderboard_widget.html @@ -31,20 +31,61 @@ } .crypto-name { - text-align: center; - font-size: 20px; - color: white; - font-weight: bold; - background-color: #ff4444; - border-radius: 10px; - display: inline-block; - margin-left: auto ; - } + text-align: center; + width: 100%; + font-size: 20px; + color: white; + background-color: #ff4444; + display: inline-block; + margin: 0 auto; /* Center the element horizontally */ +} .slideshow { margin-top: 50px; } + .navigation { + position: absolute; + top: 0; + left: 50%; + transform: translateX(-50%); + display: flex; + justify-content: center; + } + + .nav-btn { + width: 70px; + height: 40px; + border: 1px solid #0e0d0d; + margin: 6px; + cursor: pointer; + transition: 0.4s; + } + .nav-btn.active { + background: red; /* Change to whatever red color you prefer */ + color: white; /* Change text color to contrast with the red background */ + } + .nav-btn:hover { + background: #fff; + } + + input[name="r"] { + position: absolute; + visibility: hidden; + } + + #btc:checked ~ .s1 { + margin-left: -20%; + } + + #eth:checked ~ .s1 { + margin-left: -40%; + } + + #bch:checked ~ .s1 { + margin-left: -60%; + } +
LEADERBOARD
@@ -102,13 +143,17 @@ TIP: -
- -

Bitcoin

- + + + +
QR Code +

@@ -127,25 +172,28 @@
{% comment %} positions the leaderboard rightmost {% endcomment %}