mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
chore: added navbar and generated time info
This commit is contained in:
+21
-8
@@ -1,7 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="max-h-screen max-w-[800px] mx-auto">
|
<div class="min-h-screen bg-zinc-950">
|
||||||
<div class="grid print:block p-3 h-screen grid-rows-[auto_1fr]">
|
<nav class="bg-zinc-900 w-full p-1 print:hidden">
|
||||||
<select name="trains" id="trains-select" class="mb-2 bg-zinc-800 p-1 rounded-md print:hidden" v-model="selectedTrainId" @change="selectTrain">
|
<div class="flex items-center">
|
||||||
|
<img src="/favicon.svg" class="size-8 inline" />
|
||||||
|
<b class="ml-2 text-lg">Rozkładownik TD2</b>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<main class="grid print:block p-3 mx-auto max-w-[800px] h-screen grid-rows-[auto_1fr_20px] gap-1">
|
||||||
|
<select
|
||||||
|
name="trains"
|
||||||
|
id="trains-select"
|
||||||
|
class="mb-2 bg-zinc-800 p-1 rounded-md print:hidden w-full"
|
||||||
|
v-model="selectedTrainId"
|
||||||
|
@change="selectTrain"
|
||||||
|
>
|
||||||
<option :value="train.id" v-for="train in activeTimetableTrains">
|
<option :value="train.id" v-for="train in activeTimetableTrains">
|
||||||
{{ train.driverName }} | {{ train.timetable?.category }} {{ train.trainNo }}
|
{{ train.driverName }} | {{ train.timetable?.category }} {{ train.trainNo }}
|
||||||
</option>
|
</option>
|
||||||
@@ -199,7 +212,11 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
<footer v-if="generatedDate" class="text-center text-sm text-zinc-400 mt-1">
|
||||||
|
Wygenerowano w {{ generatedMs }}ms o {{ generatedDate.toLocaleTimeString() }}
|
||||||
|
</footer>
|
||||||
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -424,10 +441,6 @@ export default defineComponent({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.app_container {
|
|
||||||
grid-template-rows: auto 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|||||||
Reference in New Issue
Block a user