Browse Source

bug fixes before 1st live

master
Spencer Flagg 3 years ago
parent
commit
e9c9cc4476
20 changed files with 242 additions and 121 deletions
  1. +54
    -2
      assets/css/main.css
  2. +43
    -19
      components/AirportPicker.vue
  3. +3
    -3
      components/Calendar.vue
  4. +19
    -8
      components/ChosenFlights.vue
  5. +2
    -1
      components/DatePicker.vue
  6. +1
    -0
      components/Deselect.vue
  7. +25
    -0
      components/FlightsFlyout.vue
  8. +1
    -1
      components/Logo.vue
  9. +1
    -51
      components/Map.vue
  10. +1
    -0
      components/OpenIndicator.vue
  11. +14
    -8
      components/TheSideBar.vue
  12. +0
    -6
      layouts/default.vue
  13. +19
    -7
      nuxt.config.js
  14. +1
    -1
      pages/dates.vue
  15. +38
    -3
      pages/flights.vue
  16. +14
    -10
      pages/go.vue
  17. +6
    -1
      pages/index.vue
  18. BIN
      static/favicon.ico
  19. BIN
      static/icon.png
  20. BIN
      static/screenshot.png

+ 54
- 2
assets/css/main.css View File

@ -49,8 +49,10 @@ main {
flex: 0 0 auto; flex: 0 0 auto;
background: white; background: white;
display: flex; display: flex;
flex-direction: column;
justify-content: flex-end;
flex-direction: row;
justify-content: center;
align-items: baseline;
flex-wrap: wrap;
} }
:root { :root {
@ -71,6 +73,56 @@ main {
transition: margin-top var(--m-s) linear 0s, max-height var(--h-s) linear var(--m-s); 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 { .btn--nav-open {
padding: 1rem; padding: 1rem;
display: block; display: block;

+ 43
- 19
components/AirportPicker.vue View File

@ -133,7 +133,7 @@ export default {
} }
}, },
placeholder () { placeholder () {
return (this.selectedAirport.iata) ? '' : 'town, airport, or iata'
return (this.selectedAirport.iata) ? '' : 'town or airport'
} }
}, },
methods: { methods: {
@ -149,13 +149,11 @@ export default {
</script> </script>
<style> <style>
html {
color: black;
}
.picker-wrap { .picker-wrap {
margin: 1rem; margin: 1rem;
position: relative; position: relative;
width: min(100vw - 2rem, 500px);
} }
.picker-wrap:last-of-type { .picker-wrap:last-of-type {
@ -174,9 +172,23 @@ html {
.vs__dropdown-toggle { .vs__dropdown-toggle {
background: #eee; background: #eee;
border: 0; border: 0;
border-radius: 3rem;
padding-right: 1rem;
padding-left: 1rem;
border-radius: 0.5rem 3rem 3rem 3rem;
padding-right: 0.5rem;
padding-left: 0.5rem;
padding-bottom: 0;
}
.vs__selected-options {
padding: 0;
}
.picker-wrap .vs__search,
.picker-wrap .vs__search:focus {
margin: 0;
}
.picker-wrap .vs__actions {
padding: 0;
} }
.picker-item { .picker-item {
@ -186,12 +198,22 @@ html {
align-items: center; align-items: center;
} }
.picker-item__section {
display: flex;
flex-direction: column;
}
.picker-item__name { .picker-item__name {
font-size: 1rem; font-size: 1rem;
line-height: 1.1;
white-space: normal;
} }
.picker-item__muni { .picker-item__muni {
color: #007fff; color: #007fff;
line-height: 1.1;
padding-top: 0.25rem;
white-space: normal;
} }
.picker-item__iata { .picker-item__iata {
@ -206,16 +228,18 @@ html {
</style> </style>
<style scoped> <style scoped>
label {
display: block;
color: black;
position: absolute;
z-index: 1;
text-transform: uppercase;
font-weight: 300;
top: 0.3rem;
left: 2rem;
letter-spacing: 0.13rem;
font-size: 0.8rem;
}
label {
display: block;
color: gray;
position: absolute;
z-index: 1;
text-transform: uppercase;
font-weight: 300;
top: 0.3rem;
left: 0.5rem;
letter-spacing: 0.13rem;
font-size: 0.8rem;
}
</style> </style>

+ 3
- 3
components/Calendar.vue View File

@ -149,7 +149,7 @@ export default {
} }
</script> </script>
<style>
<style scoped>
.calendar-page { .calendar-page {
width: min(90vmin, 400px); width: min(90vmin, 400px);
} }
@ -212,12 +212,12 @@ h1.calendar__month {
.badge.badge--day { .badge.badge--day {
position: absolute; position: absolute;
background: hotpink; background: hotpink;
border: white 0.2rem solid;
border: white 0.15rem solid;
border-radius: 999px; border-radius: 999px;
color: white; color: white;
padding: 0 0.4em; padding: 0 0.4em;
bottom: -0.25rem; bottom: -0.25rem;
right: -0.25rem; right: -0.25rem;
font-size: 0.7rem;
font-size: 0.6rem;
} }
</style> </style>

+ 19
- 8
components/ChosenFlights.vue View File

@ -74,7 +74,7 @@ export default {
} }
</script> </script>
<style>
<style scoped>
.chosen-wrapper { .chosen-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -84,14 +84,25 @@ export default {
.chosen-cols { .chosen-cols {
display: flex; display: flex;
justify-content: center; justify-content: center;
background-color: #003c79;
background-color: #eee;
border-radius: 1rem; border-radius: 1rem;
padding: 0.5rem 2rem;
padding: 0 1rem;
margin-bottom: 2rem; margin-bottom: 2rem;
position: relative; position: relative;
max-width: 450px; max-width: 450px;
--knockout-size: 0.75rem; --knockout-size: 0.75rem;
--color: #ccc;
/* border: 0.1rem solid var(--color); */
box-shadow: 0 0.5rem 0 0 var(--color);
}
.chosen-col {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0.5rem 0;
} }
.chosen-col:nth-of-type(2) { .chosen-col:nth-of-type(2) {
@ -102,7 +113,6 @@ export default {
} }
.chosen-col:nth-of-type(2) svg { .chosen-col:nth-of-type(2) svg {
margin-top: -0.9rem;
width: 3.5rem; width: 3.5rem;
height: 3.5rem; height: 3.5rem;
} }
@ -122,7 +132,7 @@ export default {
content: ""; content: "";
height: var(--knockout-size); height: var(--knockout-size);
width: var(--knockout-size); width: var(--knockout-size);
background-color: white;
background-color: var(--color);
border-radius: 999px 999px 0 0; border-radius: 999px 999px 0 0;
display: block; display: block;
position: absolute; position: absolute;
@ -135,8 +145,8 @@ export default {
} }
label.chosen-text { label.chosen-text {
color: #007fff;
line-height: 0.8;
color: #007fff88;
line-height: 1;
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 400; font-weight: 400;
} }
@ -149,7 +159,7 @@ h1.chosen-text {
font-size: 3rem; font-size: 3rem;
line-height: 0.8; line-height: 0.8;
font-weight: 500; font-weight: 500;
color: #eee;
color: #aaa;
} }
.date-badge { .date-badge {
@ -159,5 +169,6 @@ h1.chosen-text {
line-height: 1; line-height: 1;
display: inline-block; display: inline-block;
font-size: 0.8rem; font-size: 0.8rem;
color: #aaa;
} }
</style> </style>

+ 2
- 1
components/DatePicker.vue View File

@ -56,12 +56,13 @@ export default {
} }
</script> </script>
<style>
<style scoped>
.calendar-wrapper { .calendar-wrapper {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 3rem; gap: 3rem;
justify-content: center; justify-content: center;
margin-top: 3rem; margin-top: 3rem;
margin-bottom: 3rem;
} }
</style> </style>

+ 1
- 0
components/Deselect.vue View File

@ -26,5 +26,6 @@ export default {
<style scoped> <style scoped>
svg { svg {
max-height: 3.2rem; max-height: 3.2rem;
max-width: 3.2rem;
} }
</style> </style>

+ 25
- 0
components/FlightsFlyout.vue View File

@ -69,4 +69,29 @@ export default {
font-size: 1rem; 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;
}
</style> </style>

+ 1
- 1
components/Logo.vue View File

@ -4,7 +4,7 @@
</svg> </svg>
</template> </template>
<style>
<style scoped>
#flylocal-logo { #flylocal-logo {
height: clamp(20px, 4rem, 50px); height: clamp(20px, 4rem, 50px);
transition: all 0.3s; transition: all 0.3s;

+ 1
- 51
components/Map.vue View File

@ -274,7 +274,7 @@ export default {
} }
</script> </script>
<style lang="css" >
<style lang="css">
:root { :root {
--map-shadow: 5px 3px 10px rgb(0 0 0 / 20%); --map-shadow: 5px 3px 10px rgb(0 0 0 / 20%);
} }
@ -426,54 +426,4 @@ export default {
background-color: rgba(0, 127, 255, 0.9); background-color: rgba(0, 127, 255, 0.9);
} }
.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;
}
</style> </style>

+ 1
- 0
components/OpenIndicator.vue View File

@ -25,5 +25,6 @@ export default {
<style scoped> <style scoped>
svg { svg {
max-height: 3.2rem; max-height: 3.2rem;
max-width: 3.2rem;
} }
</style> </style>

+ 14
- 8
components/TheSideBar.vue View File

@ -48,7 +48,7 @@
<div class="sidebar"> <div class="sidebar">
<div class="sidebar-content"> <div class="sidebar-content">
<h1 class="h1--about"> <h1 class="h1--about">
What is FlyLocal Alaska?
What is<br>FlyLocal Alaska?
</h1> </h1>
<div class="img-divider"> <div class="img-divider">
<img <img
@ -75,7 +75,7 @@
schedules for your favorite Alaskan airlines - all in one place. schedules for your favorite Alaskan airlines - all in one place.
</p> </p>
<h1 class="h1--about"> <h1 class="h1--about">
Why FlyLocal in Alaska?
Why FlyLocal<br>in Alaska?
</h1> </h1>
<div class="img-divider"> <div class="img-divider">
<img <img
@ -152,7 +152,7 @@
it off the bucket-list. it off the bucket-list.
</p> </p>
<h1 class="h1--about"> <h1 class="h1--about">
Up-to-date Travel Info
Up-to-date<br>Travel Info
</h1> </h1>
<ul class="about-carriers list-lrg"> <ul class="about-carriers list-lrg">
<li> <li>
@ -161,12 +161,13 @@
class="img--carrier-logo" class="img--carrier-logo"
:src="require(`@/assets/images/orgs/alaska-travel-info.png`)" :src="require(`@/assets/images/orgs/alaska-travel-info.png`)"
alt="Alaska Travel Info" alt="Alaska Travel Info"
travel="Alaska Travel Info"
> >
</a> </a>
</li> </li>
</ul> </ul>
<h1 class="h1--about"> <h1 class="h1--about">
Explore Alaska on these great local airlines
Explore Alaska<br>on these great local airlines
</h1> </h1>
<ul class="about-carriers"> <ul class="about-carriers">
<li v-for="carrier in carriers" :key="carrier.id"> <li v-for="carrier in carriers" :key="carrier.id">
@ -175,6 +176,7 @@
class="img--carrier-logo" class="img--carrier-logo"
:src="require(`@/assets/images/carriers/${carrier.fields.Slug}.png`)" :src="require(`@/assets/images/carriers/${carrier.fields.Slug}.png`)"
:alt="carrier.fields.Name" :alt="carrier.fields.Name"
:title="carrier.fields.Name"
> >
</a> </a>
</li> </li>
@ -189,6 +191,7 @@
class="img--carrier-logo" class="img--carrier-logo"
:src="require(`@/assets/images/orgs/aaca.png`)" :src="require(`@/assets/images/orgs/aaca.png`)"
alt="Alaska Air Carriers Association" alt="Alaska Air Carriers Association"
title="Alaska Air Carriers Association"
> >
</a> </a>
</li> </li>
@ -198,6 +201,7 @@
class="img--carrier-logo" class="img--carrier-logo"
:src="require(`@/assets/images/orgs/alaska-tia.png`)" :src="require(`@/assets/images/orgs/alaska-tia.png`)"
alt="Alaska Travel Industry Association" alt="Alaska Travel Industry Association"
title="Alaska Travel Industry Association"
> >
</a> </a>
</li> </li>
@ -212,6 +216,7 @@
class="img--carrier-logo" class="img--carrier-logo"
:src="require(`@/assets/images/orgs/1-million-cups.png`)" :src="require(`@/assets/images/orgs/1-million-cups.png`)"
alt="1 Million Cups" alt="1 Million Cups"
title="1 Million Cups"
> >
</a> </a>
</li> </li>
@ -222,12 +227,13 @@
style="background: black; border-radius: 0.5rem; padding-left: 0.4rem;" style="background: black; border-radius: 0.5rem; padding-left: 0.4rem;"
:src="require(`@/assets/images/orgs/travel-alaska.png`)" :src="require(`@/assets/images/orgs/travel-alaska.png`)"
alt="Travel Alaska" alt="Travel Alaska"
title="Travel Alaska"
> >
</a> </a>
</li> </li>
</ul> </ul>
<div class="company-footer"> <div class="company-footer">
&nbsp; FlyLocal v5.0.2 &nbsp;&nbsp;𐄙&nbsp;&nbsp; ©2021 FlyLocal LLC &nbsp;
&nbsp; FlyLocal v5.0.2 &nbsp;&nbsp;𐄙&nbsp;&nbsp; ©2021 FlyLocal, Inc &nbsp;
</div> </div>
</div> </div>
<ul class="contact"> <ul class="contact">
@ -254,7 +260,7 @@
</a> </a>
</li> </li>
<li class="contact-item"> <li class="contact-item">
<a href="https://facebook.com/FlyLocalAlaska">
<a href="https://facebook.com/iFlyLocal">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-brand-facebook" class="icon icon-tabler icon-tabler-brand-facebook"
@ -272,7 +278,7 @@
d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3" d="M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3"
/> />
</svg> </svg>
<span>@fly_local</span>
<span>@iFlyLocal</span>
</a> </a>
</li> </li>
<li class="contact-item"> <li class="contact-item">
@ -360,7 +366,7 @@ export default {
carriers: [] carriers: []
}), }),
async fetch () { async fetch () {
const filterFormula = 'AND(NOT(Status="Inactive"),FIND("Alaska",Region)>0)'
const filterFormula = 'AND(IsActive=1,FIND("Alaska",Region)>0)'
const sortFormula = '&sort[0][field]=Name&sort[0][direction]=asc' const sortFormula = '&sort[0][field]=Name&sort[0][direction]=asc'
let offset let offset

+ 0
- 6
layouts/default.vue View File

@ -10,9 +10,3 @@ export default {
} }
</script> </script>
<style>
.asdf {
color: red;
}
</style>

+ 19
- 7
nuxt.config.js View File

@ -1,22 +1,34 @@
export default { export default {
// Global page headers: https://go.nuxtjs.dev/config-head // Global page headers: https://go.nuxtjs.dev/config-head
head: { head: {
title: 'flylocal-v5-nuxt',
title: 'FlyLocal',
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
{ hid: 'description', name: 'description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
{ name: 'format-detection', content: 'telephone=no' },
{ itemprop: 'name', content: 'Small Planes, Big Experiences' },
{ itemprop: 'description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
{ itemprop: 'image', content: '/screenshot.png' },
{ property: 'og:url', content: 'https://iflylocal.com/' },
{ property: 'og:type', content: 'website' },
{ property: 'og:title', content: 'Small Planes, Big Experiences' },
{ property: 'og:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
{ property: 'og:image', content: '/screenshot.png' },
{ name: 'twitter:card', content: 'summary_large_image' },
{ name: 'twitter:title', content: 'Small Planes, Big Experiences' },
{ name: 'twitter:description', content: 'FlyLocal is the best way to find local airlines that fly throughout the great state of Alaska. Explore the \'Last Frontier\' with FlyLocal.' },
{ name: 'twitter:image', content: '/screenshot.png' }
], ],
link: [ link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
] ]
}, },
// server: {
// host: '192.168.178.100',
// port: 3010
// },
server: {
host: '192.168.178.100',
port: 3010
},
serverMiddleware: [ serverMiddleware: [
'~/middleware/redirects.js' '~/middleware/redirects.js'

+ 1
- 1
pages/dates.vue View File

@ -219,7 +219,7 @@ export default {
} }
</script> </script>
<style lang="scss">
<style lang="scss" scoped>
.main-with-header { .main-with-header {
margin-top: clamp(20px + 1.75rem, 4rem + 1.75rem, 50px + 1.75rem); margin-top: clamp(20px + 1.75rem, 4rem + 1.75rem, 50px + 1.75rem);
} }

+ 38
- 3
pages/flights.vue View File

@ -154,7 +154,6 @@
<v-select <v-select
v-model="numAdult" v-model="numAdult"
:options="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]" :options="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
auto
/> />
</div> </div>
<div> <div>
@ -162,7 +161,6 @@
<v-select <v-select
v-model="numChild" v-model="numChild"
:options="[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]" :options="[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
:menu-props="{ top: true, offsetY: true }"
/> />
</div> </div>
<button class="btn btn--primary" @click="book"> <button class="btn btn--primary" @click="book">
@ -353,7 +351,11 @@ export default {
} }
</script> </script>
<style lang="scss">
<style lang="scss" scoped>
.main-with-header {
margin-top: clamp(20px + 1.75rem, 4rem + 1.75rem, 50px + 1.75rem);
}
.schedule-wrapper { .schedule-wrapper {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -575,4 +577,37 @@ span.badge--avail {
font-size: 1rem; font-size: 1rem;
font-weight: 300; font-weight: 300;
} }
</style>
<style>
.flyout .v-select {
font-size: 1.5rem;
}
.flyout .vs__dropdown-menu {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.flyout .vs__dropdown-menu li {
border-radius: 999px;
transition: 0.3 all;
}
.flyout .vs__dropdown-menu li:hover {
border-radius: 999px;
background-color: #007fff;
}
.flyout .vs__dropdown-toggle {
background: #eee;
border-radius: 1.2rem 1.2rem 1.2rem 1.2rem;
}
.flyout .vs--open .vs__dropdown-toggle {
background: #eee;
border-radius: 1.2rem 1.2rem 0 0;
}
</style> </style>

+ 14
- 10
pages/go.vue View File

@ -51,7 +51,7 @@
from one of <strong>{{ airports_orig.length }}</strong> <span style="color: white;">local</span> airports from one of <strong>{{ airports_orig.length }}</strong> <span style="color: white;">local</span> airports
</div> </div>
<div v-if="selectedOrig.iata && !selectedDest.iata && airports_dest.length > 1 && !isPickerVisible" class="logo-blurb"> <div v-if="selectedOrig.iata && !selectedDest.iata && airports_dest.length > 1 && !isPickerVisible" class="logo-blurb">
to one of <strong>{{ airports_dest.length }}</strong> {{ getCompliment }} destinations
to one of <strong>{{ airports_dest.length }}</strong> {{ getCompliment() }} destinations
</div> </div>
</div> </div>
<div class="header__col" /> <div class="header__col" />
@ -61,7 +61,7 @@
{{ selectedDest }} {{ selectedDest }}
</pre> --> </pre> -->
<main> <main>
<nav :class="['nav', { 'nav--show': isPickerVisible },{ 'nav--hide': !isPickerVisible }]">
<nav v-if="isMounted" :class="['nav', { 'nav--show': isPickerVisible },{ 'nav--hide': !isPickerVisible }]">
<AirportPicker <AirportPicker
:airports="airports_orig" :airports="airports_orig"
:selected-airport="selectedOrig" :selected-airport="selectedOrig"
@ -106,6 +106,7 @@ export default {
// components: { AirportPicker }, // components: { AirportPicker },
data () { data () {
return { return {
isMounted: false,
color: 'red', color: 'red',
isSidebarVisible: false, isSidebarVisible: false,
isPickerVisible: false, isPickerVisible: false,
@ -199,12 +200,6 @@ export default {
return '&fields[]=' + field return '&fields[]=' + field
}) })
return array.join('') return array.join('')
},
getCompliment () {
const arr = [
'beautiful', 'gorgeous', 'breathtaking', 'wild', 'adventurous', 'amazing', 'majestic', 'uncharted', 'unpredictable', 'pristine', 'untamed'
]
return arr[Math.floor(Math.random() * arr.length)]
} }
}, },
created () { created () {
@ -217,12 +212,21 @@ export default {
this.fetchSingleAirport(this.$route.params.d, false) this.fetchSingleAirport(this.$route.params.d, false)
} }
}, },
mounted () {
this.isMounted = true
},
// watch: { // watch: {
// history (to, from) { // history (to, from) {
// console.log(`routed from ${from} to ${to}`) // console.log(`routed from ${from} to ${to}`)
// } // }
// }, // },
methods: { methods: {
getCompliment () {
const arr = [
'beautiful', 'gorgeous', 'breathtaking', 'wild', 'adventurous', 'amazing', 'majestic', 'uncharted', 'unpredictable', 'pristine', 'untamed'
]
return arr[Math.floor(Math.random() * arr.length)]
},
makeOrigin (airport) { makeOrigin (airport) {
// console.log(airport) // console.log(airport)
@ -360,11 +364,11 @@ export default {
} }
</script> </script>
<style>
<style scoped>
.logo-blurb { .logo-blurb {
position: absolute; position: absolute;
left: min(400px, 47%);
left: clamp(47% + 1rem, 51% - 2rem, 47%);
font-size: clamp(10px, 1rem, 18px); font-size: clamp(10px, 1rem, 18px);
color: white; color: white;
top: clamp(20px + 0.25rem, 4rem + 0.25rem, 50px + 0.25rem); top: clamp(20px + 0.25rem, 4rem + 0.25rem, 50px + 0.25rem);

+ 6
- 1
pages/index.vue View File

@ -8,7 +8,12 @@
</template> </template>
<script> <script>
export default {}
export default {
loading: {
color: '#007fff',
height: '1rem'
}
}
</script> </script>
<style scoped> <style scoped>

BIN
static/favicon.ico View File

Before After

BIN
static/icon.png View File

Before After
Width: 512  |  Height: 512  |  Size: 8.5 KiB Width: 331  |  Height: 330  |  Size: 7.5 KiB

BIN
static/screenshot.png View File

Before After
Width: 1276  |  Height: 720  |  Size: 634 KiB

Loading…
Cancel
Save