mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore(profile): design & layout adjustments
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<div class="history-menu">
|
<div class="history-menu">
|
||||||
<button
|
<button
|
||||||
v-for="(filterState, filterKey) in activeFilterTypes"
|
v-for="(filterState, filterKey) in activeFilterTypes"
|
||||||
class="menu-btn"
|
class="menu-btn btn--option"
|
||||||
:data-active="filterState"
|
:data-active="filterState"
|
||||||
@click="toggleFilter(filterKey)"
|
@click="toggleFilter(filterKey)"
|
||||||
>
|
>
|
||||||
@@ -79,7 +79,8 @@
|
|||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
<b>{{ entry.value.route.replace('|', ' > ') }}</b>
|
<b>{{ entry.value.route.replace('|', ' > ') }}</b>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
<b>({{ entry.value.currentDistance }} km / {{ entry.value.routeDistance }} km) </b>
|
<b class="text--primary">{{ entry.value.currentDistance }} km</b>
|
||||||
|
<b> / {{ entry.value.routeDistance }} km</b>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Dispatchers -->
|
<!-- Dispatchers -->
|
||||||
@@ -223,12 +224,9 @@ async function fetchPlayerJournal() {
|
|||||||
.list-header {
|
.list-header {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
background-color: var(--clr-bg);
|
|
||||||
padding-bottom: 0.5em;
|
|
||||||
|
|
||||||
& > h3 {
|
& > h3 {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
background-color: var(--clr-tile);
|
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -237,26 +235,22 @@ async function fetchPlayerJournal() {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
padding: 1px;
|
padding: 0.5em;
|
||||||
|
background-color: var(--clr-tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-btn {
|
.menu-btn {
|
||||||
background-color: var(--clr-tile);
|
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: #2b2b2b;
|
|
||||||
}
|
|
||||||
|
|
||||||
&[data-active='true'] {
|
&[data-active='true'] {
|
||||||
color: var(--clr-success);
|
color: var(--clr-success);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.history-list-box {
|
.history-list-box {
|
||||||
padding: 0.25em;
|
padding: 0 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.history-list-box > a {
|
.history-list-box > a {
|
||||||
@@ -264,11 +258,15 @@ async function fetchPlayerJournal() {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.25em;
|
gap: 0.25em;
|
||||||
|
|
||||||
background-color: var(--clr-tile);
|
background-color: var(--clr-bg-light);
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
|
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
text-align: initial;
|
text-align: initial;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #333;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-top-date {
|
.entry-top-date {
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="profile-recent-stats">
|
<section class="profile-recent-stats">
|
||||||
<h3 class="stats-header">{{ t('profile.recent-stats.header') }}</h3>
|
<h2 class="stats-header">
|
||||||
|
<img src="/images/icon-stats.svg" width="30" alt="stats icon" />
|
||||||
|
{{ t('profile.recent-stats.header') }}
|
||||||
|
</h2>
|
||||||
|
|
||||||
<div class="month-stats-box">
|
<div class="month-stats-box">
|
||||||
<div class="month-stat">
|
<div class="month-stat">
|
||||||
@@ -67,19 +70,22 @@ defineProps({
|
|||||||
}
|
}
|
||||||
|
|
||||||
.stats-header {
|
.stats-header {
|
||||||
padding: 0.5em;
|
padding: 1em;
|
||||||
background-color: var(--clr-tile);
|
|
||||||
margin-bottom: 0.5em;
|
img {
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.month-stats-box {
|
.month-stats-box {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(4, 1fr);
|
grid-template-columns: repeat(4, 1fr);
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.month-stat {
|
.month-stat {
|
||||||
background-color: var(--clr-tile);
|
background-color: var(--clr-bg-light);
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
|
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ const activeTrains = computed(() => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.5em;
|
gap: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-activity {
|
.info-activity {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
--clr-bg2: #1b1b1b;
|
--clr-bg2: #1b1b1b;
|
||||||
--clr-bg3: #1d1d1d;
|
--clr-bg3: #1d1d1d;
|
||||||
--clr-view-bg: #1a1a1a;
|
--clr-view-bg: #1a1a1a;
|
||||||
|
--clr-bg-light: #2b2b2b;
|
||||||
|
|
||||||
--clr-tile: #181818;
|
--clr-tile: #181818;
|
||||||
|
|
||||||
|
|||||||
@@ -188,6 +188,8 @@ async function fetchPlayerTD2Info(playerName: string) {
|
|||||||
grid-template-rows: auto 1fr;
|
grid-template-rows: auto 1fr;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
background-color: var(--clr-tile);
|
||||||
|
border-radius: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include responsive.midScreen {
|
@include responsive.midScreen {
|
||||||
|
|||||||
Reference in New Issue
Block a user