Add stations
This commit is contained in:
69
src/components/TrainSidebar.vue
Normal file
69
src/components/TrainSidebar.vue
Normal file
@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<div id="sidebarDiv">
|
||||
<div id="sidebarHeader">
|
||||
<img id="headerImage" src="../assets/train-solid.svg" alt="Train Icon">
|
||||
<div v-on:click="store.setDisplaySelectedTrain(false)" id="xButton">X</div>
|
||||
</div>
|
||||
|
||||
<div id="sidebarDiv">
|
||||
<h2>Train Code: {{ store.selectedTrain["TrainCode"][0] }}</h2>
|
||||
<p id="typeP">Type: {{ store.selectedTrain["TrainType"][0] }}</p>
|
||||
<p id="dateP">Date: {{ store.selectedTrain["TrainDate"][0] }}</p>
|
||||
<p id="dateP">Status: {{ store.selectedTrain["TrainStatus"][0] }}</p>
|
||||
<p id="dateP">Train Position - Long: {{ store.selectedTrain["TrainLongitude"][0] }} Lat: {{ store.selectedTrain["TrainLatitude"][0] }}</p>
|
||||
<p id="directionP">Direction: {{ store.selectedTrain["Direction"][0] }}</p>
|
||||
<p id="messageP">Public Message: {{ store.selectedTrain["PublicMessage"][0] }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { store } from '../store/store'
|
||||
export default {
|
||||
name: "TrainSidebar",
|
||||
|
||||
data() {
|
||||
return {
|
||||
store
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
#sidebarHeader{
|
||||
position: relative;
|
||||
top:0%;
|
||||
height: 15%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#sidebarDiv{
|
||||
position: absolute;
|
||||
height: 80%;
|
||||
width: 100%;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#headerImage{
|
||||
height: 80%;
|
||||
width: auto;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
#xButton{
|
||||
font-size: 80%;
|
||||
font-family: Georgia;
|
||||
color: white;
|
||||
position: absolute;
|
||||
top:10px;
|
||||
right:10px;
|
||||
}
|
||||
|
||||
#xButton:hover{
|
||||
color:red;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user