new: usr: add more stats and a dialog for the recent battle that can be shareable #4
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
.profile-page {
|
||||
max-width: 760px;
|
||||
max-width: 900px;
|
||||
margin: 0 auto;
|
||||
padding: 48px 24px 80px;
|
||||
display: flex;
|
||||
@@ -127,6 +127,38 @@
|
||||
border-color: rgba(246, 125, 82, 0.45);
|
||||
}
|
||||
}
|
||||
|
||||
&--draw {
|
||||
border-color: rgba(149, 207, 245, 0.15);
|
||||
|
||||
&:hover {
|
||||
border-color: rgba(149, 207, 245, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&--rate {
|
||||
border-color: rgba(168, 130, 255, 0.18);
|
||||
|
||||
&:hover {
|
||||
border-color: rgba(168, 130, 255, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&--avg {
|
||||
border-color: rgba(80, 200, 220, 0.18);
|
||||
|
||||
&:hover {
|
||||
border-color: rgba(80, 200, 220, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
&--best {
|
||||
border-color: rgba(255, 215, 0, 0.15);
|
||||
|
||||
&:hover {
|
||||
border-color: rgba(255, 215, 0, 0.4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.profile-stat__icon {
|
||||
@@ -145,6 +177,22 @@
|
||||
.profile-stat--bomb & {
|
||||
color: rgba(246, 125, 82, 0.25);
|
||||
}
|
||||
|
||||
.profile-stat--draw & {
|
||||
color: rgba(149, 207, 245, 0.35);
|
||||
}
|
||||
|
||||
.profile-stat--rate & {
|
||||
color: rgba(168, 130, 255, 0.35);
|
||||
}
|
||||
|
||||
.profile-stat--avg & {
|
||||
color: rgba(80, 200, 220, 0.35);
|
||||
}
|
||||
|
||||
.profile-stat--best & {
|
||||
color: rgba(255, 215, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.profile-stat__value {
|
||||
@@ -164,6 +212,28 @@
|
||||
.profile-stat--bomb & {
|
||||
color: rgba(246, 125, 82, 0.8);
|
||||
}
|
||||
|
||||
.profile-stat--draw & {
|
||||
color: #95cff5;
|
||||
}
|
||||
|
||||
.profile-stat--rate & {
|
||||
color: #c8a8ff;
|
||||
|
||||
small {
|
||||
font-size: 0.55em;
|
||||
opacity: 0.7;
|
||||
margin-left: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-stat--avg & {
|
||||
color: #50c8dc;
|
||||
}
|
||||
|
||||
.profile-stat--best & {
|
||||
color: #ffd700;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-stat__label {
|
||||
@@ -252,10 +322,13 @@
|
||||
border: 1px solid rgba(255, 255, 255, 0.055);
|
||||
border-left-width: 3px;
|
||||
font: 500 14px 'Rajdhani', sans-serif;
|
||||
transition: background 180ms ease;
|
||||
transition: background 180ms ease, border-color 180ms ease;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.045);
|
||||
background: rgba(255, 255, 255, 0.055);
|
||||
border-color: rgba(35, 111, 135, 0.35);
|
||||
border-left-width: 3px;
|
||||
}
|
||||
|
||||
&--win {
|
||||
@@ -332,6 +405,188 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.profile-charts {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.profile-chart-block {
|
||||
flex: 1 1 300px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(35, 111, 135, 0.2);
|
||||
border-radius: 10px;
|
||||
padding: 24px 20px 16px;
|
||||
backdrop-filter: blur(4px);
|
||||
box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
|
||||
.profile-section__title {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.profile-chart-inner {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
overflow: auto;
|
||||
|
||||
svg text {
|
||||
font-family: 'Rajdhani', sans-serif !important;
|
||||
}
|
||||
}
|
||||
|
||||
.bd {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.bd-header {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 24px 24px 0;
|
||||
}
|
||||
|
||||
.bd-header-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
.bd-label {
|
||||
font: 600 10px 'Rajdhani', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 3px;
|
||||
color: rgba(149, 207, 245, 0.4);
|
||||
}
|
||||
|
||||
.bd-title {
|
||||
font: 800 22px 'Rajdhani', sans-serif;
|
||||
color: #fff;
|
||||
letter-spacing: 1px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
i {
|
||||
color: rgba(149, 207, 245, 0.5);
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-share {
|
||||
background: rgba(35, 111, 135, 0.12);
|
||||
border: 1px solid rgba(35, 111, 135, 0.35);
|
||||
border-radius: 6px;
|
||||
color: rgba(149, 207, 245, 0.7);
|
||||
height: 32px;
|
||||
padding: 0 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
font: 600 11px 'Rajdhani', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1.5px;
|
||||
transition: all 180ms ease;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
background: rgba(35, 111, 135, 0.22);
|
||||
color: #95cff5;
|
||||
}
|
||||
|
||||
&--copied {
|
||||
background: rgba(42, 158, 96, 0.15);
|
||||
border-color: rgba(42, 158, 96, 0.4);
|
||||
color: #5ee89a;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-close {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 6px;
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: all 180ms ease;
|
||||
flex-shrink: 0;
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-vs-panel {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 28px 32px 24px;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.bd-vs-center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bd-vs-label {
|
||||
font: 800 11px 'Rajdhani', sans-serif;
|
||||
letter-spacing: 4px;
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.bd-vs-score {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
|
||||
&__red, &__blue {
|
||||
font: 800 52px 'Rajdhani', sans-serif;
|
||||
line-height: 1;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
&__red { color: #f67d52; text-shadow: 0 0 24px rgba(173, 10, 5, 0.5); }
|
||||
&__blue { color: #95cff5; text-shadow: 0 0 24px rgba(35, 111, 135, 0.5); }
|
||||
|
||||
&__sep {
|
||||
font: 800 32px 'Rajdhani', sans-serif;
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.bd-result-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 14px;
|
||||
border-radius: 20px;
|
||||
font: 700 12px 'Rajdhani', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.bd-stats {
|
||||
padding: 0 24px 24px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||
margin-top: 4px;
|
||||
padding-top: 16px;
|
||||
}
|
||||
|
||||
.profile-empty {
|
||||
text-align: center;
|
||||
padding: 48px 20px;
|
||||
@@ -360,3 +615,220 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bshare-page {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 48px 20px 80px;
|
||||
}
|
||||
|
||||
.bshare-card {
|
||||
width: 100%;
|
||||
max-width: 560px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(35, 111, 135, 0.25);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 64px rgba(0, 0, 0, 0.6);
|
||||
backdrop-filter: blur(4px);
|
||||
|
||||
&__eyebrow {
|
||||
padding: 18px 28px 0;
|
||||
font: 600 10px 'Rajdhani', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 3px;
|
||||
color: rgba(149, 207, 245, 0.4);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.bshare-vs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 24px 28px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.bshare-player {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
|
||||
&__name {
|
||||
font: 700 16px 'Rajdhani', sans-serif;
|
||||
letter-spacing: 0.5px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 120px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
&__side {
|
||||
font: 600 10px 'Rajdhani', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
color: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
&--red .bshare-player__name { color: #f67d52; }
|
||||
&--blue .bshare-player__name { color: #95cff5; }
|
||||
}
|
||||
|
||||
.bshare-avatar {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font: 800 24px 'Rajdhani', sans-serif;
|
||||
letter-spacing: 2px;
|
||||
|
||||
&--red {
|
||||
background: linear-gradient(135deg, rgba(173, 10, 5, 0.6) 0%, rgba(246, 125, 82, 0.4) 100%);
|
||||
border: 2px solid rgba(173, 10, 5, 0.5);
|
||||
box-shadow: 0 0 0 3px rgba(173, 10, 5, 0.12), 0 0 28px rgba(173, 10, 5, 0.3);
|
||||
color: #f67d52;
|
||||
}
|
||||
|
||||
&--blue {
|
||||
background: linear-gradient(135deg, rgba(35, 111, 135, 0.6) 0%, rgba(41, 128, 185, 0.4) 100%);
|
||||
border: 2px solid rgba(35, 111, 135, 0.5);
|
||||
box-shadow: 0 0 0 3px rgba(35, 111, 135, 0.12), 0 0 28px rgba(35, 111, 135, 0.3);
|
||||
color: #95cff5;
|
||||
}
|
||||
}
|
||||
|
||||
.bshare-vs__center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bshare-vs__label {
|
||||
font: 800 11px 'Rajdhani', sans-serif;
|
||||
letter-spacing: 4px;
|
||||
color: rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
.bshare-score {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 6px;
|
||||
|
||||
&__red, &__blue {
|
||||
font: 800 56px 'Rajdhani', sans-serif;
|
||||
line-height: 1;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
&__red { color: #f67d52; text-shadow: 0 0 24px rgba(173, 10, 5, 0.5); }
|
||||
&__blue { color: #95cff5; text-shadow: 0 0 24px rgba(35, 111, 135, 0.5); }
|
||||
|
||||
&__sep {
|
||||
font: 800 32px 'Rajdhani', sans-serif;
|
||||
color: rgba(255, 255, 255, 0.18);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&--na {
|
||||
font: 800 40px 'Rajdhani', sans-serif;
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.bshare-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 14px;
|
||||
border-radius: 20px;
|
||||
font: 700 12px 'Rajdhani', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
|
||||
&--red { background: rgba(173, 10, 5, 0.15); border: 1px solid rgba(173, 10, 5, 0.4); color: #f67d52; }
|
||||
&--blue { background: rgba(35, 111, 135, 0.15); border: 1px solid rgba(35, 111, 135, 0.4); color: #95cff5; }
|
||||
&--draw { background: rgba(149, 207, 245, 0.08); border: 1px solid rgba(149, 207, 245, 0.3); color: #95cff5; }
|
||||
}
|
||||
|
||||
.bshare-details {
|
||||
padding: 16px 28px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.bshare-detail {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font: 500 13px 'Rajdhani', sans-serif;
|
||||
color: rgba(255, 255, 255, 0.45);
|
||||
|
||||
i {
|
||||
width: 14px;
|
||||
color: rgba(149, 207, 245, 0.4);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
&--bomb {
|
||||
color: rgba(246, 125, 82, 0.7);
|
||||
|
||||
i { color: rgba(246, 125, 82, 0.5); }
|
||||
}
|
||||
}
|
||||
|
||||
.bshare-cta {
|
||||
padding: 20px 28px 28px;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.bshare-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 11px 20px;
|
||||
border-radius: 6px;
|
||||
font: 700 13px 'Rajdhani', sans-serif;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
text-decoration: none;
|
||||
transition: all 200ms ease;
|
||||
|
||||
background: linear-gradient(to bottom, #ad0a05 0%, #d4401a 55%, #f67d52 100%);
|
||||
border: 1px solid rgba(246, 125, 82, 0.3);
|
||||
color: #fff;
|
||||
box-shadow: 0 4px 20px rgba(173, 10, 5, 0.3);
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 6px 28px rgba(173, 10, 5, 0.55);
|
||||
transform: translateY(-2px);
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&--ghost {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
box-shadow: none;
|
||||
|
||||
&:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user