From e9c9cc447601490447fa31f213fa6bcc5dc5666a Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Sun, 3 Oct 2021 17:11:43 +0200 Subject: [PATCH] bug fixes before 1st live --- assets/css/main.css | 56 +++++++++++++++++++++++++++++-- components/AirportPicker.vue | 62 ++++++++++++++++++++++++----------- components/Calendar.vue | 6 ++-- components/ChosenFlights.vue | 27 ++++++++++----- components/DatePicker.vue | 3 +- components/Deselect.vue | 1 + components/FlightsFlyout.vue | 25 ++++++++++++++ components/Logo.vue | 2 +- components/Map.vue | 52 +---------------------------- components/OpenIndicator.vue | 1 + components/TheSideBar.vue | 22 ++++++++----- layouts/default.vue | 6 ---- nuxt.config.js | 26 +++++++++++---- pages/dates.vue | 2 +- pages/flights.vue | 41 +++++++++++++++++++++-- pages/go.vue | 24 ++++++++------ pages/index.vue | 7 +++- static/favicon.ico | Bin 8636 -> 269342 bytes static/icon.png | Bin 8746 -> 7722 bytes static/screenshot.png | Bin 0 -> 649173 bytes 20 files changed, 242 insertions(+), 121 deletions(-) create mode 100644 static/screenshot.png diff --git a/assets/css/main.css b/assets/css/main.css index 6de1855..fecd22f 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -49,8 +49,10 @@ main { flex: 0 0 auto; background: white; display: flex; - flex-direction: column; - justify-content: flex-end; + flex-direction: row; + justify-content: center; + align-items: baseline; + flex-wrap: wrap; } :root { @@ -71,6 +73,56 @@ main { transition: margin-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s); } +.btn { + border-radius: 999px; + padding: 0.5em 0.8em; + font-size: min(1rem, 18px); + white-space: nowrap; + transition: 0.2s all; + display: flex; + align-items: center; + justify-content: space-around; + gap: 0.25rem; + line-height: 1; + min-height: 1em; +} + +.btn svg { + height: min(1rem, 18px); + display: inline-block; + aspect-ratio: 1; +} + +.btn.btn--primary { + background: #007fff; + color: #fff; +} + +.btn.btn--primary:hover { + background: #00ca00; + color: #fff; +} + +.btn.btn--cancel { + background: red; + color: #fff; +} + +.btn.btn--cancel:hover { + background: rgb(255, 83, 83); + color: #fff; +} + +.btn.btn--secondary { + background: #ccc; + color: #000; +} + +.btn.btn--secondary:hover { + background: rgb(151, 151, 151); + color: #000; +} + .btn--nav-open { padding: 1rem; display: block; diff --git a/components/AirportPicker.vue b/components/AirportPicker.vue index b52d6f6..2823c6d 100644 --- a/components/AirportPicker.vue +++ b/components/AirportPicker.vue @@ -133,7 +133,7 @@ export default { } }, placeholder () { - return (this.selectedAirport.iata) ? '' : 'town, airport, or iata' + return (this.selectedAirport.iata) ? '' : 'town or airport' } }, methods: { @@ -149,13 +149,11 @@ export default { diff --git a/components/Calendar.vue b/components/Calendar.vue index c6c0eb1..6b03639 100644 --- a/components/Calendar.vue +++ b/components/Calendar.vue @@ -149,7 +149,7 @@ export default { } - diff --git a/components/ChosenFlights.vue b/components/ChosenFlights.vue index 8e2ff57..5e115a8 100644 --- a/components/ChosenFlights.vue +++ b/components/ChosenFlights.vue @@ -74,7 +74,7 @@ export default { } - diff --git a/components/DatePicker.vue b/components/DatePicker.vue index 6a9bb10..95dc835 100644 --- a/components/DatePicker.vue +++ b/components/DatePicker.vue @@ -56,12 +56,13 @@ export default { } - diff --git a/components/Deselect.vue b/components/Deselect.vue index cc93668..3e5548e 100644 --- a/components/Deselect.vue +++ b/components/Deselect.vue @@ -26,5 +26,6 @@ export default { diff --git a/components/FlightsFlyout.vue b/components/FlightsFlyout.vue index 30a6f9b..e320fcd 100644 --- a/components/FlightsFlyout.vue +++ b/components/FlightsFlyout.vue @@ -69,4 +69,29 @@ export default { font-size: 1rem; } } */ + +.flyout .chosen-cols { + background: none; + padding: 0; + box-shadow: none; + margin: 0; +} + +.flyout .chosen-col { + padding: 0; +} + +.flyout .chosen-cols h1 { + color: white; + font-size: 2.7rem; +} + +.flyout .chosen-cols label { + color: white; +} + +.flyout .chosen-cols svg { + stroke: white; +} + diff --git a/components/Logo.vue b/components/Logo.vue index 61ada18..77b4f5c 100644 --- a/components/Logo.vue +++ b/components/Logo.vue @@ -4,7 +4,7 @@ - diff --git a/components/OpenIndicator.vue b/components/OpenIndicator.vue index bdc836a..e4dfc3a 100644 --- a/components/OpenIndicator.vue +++ b/components/OpenIndicator.vue @@ -25,5 +25,6 @@ export default { diff --git a/components/TheSideBar.vue b/components/TheSideBar.vue index 06cfc0f..c253163 100644 --- a/components/TheSideBar.vue +++ b/components/TheSideBar.vue @@ -48,7 +48,7 @@