Spaces:
Running
Running
Apply this button border trail animation for all buttons
Browse files.neon-button::before {
--a: 0turn;
content: "";
position: absolute;
inset: 0;
border-radius: 9999px;
padding: 3px; /* Border thickness */
background: conic-gradient(from var(--a),
rgba(255,0,0,.9),
rgba(255,165,0,.9),
rgba(255,255,0,.9),
rgba(0,255,255,.9),
rgba(128,0,128,.9),
rgba(255,0,0,.9));
animation: border-spin 3s linear infinite;
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;
- index.html +26 -20
index.html
CHANGED
|
@@ -74,7 +74,7 @@
|
|
| 74 |
position: absolute;
|
| 75 |
inset: 0;
|
| 76 |
border-radius: 9999px;
|
| 77 |
-
padding:
|
| 78 |
background: conic-gradient(from var(--a),
|
| 79 |
rgba(255,0,0,.9),
|
| 80 |
rgba(255,165,0,.9),
|
|
@@ -96,13 +96,9 @@
|
|
| 96 |
right: 2px;
|
| 97 |
bottom: 2px;
|
| 98 |
background: rgba(30, 30, 30, 0.9);
|
| 99 |
-
border-radius:
|
| 100 |
z-index: -1;
|
| 101 |
}
|
| 102 |
-
@keyframes border-spin {
|
| 103 |
-
0% { --a: 0turn; }
|
| 104 |
-
100% { --a: 1turn; }
|
| 105 |
-
}
|
| 106 |
.pill-button:hover {
|
| 107 |
box-shadow: 0 0 10px 2px;
|
| 108 |
}
|
|
@@ -182,6 +178,11 @@
|
|
| 182 |
.accordion[aria-expanded="true"] .accordion-content {
|
| 183 |
max-height: 500px;
|
| 184 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
@keyframes glow {
|
| 186 |
0% { box-shadow: 0 0 0px 0px rgba(255, 106, 0, 0.6); }
|
| 187 |
50% { box-shadow: 0 0 10px 3px rgba(255, 106, 0, 0.8); }
|
|
@@ -201,7 +202,12 @@
|
|
| 201 |
.bg-orange-accent-gradient {
|
| 202 |
background: linear-gradient(90deg, #FF6A00, transparent);
|
| 203 |
}
|
| 204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
|
| 206 |
/* Mobile specific */
|
| 207 |
@media (max-width: 1023px) {
|
|
@@ -233,11 +239,11 @@
|
|
| 233 |
</p>
|
| 234 |
|
| 235 |
<div class="flex flex-wrap justify-center gap-4 mb-12">
|
| 236 |
-
|
| 237 |
-
<span>Purchase SC</span>
|
| 238 |
</button>
|
| 239 |
-
|
| 240 |
-
<span>Redeem Now</span>
|
| 241 |
</button>
|
| 242 |
</div>
|
| 243 |
|
|
@@ -253,11 +259,11 @@
|
|
| 253 |
<div class="max-w-7xl mx-auto px-4 md:px-8 py-8 md:py-10">
|
| 254 |
<!-- Sticky CTA bar for mobile -->
|
| 255 |
<div class="sticky-cta-bar flex justify-center gap-3 md:hidden mb-6">
|
| 256 |
-
|
| 257 |
-
<span>Deposit SC</span>
|
| 258 |
</button>
|
| 259 |
-
|
| 260 |
-
<span>Withdraw</span>
|
| 261 |
</button>
|
| 262 |
</div>
|
| 263 |
|
|
@@ -346,9 +352,9 @@
|
|
| 346 |
</div>
|
| 347 |
|
| 348 |
<div class="flex flex-wrap gap-3">
|
| 349 |
-
<button class="pill-button pill-button-secondary bg-[rgba(0,228,255,0.15)]
|
| 350 |
-
<button id="btn-convert" class="pill-button pill-button-primary
|
| 351 |
-
<button class="flex items-center gap-2 px-4 py-2 rounded-full border border-[rgba(255,255,255,0.15)] hover:border-[#FF6A00] transition">
|
| 352 |
<span>View Withdrawal History</span>
|
| 353 |
<i data-feather="chevron-right" class="w-4 h-4"></i>
|
| 354 |
</button>
|
|
@@ -461,8 +467,8 @@
|
|
| 461 |
</div>
|
| 462 |
<h4 class="font-medium mb-2">No transactions yet</h4>
|
| 463 |
<p class="text-[#B8B8B8] mb-6">Top up your wallet to get started</p>
|
| 464 |
-
|
| 465 |
-
</div>
|
| 466 |
</td>
|
| 467 |
</tr>
|
| 468 |
</tbody>
|
|
|
|
| 74 |
position: absolute;
|
| 75 |
inset: 0;
|
| 76 |
border-radius: 9999px;
|
| 77 |
+
padding: 3px;
|
| 78 |
background: conic-gradient(from var(--a),
|
| 79 |
rgba(255,0,0,.9),
|
| 80 |
rgba(255,165,0,.9),
|
|
|
|
| 96 |
right: 2px;
|
| 97 |
bottom: 2px;
|
| 98 |
background: rgba(30, 30, 30, 0.9);
|
| 99 |
+
border-radius: 100px;
|
| 100 |
z-index: -1;
|
| 101 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
.pill-button:hover {
|
| 103 |
box-shadow: 0 0 10px 2px;
|
| 104 |
}
|
|
|
|
| 178 |
.accordion[aria-expanded="true"] .accordion-content {
|
| 179 |
max-height: 500px;
|
| 180 |
}
|
| 181 |
+
@keyframes border-spin {
|
| 182 |
+
to {
|
| 183 |
+
--a: 1turn;
|
| 184 |
+
}
|
| 185 |
+
}
|
| 186 |
@keyframes glow {
|
| 187 |
0% { box-shadow: 0 0 0px 0px rgba(255, 106, 0, 0.6); }
|
| 188 |
50% { box-shadow: 0 0 10px 3px rgba(255, 106, 0, 0.8); }
|
|
|
|
| 202 |
.bg-orange-accent-gradient {
|
| 203 |
background: linear-gradient(90deg, #FF6A00, transparent);
|
| 204 |
}
|
| 205 |
+
@property --a {
|
| 206 |
+
syntax: '<angle>';
|
| 207 |
+
inherits: false;
|
| 208 |
+
initial-value: 0turn;
|
| 209 |
+
}
|
| 210 |
+
.flex-\[0_0_auto\] { flex: 0 0 auto; }
|
| 211 |
|
| 212 |
/* Mobile specific */
|
| 213 |
@media (max-width: 1023px) {
|
|
|
|
| 239 |
</p>
|
| 240 |
|
| 241 |
<div class="flex flex-wrap justify-center gap-4 mb-12">
|
| 242 |
+
<button id="btn-deposit" class="pill-button pill-button-primary px-8 py-3 text-lg">
|
| 243 |
+
<span>Purchase SC</span>
|
| 244 |
</button>
|
| 245 |
+
<button id="btn-withdraw" class="pill-button pill-button-secondary px-8 py-3 text-lg">
|
| 246 |
+
<span>Redeem Now</span>
|
| 247 |
</button>
|
| 248 |
</div>
|
| 249 |
|
|
|
|
| 259 |
<div class="max-w-7xl mx-auto px-4 md:px-8 py-8 md:py-10">
|
| 260 |
<!-- Sticky CTA bar for mobile -->
|
| 261 |
<div class="sticky-cta-bar flex justify-center gap-3 md:hidden mb-6">
|
| 262 |
+
<button class="pill-button pill-button-primary">
|
| 263 |
+
<span>Deposit SC</span>
|
| 264 |
</button>
|
| 265 |
+
<button class="pill-button pill-button-secondary">
|
| 266 |
+
<span>Withdraw</span>
|
| 267 |
</button>
|
| 268 |
</div>
|
| 269 |
|
|
|
|
| 352 |
</div>
|
| 353 |
|
| 354 |
<div class="flex flex-wrap gap-3">
|
| 355 |
+
<button class="pill-button pill-button-secondary bg-[rgba(0,228,255,0.15)]">Redeem Balance</button>
|
| 356 |
+
<button id="btn-convert" class="pill-button pill-button-primary">Payment Method</button>
|
| 357 |
+
<button class="flex items-center gap-2 px-4 py-2 rounded-full border border-[rgba(255,255,255,0.15)] hover:border-[#FF6A00] transition">
|
| 358 |
<span>View Withdrawal History</span>
|
| 359 |
<i data-feather="chevron-right" class="w-4 h-4"></i>
|
| 360 |
</button>
|
|
|
|
| 467 |
</div>
|
| 468 |
<h4 class="font-medium mb-2">No transactions yet</h4>
|
| 469 |
<p class="text-[#B8B8B8] mb-6">Top up your wallet to get started</p>
|
| 470 |
+
<button class="pill-button pill-button-primary px-6">Claim Your First Purchase Package</button>
|
| 471 |
+
</div>
|
| 472 |
</td>
|
| 473 |
</tr>
|
| 474 |
</tbody>
|