feat: add characters tab

This commit is contained in:
2026-06-18 21:05:19 -03:00
parent 7eb6656f2a
commit 08b5815b95
2 changed files with 432 additions and 0 deletions
+290
View File
@@ -0,0 +1,290 @@
.container {
padding: 3rem 4rem;
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
}
/*
header
*/
.header {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 2px solid #1a1a1a;
flex-shrink: 0;
}
.title {
font-size: 2.25rem;
text-transform: uppercase;
color: #ffffff;
letter-spacing: 0.05em;
margin: 0 0 0.25rem 0;
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}
.subtitle {
font-size: 0.8rem;
color: #555555;
text-transform: uppercase;
letter-spacing: 0.1em;
margin: 0;
}
/*
toolbar
*/
.toolbar {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.5rem;
flex-shrink: 0;
flex-wrap: wrap;
}
.searchInput {
background: #0d0d0d;
border: 1px solid #1a1a1a;
color: #c9c9c9;
padding: 0.6rem 1rem;
font-family: 'Roboto Condensed', sans-serif;
font-size: 0.85rem;
width: 240px;
transition: border-color 0.15s ease;
}
.searchInput::placeholder {
color: #444444;
}
.searchInput:focus {
outline: none;
border-color: #a30000;
}
.roleFilter {
display: flex;
gap: 0;
border: 1px solid #1a1a1a;
}
.roleBtn {
background: transparent;
border: none;
border-right: 1px solid #1a1a1a;
color: #555555;
padding: 0.6rem 1.1rem;
font-family: 'Oswald', sans-serif;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
cursor: pointer;
transition: all 0.15s ease;
}
.roleBtn:last-child {
border-right: none;
}
.roleBtn:hover {
color: #ffffff;
background: #1a0000;
}
.roleBtnActive {
background: #1a0000;
color: #ffffff;
border-color: #a30000;
box-shadow: inset 3px 0 0 #a30000;
}
.spacer {
flex: 1;
}
.unlockAllBtn {
background: transparent;
border: 1px solid #4a0000;
color: #a30000;
padding: 0.6rem 1.25rem;
font-family: 'Oswald', sans-serif;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.08em;
cursor: pointer;
transition: all 0.2s ease;
}
.unlockAllBtn:hover {
background: #a30000;
color: #ffffff;
border-color: #ff0000;
box-shadow: 0 0 12px rgba(163, 0, 0, 0.4);
}
.lockAllBtn {
background: transparent;
border: 1px solid #3d3d3d;
color: #dddddd;
padding: 0.6rem 1.25rem;
font-family: 'Oswald', sans-serif;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.08em;
cursor: pointer;
transition: all 0.2s ease;
}
.lockAllBtn:hover {
background: #000000;
color: #ffffff;
border-color: #303030;
box-shadow: 0 0 12px rgba(165, 165, 165, 0.4);
}
.clearBtn {
background: transparent;
border: 1px solid #1a1a1a;
color: #444444;
padding: 0.6rem 1.25rem;
font-family: 'Oswald', sans-serif;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.08em;
cursor: pointer;
transition: all 0.15s ease;
}
.clearBtn:hover {
color: #888888;
border-color: #333333;
}
.resultCount {
font-size: 0.75rem;
color: #444444;
text-transform: uppercase;
letter-spacing: 0.08em;
font-family: 'Oswald', sans-serif;
}
/*
char stuff
*/
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 1rem;
overflow-y: auto;
flex: 1;
align-content: start;
padding-right: 0.5rem;
}
.card {
background: #0d0d0d;
border: 1px solid #1a1a1a;
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem 0.75rem 0.75rem;
gap: 0.5rem;
cursor: pointer;
transition: all 0.15s ease;
position: relative;
user-select: none;
}
.card:hover {
border-color: #333333;
background: #111111;
}
.cardUnlocked {
border-color: #a30000;
background: #0d0000;
}
.cardUnlocked:hover {
border-color: #cc0000;
background: #110000;
box-shadow: 0 0 16px rgba(163, 0, 0, 0.2);
}
.cardIcon {
width: 72px;
height: 72px;
object-fit: contain;
filter: grayscale(1) brightness(0.4);
transition: filter 0.15s ease;
}
.cardUnlocked .cardIcon {
filter: none;
}
.card:hover .cardIcon {
filter: grayscale(0.3) brightness(0.7);
}
.cardUnlocked:hover .cardIcon {
filter: none;
}
.cardName {
font-size: 0.72rem;
text-align: center;
color: #555555;
text-transform: uppercase;
letter-spacing: 0.04em;
line-height: 1.3;
transition: color 0.15s ease;
}
.cardUnlocked .cardName {
color: #c9c9c9;
}
.card:hover .cardName {
color: #888888;
}
.cardUnlocked:hover .cardName {
color: #ffffff;
}
.rolePip {
font-size: 0.6rem;
text-transform: uppercase;
letter-spacing: 0.1em;
font-family: 'Oswald', sans-serif;
color: #333333;
}
.rolePipKiller {
color: #5a0000;
}
.cardUnlocked .rolePip {
color: #444444;
}
.cardUnlocked .rolePipKiller {
color: #7a0000;
}
.empty {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
color: #333333;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}