diff --git a/.eslintrc.js b/.eslintrc.js index 405021e..f6ccb66 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,5 +16,7 @@ module.exports = { plugins: [ ], // add your custom rules here - rules: {} + rules: { + + } } diff --git a/1st.js b/1st.js index b7d4af5..dba0733 100644 --- a/1st.js +++ b/1st.js @@ -99,7 +99,7 @@ fetchMapData().then(mapData => { } }); - console.log(mapDataFiltered); // => 'Page not found' + // console.log(mapDataFiltered); // => 'Page not found' mapDataFiltered.forEach((record) => { @@ -117,7 +117,7 @@ fetchMapData().then(mapData => { }) }); -//console.log(mapData[0].Airport_IATA); +// console.log(mapData[0].Airport_IATA); L.tileLayer(apiUrl, { attribution: 'FlyLocal | Map data © OpenStreetMap contributors, Imagery © Mapbox', @@ -136,7 +136,7 @@ map.addLayer(markers); map.on('popupopen', function (e) { var thisMarker = e.popup._source; - console.log(thisMarker); + // console.log(thisMarker); var origButton = document.getElementById("origBtn"), destButton = document.getElementById("destBtn"); @@ -155,7 +155,7 @@ map.on('popupopen', function (e) { } }); - console.log(mapDataFiltered); // => 'Page not found' + // console.log(mapDataFiltered); // => 'Page not found' map.removeLayer(markers); diff --git a/assets/css/main.css b/assets/css/main.css index e69de29..6de1855 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -0,0 +1,96 @@ +html, +body, +#__nuxt, +#__layout, +.page-container, +main { + height: 100%; +} + +html { + font-size: min(3vmin, 18px); +} + +header { + position: fixed; + top: 0; + width: 100vw; + z-index: 403; + display: grid; + grid-template-columns: 1fr 1fr 1fr; + padding: 1rem 1rem 0.75rem 1rem; + pointer-events: none; +} + +.white-bkg header { + background-color: white; +} + +header button { + pointer-events: all; +} + +.header__col:nth-child(2) { + display: flex; + justify-content: center; + align-items: flex-start; +} + +.header__col:nth-child(3) { + text-align: right; +} + +main { + display: flex; + flex-direction: column; +} + +.nav { + flex: 0 0 auto; + background: white; + display: flex; + flex-direction: column; + justify-content: flex-end; +} + +:root { + --m-s: 0.1s; + --h-s: 0.3s; + --d: calc(var(--h-s) - var(--m-s)); +} + +.nav--hide { + transition: margin-top var(--m-s) linear var(--h-s), max-height var(--h-s) linear 0s; + margin-top: 0; + max-height: 0; +} + +.nav--show { + margin-top: 3.5rem; + max-height: 250px; + transition: margin-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s); +} + +.btn--nav-open { + padding: 1rem; + display: block; +} + +.flyout-container { + z-index: 1001; + position: fixed; + bottom: 0; + display: flex; + justify-content: center; + width: 100vw; + transition: all 0.3s; + pointer-events: none; +} + +.flyout-container.flyout-container--hide { + transform: translateY(200px); +} + +.flyout-container.flyout-container--show { + transform: translateY(0); +} \ No newline at end of file diff --git a/assets/images/carriers/alaska-air-transit.png b/assets/images/carriers/alaska-air-transit.png new file mode 100644 index 0000000..ad11c47 Binary files /dev/null and b/assets/images/carriers/alaska-air-transit.png differ diff --git a/assets/images/carriers/alaska-seaplanes.png b/assets/images/carriers/alaska-seaplanes.png new file mode 100644 index 0000000..7b83f95 Binary files /dev/null and b/assets/images/carriers/alaska-seaplanes.png differ diff --git a/assets/images/carriers/bering-air.png b/assets/images/carriers/bering-air.png new file mode 100644 index 0000000..aa2803e Binary files /dev/null and b/assets/images/carriers/bering-air.png differ diff --git a/assets/images/carriers/copper-valley-air-service.png b/assets/images/carriers/copper-valley-air-service.png new file mode 100644 index 0000000..5843822 Binary files /dev/null and b/assets/images/carriers/copper-valley-air-service.png differ diff --git a/assets/images/carriers/denaina-air-taxi.png b/assets/images/carriers/denaina-air-taxi.png new file mode 100644 index 0000000..8d16488 Binary files /dev/null and b/assets/images/carriers/denaina-air-taxi.png differ diff --git a/assets/images/carriers/everts-air.png b/assets/images/carriers/everts-air.png new file mode 100644 index 0000000..9b6bbff Binary files /dev/null and b/assets/images/carriers/everts-air.png differ diff --git a/assets/images/carriers/grant-aviation.png b/assets/images/carriers/grant-aviation.png new file mode 100644 index 0000000..041192c Binary files /dev/null and b/assets/images/carriers/grant-aviation.png differ diff --git a/assets/images/carriers/island-air-express.png b/assets/images/carriers/island-air-express.png new file mode 100644 index 0000000..5a89a4a Binary files /dev/null and b/assets/images/carriers/island-air-express.png differ diff --git a/assets/images/carriers/island-air-service.png b/assets/images/carriers/island-air-service.png new file mode 100644 index 0000000..ba9bee4 Binary files /dev/null and b/assets/images/carriers/island-air-service.png differ diff --git a/assets/images/carriers/k-bay-air.png b/assets/images/carriers/k-bay-air.png new file mode 100644 index 0000000..a8905b2 Binary files /dev/null and b/assets/images/carriers/k-bay-air.png differ diff --git a/assets/images/carriers/katmai-air.png b/assets/images/carriers/katmai-air.png new file mode 100644 index 0000000..d945212 Binary files /dev/null and b/assets/images/carriers/katmai-air.png differ diff --git a/assets/images/carriers/midnight-air.png b/assets/images/carriers/midnight-air.png new file mode 100644 index 0000000..d4cad99 Binary files /dev/null and b/assets/images/carriers/midnight-air.png differ diff --git a/assets/images/carriers/rambler-air.png b/assets/images/carriers/rambler-air.png new file mode 100644 index 0000000..43b2c83 Binary files /dev/null and b/assets/images/carriers/rambler-air.png differ diff --git a/assets/images/carriers/ravn-alaska.png b/assets/images/carriers/ravn-alaska.png new file mode 100644 index 0000000..49f5697 Binary files /dev/null and b/assets/images/carriers/ravn-alaska.png differ diff --git a/assets/images/carriers/reeve-air.png b/assets/images/carriers/reeve-air.png new file mode 100644 index 0000000..385a160 Binary files /dev/null and b/assets/images/carriers/reeve-air.png differ diff --git a/assets/images/carriers/ryan-air.png b/assets/images/carriers/ryan-air.png new file mode 100644 index 0000000..60b949f Binary files /dev/null and b/assets/images/carriers/ryan-air.png differ diff --git a/assets/images/carriers/smokey-bay-air.png b/assets/images/carriers/smokey-bay-air.png new file mode 100644 index 0000000..7787f37 Binary files /dev/null and b/assets/images/carriers/smokey-bay-air.png differ diff --git a/assets/images/carriers/taquan-air.png b/assets/images/carriers/taquan-air.png new file mode 100644 index 0000000..fd50a9d Binary files /dev/null and b/assets/images/carriers/taquan-air.png differ diff --git a/assets/images/carriers/warbelows-air.png b/assets/images/carriers/warbelows-air.png new file mode 100644 index 0000000..5b58d6c Binary files /dev/null and b/assets/images/carriers/warbelows-air.png differ diff --git a/assets/images/carriers/wrangell-mountain-air.png b/assets/images/carriers/wrangell-mountain-air.png new file mode 100644 index 0000000..3a40e20 Binary files /dev/null and b/assets/images/carriers/wrangell-mountain-air.png differ diff --git a/assets/images/carriers/wright-air-service.png b/assets/images/carriers/wright-air-service.png new file mode 100644 index 0000000..d38a184 Binary files /dev/null and b/assets/images/carriers/wright-air-service.png differ diff --git a/assets/images/carriers/yute-commuter-service.png b/assets/images/carriers/yute-commuter-service.png new file mode 100644 index 0000000..8a09629 Binary files /dev/null and b/assets/images/carriers/yute-commuter-service.png differ diff --git a/assets/images/orgs/1-million-cups.png b/assets/images/orgs/1-million-cups.png new file mode 100644 index 0000000..045c86a Binary files /dev/null and b/assets/images/orgs/1-million-cups.png differ diff --git a/assets/images/orgs/aaca.png b/assets/images/orgs/aaca.png new file mode 100644 index 0000000..80b7d55 Binary files /dev/null and b/assets/images/orgs/aaca.png differ diff --git a/assets/images/orgs/alaska-tia.png b/assets/images/orgs/alaska-tia.png new file mode 100644 index 0000000..7e125b6 Binary files /dev/null and b/assets/images/orgs/alaska-tia.png differ diff --git a/assets/images/orgs/alaska-travel-info.png b/assets/images/orgs/alaska-travel-info.png new file mode 100644 index 0000000..43ff2b4 Binary files /dev/null and b/assets/images/orgs/alaska-travel-info.png differ diff --git a/assets/images/orgs/travel-alaska.png b/assets/images/orgs/travel-alaska.png new file mode 100644 index 0000000..6688abd Binary files /dev/null and b/assets/images/orgs/travel-alaska.png differ diff --git a/components/AirportPicker.vue b/components/AirportPicker.vue index fc6a70d..5bed72b 100644 --- a/components/AirportPicker.vue +++ b/components/AirportPicker.vue @@ -3,12 +3,15 @@ + + diff --git a/components/ChosenFlights.vue b/components/ChosenFlights.vue new file mode 100644 index 0000000..8e2ff57 --- /dev/null +++ b/components/ChosenFlights.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/components/DatePicker.vue b/components/DatePicker.vue index 7761477..6a9bb10 100644 --- a/components/DatePicker.vue +++ b/components/DatePicker.vue @@ -1,50 +1,14 @@ @@ -57,13 +21,7 @@ export default { return new Date() } }, - selectedSchedule: { - type: [Object], - default () { - return {} - } - }, - selectedDays: { + selectedDows: { type: [Array], default () { return [] @@ -100,6 +58,10 @@ export default { diff --git a/components/Deselect.vue b/components/Deselect.vue new file mode 100644 index 0000000..cc93668 --- /dev/null +++ b/components/Deselect.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/components/FlightsFlyout.vue b/components/FlightsFlyout.vue index 4f9907a..30a6f9b 100644 --- a/components/FlightsFlyout.vue +++ b/components/FlightsFlyout.vue @@ -1,11 +1,12 @@