From 937a78061bdb5da06880937036c273b77d210c2d Mon Sep 17 00:00:00 2001 From: J-Lennox10 Date: Tue, 21 Mar 2023 22:38:36 +0000 Subject: [PATCH] Insights super responsive, account settings page made edible --- src/components/BarChart.vue | 33 ++-- src/pages/AccountPage.vue | 147 +++++++++-------- src/pages/InsightsPage.vue | 305 ++++++++++++++++++------------------ src/pages/MapPage.vue | 5 +- 4 files changed, 264 insertions(+), 226 deletions(-) diff --git a/src/components/BarChart.vue b/src/components/BarChart.vue index ee872b2..49f6f98 100644 --- a/src/components/BarChart.vue +++ b/src/components/BarChart.vue @@ -1,13 +1,7 @@ + \ No newline at end of file diff --git a/src/pages/AccountPage.vue b/src/pages/AccountPage.vue index 305d084..a497276 100644 --- a/src/pages/AccountPage.vue +++ b/src/pages/AccountPage.vue @@ -1,38 +1,37 @@ @@ -205,49 +204,73 @@ export default { diff --git a/src/pages/InsightsPage.vue b/src/pages/InsightsPage.vue index 34662ae..5056aa8 100644 --- a/src/pages/InsightsPage.vue +++ b/src/pages/InsightsPage.vue @@ -2,109 +2,85 @@ - - - - - - - - - - - - - - - - - -
Train InsightsStation Insights
-
- -
-
-

Total number of trains: {{ this.insights["totalNumTrains"] }}

+ +
+
+

Train Insights

+
+
+
Train Data
+

Total number of trains: {{ this.insights["totalNumTrains"] }}

  • Trains: {{ this.insights["numTrains"] }}

  • Darts: {{ this.insights["numDarts"] }}

-
-

Number of actively running trains: {{ this.insights["numRunningTrains"] }}

-

Percentage late: {{ this.insights["percentageLate"] }}%

-

Percentage early or ontime: {{ this.insights["percentageNotLate"] }}%

-
-

Total number of stations: {{ this.insights["totalNumStations"] }}

+ + + +
+

Station Insights

+
+
+
Station Data
+

Total number of stations: {{ this.insights["totalNumStations"] }}

  • Trains: {{ this.insights["numTrainStations"] }}

  • Darts: {{ this.insights["numDartStations"] }}

  • -
-
- - - - - - - - - - - -
Train InsightsStation Insights
-

Total number of trains: {{ this.insights["totalNumTrains"] }}

-
    -
  • Trains: {{ this.insights["numTrains"] }}

  • -
  • Darts: {{ this.insights["numDarts"] }}

  • -
-
-

Number of actively running trains: {{ this.insights["numRunningTrains"] }}

+ + + +
+

Punctuality Insights

+
+
+
Punctuality Data
+

Number of actively running trains: {{ this.insights["numRunningTrains"] }}

  • Percentage late: {{ this.insights["percentageLate"] }}%

  • Percentage early or ontime: {{ this.insights["percentageNotLate"] }}%

- -
-

Total number of stations: {{ this.insights["totalNumStations"] }}

-
    -
  • Trains: {{ this.insights["numTrainStations"] }}

  • -
  • Darts: {{ this.insights["numDartStations"] }}

  • -
-
+ + + -
-

Leaderboard

-
+

Leaderboard

+ + + +
- + + + + + + + + + + + + + + + + + + + + + + + + + + +
CODETimeTypeDirection
{{ this.rawData[train.jsonIndex]["TrainCode"][0] }}{{ train.time }} mins late{{ train.time * -1}} mins early{{ this.rawData[train.jsonIndex]["TrainType"][0] }}{{ this.rawData[train.jsonIndex]["Direction"][0] }}
{{ this.rawData[train.jsonIndex]["TrainCode"][0] }}{{ train.time }} mins late{{ train.time * -1}} mins early{{ this.rawData[train.jsonIndex]["TrainType"][0] }}{{ this.rawData[train.jsonIndex]["Direction"][0] }}
-
-
-
-

{{ this.rawData[train.jsonIndex]["TrainCode"][0] }} - Type: {{ this.rawData[train.jsonIndex]["TrainType"][0] }} | Heading {{ this.rawData[train.jsonIndex]["Direction"][0] }}

-

{{ train.time }} mins late

- -
-
-

{{ this.rawData[train.jsonIndex]["TrainCode"][0] }} - Type: {{ this.rawData[train.jsonIndex]["TrainType"][0] }} | Heading {{ this.rawData[train.jsonIndex]["Direction"][0] }}

-

{{ train.time * -1}} mins early

-
-
-
-
-

{{ this.rawData[train.jsonIndex]["TrainCode"][0] }} - Type: {{ this.rawData[train.jsonIndex]["TrainType"][0] }} | Heading {{ this.rawData[train.jsonIndex]["Direction"][0] }}

-

{{ train.time }} mins late

-

{{ train.time * -1}} mins early

- -
- -
- -
@@ -294,56 +270,33 @@ export default { \ No newline at end of file diff --git a/src/pages/MapPage.vue b/src/pages/MapPage.vue index 5292d82..4963932 100644 --- a/src/pages/MapPage.vue +++ b/src/pages/MapPage.vue @@ -504,8 +504,7 @@ export default { } .trainMapIcon:hover { - width:30px; - height:34px; + transform: scale(1.2); cursor: pointer; } @@ -589,7 +588,7 @@ export default { #publicMessageTicker { z-index: 3; - position: absolute; + position: fixed; bottom:0px; width:100%; background-color: rgb(255, 255, 125);