diff --git a/assets/css/main.css b/assets/css/main.css index a079177..2f2b12c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -1,3 +1,9 @@ +:root { + --m-s: 0.1s; + --h-s: 0.3s; + --d: calc(var(--h-s) - var(--m-s)); +} + html, body, #__nuxt, @@ -56,12 +62,6 @@ main { overflow: hidden; } -:root { - --m-s: 0.1s; - --h-s: 0.3s; - --d: calc(var(--h-s) - var(--m-s)); -} - .nav--hide { transition: padding-top var(--m-s) linear var(--h-s), max-height var(--h-s) linear 0s; padding-top: 0; @@ -179,6 +179,7 @@ main { .flyout .vs__dropdown-toggle { background: #eee; border-radius: 1.2rem 1.2rem 1.2rem 1.2rem; + padding: 0; } .flyout .vs--open .vs__dropdown-toggle { diff --git a/pages/dates.vue b/pages/dates.vue index 16f5016..3cb51bb 100644 --- a/pages/dates.vue +++ b/pages/dates.vue @@ -92,6 +92,19 @@ export default { return mappedDows } }, + mounted () { + this.$segment.page('dates'); + this.$segment.track('dates__mount-page', { + origin: this.$route.params.o, + destination: this.$route.params.d + }); + const emailCookie = this.$cookies.get('email') + if(emailCookie){ + this.$segment.identify(emailCookie, { + email: emailCookie + }); + } + }, created () { // console.log(this.$route.path) diff --git a/pages/flights.vue b/pages/flights.vue index d56cbe9..b44be1f 100644 --- a/pages/flights.vue +++ b/pages/flights.vue @@ -370,6 +370,20 @@ export default { this.schedules = [...data.records] }, + mounted () { + this.$segment.page('flights'); + this.$segment.track('flights__mount-page', { + origin: this.$route.params.o, + destination: this.$route.params.d, + departureDate: this.$route.params.departure, + }); + const emailCookie = this.$cookies.get('email') + if(emailCookie){ + this.$segment.identify(emailCookie, { + email: emailCookie + }); + } + }, created () { // console.log(this.$route.path) diff --git a/pages/go.vue b/pages/go.vue index 01cdf0e..3f9d06b 100644 --- a/pages/go.vue +++ b/pages/go.vue @@ -238,6 +238,14 @@ export default { }, mounted () { + this.$segment.page('go'); + + const emailCookie = this.$cookies.get('email') + if(emailCookie){ + this.$segment.identify(emailCookie, { + email: emailCookie + }); + } // //const cookieRes = await fetch( "http://" + process.env.LOCAL_IP + ":" + process.env.LOCAL_PORT + '/login/check', { method: 'GET' }) // //await console.log(cookieRes.json()) //console.log('asdf')