feat(lootboxes): add lootbox opening feature and images

This commit is contained in:
Jan-Marlon Leibl 2025-04-23 13:17:44 +02:00
parent 3c9d3ea8c0
commit e9d2f6e0ca
Signed by: jleibl
GPG key ID: 300B2F906DC6F1D5
15 changed files with 536 additions and 327 deletions

View file

@ -0,0 +1,98 @@
body {
background: linear-gradient(to bottom, #181c2a, #232c43);
}
.case-strip-outer {
position: relative;
width: 900px;
max-width: 100vw;
height: 120px;
margin: 0 auto;
overflow: hidden;
background: #232c43;
border-radius: 16px;
border: 2px solid #2d3748;
box-shadow: 0 4px 32px 0 #000a;
}
.case-strip-inner {
display: flex;
align-items: center;
height: 100%;
will-change: transform;
}
.case-strip-reward {
width: 120px;
height: 100px;
margin: 0 6px;
background: #1a2233;
border-radius: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 1.25rem;
font-weight: 600;
box-shadow: 0 2px 8px rgba(0,0,0,0.18);
border: 2px solid transparent;
transition: border-color 0.2s, color 0.2s;
}
.text-yellow-400 {
border-color: #facc15;
color: #facc15;
}
.text-purple-400 {
border-color: #a78bfa;
color: #a78bfa;
}
.text-blue-400 {
border-color: #60a5fa;
color: #60a5fa;
}
.case-strip-marker {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 6px;
height: 100%;
background: linear-gradient(to bottom, #facc15 60%, #fff0 100%);
z-index: 2;
border-radius: 3px;
box-shadow: 0 0 16px #facc15, 0 0 2px #fff;
pointer-events: none;
}
.open-btn {
background: linear-gradient(90deg, #facc15 0%, #a78bfa 100%);
color: #232c43;
font-size: 1.5rem;
font-weight: bold;
padding: 0.75rem 2.5rem;
border-radius: 999px;
border: none;
box-shadow: 0 2px 12px #0005;
transition: background 0.2s, color 0.2s, transform 0.1s;
cursor: pointer;
}
.open-btn:hover {
background: linear-gradient(90deg, #ffe066 0%, #c4b5fd 100%);
color: #181c2a;
transform: translateY(-2px) scale(1.04);
}
.loader {
border: 4px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
border-top: 4px solid #facc15;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}