mirror of
https://github.com/Spythere/pragotron-td2.git
synced 2026-05-03 21:48:15 +00:00
Poprawki
This commit is contained in:
+14
-3
@@ -1,13 +1,15 @@
|
||||
<template>
|
||||
<div class="app_content">
|
||||
<nav class="navbar">
|
||||
<div v-if="!selectedStation">Pragotron TD2</div>
|
||||
<div v-if="!selectedStation">
|
||||
Pragotron TD2 <span class="text--accent">v{{ VERSION }}</span> <sup>by Spythere</sup>
|
||||
</div>
|
||||
<button v-else class="back-btn btn--text" @click="selectedStation = null">< powrót</button>
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
<div class="scenery-selector" v-if="!selectedStation">
|
||||
<h1>Scenerie online</h1>
|
||||
<h1>Scenerie <span class="text--accent">online</span></h1>
|
||||
|
||||
<ul class="scenery-list">
|
||||
<li v-for="(station, i) in onlineStations">
|
||||
@@ -32,6 +34,8 @@ import IStationData from './types/IStationData';
|
||||
import { ISceneryResponse } from './types/ISceneryReponse';
|
||||
import { IOnlineStationsResponse } from './types/IOnlineStationsResponse';
|
||||
|
||||
import packageInfo from '../package.json';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
PragotronVue,
|
||||
@@ -56,6 +60,8 @@ export default defineComponent({
|
||||
data: () => ({
|
||||
onlineStations: [] as IStationData[],
|
||||
dataLoaded: false,
|
||||
|
||||
VERSION: packageInfo.version,
|
||||
}),
|
||||
|
||||
async mounted() {
|
||||
@@ -116,7 +122,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
nav {
|
||||
flex: 0 1 auto;
|
||||
flex: 0 1 40px;
|
||||
font-size: 1.35em;
|
||||
|
||||
padding: 0.25em;
|
||||
@@ -126,6 +132,11 @@ nav {
|
||||
|
||||
background-color: $accentBg;
|
||||
|
||||
sup {
|
||||
font-size: 0.8em;
|
||||
color: $dimmedText;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
+10
-1
@@ -1,7 +1,16 @@
|
||||
$primaryText: white;
|
||||
$accentText: gold;
|
||||
$dimmedText: #ddd;
|
||||
|
||||
$primaryBg: #333;
|
||||
$secondaryBg: #aaa;
|
||||
|
||||
$accentBg: #327ea5;
|
||||
$accentBg: #327ea5;
|
||||
|
||||
.text--accent {
|
||||
color: $accentText;
|
||||
}
|
||||
|
||||
.text--grayed {
|
||||
color: $dimmedText;
|
||||
}
|
||||
Reference in New Issue
Block a user