Developer Diary
  • Developer Diary
  • 2019

    • June 2019
    • July 2019
    • August 2019
    • September 2019
    • October 2019
    • November 2019
    • December, 2019
  • 2020

    • January 2020
    • February 2020
    • March 2020
    • April 2020
    • May, 2020
    • June 2020
    • July 2020
    • August 2020
    • September 2020
    • October 2020
    • November 2020
    • December 2020
  • 2021

    • January 2021
    • February 2021
    • February 2021
    • April 2021
    • May 2021
    • June 2021
    • July 2021
    • August 2021
    • September 2021
    • October 2021
    • November 2021
    • December 2021
  • 2022

    • January 2022
    • February 2022
    • March 2022
    • April 2022
    • May 2022
    • June 2022
    • July 2022
    • August 2022
    • September 2022
    • October 2022
    • November 2022
    • December 2022
  • 2023

    • January 2023
    • February 2023
    • March 2023
    • April 2023
    • May 2023
    • June 2023
    • July 2023
    • August 2023
    • September 2023
    • October 2023
    • November 2023
    • December 2023
  • 2024

    • January 2024
    • February 2024
    • March 2024
    • April 2024
    • May 2024
    • June 2024
    • July 2024
    • August, 2024
    • September 2024
    • October 2024
    • November 2024
    • December 2024
  • 2025

    • January 2025
    • February 2025
    • March 2025
    • April 2025
    • May 2025
    • June 2025
    • July 2025
    • August 2025
    • September 2025
    • October 2025
    • November 2025
    • December 2025
  • 2026

    • January 2026
    • February 2026

June 19, 2019

Working on brands list for TAP

  • Used this package to make the brands scroll

It's client side only, so found some new ways in Nuxt to make this work

Use the no-ssr component

<no-ssr v-if="showBanner">
  <marquee-text :duration="30" :repeat="2">
    ...
  </marquee-text>
</no-ssr>

Import inside components method

  components: {
    'MarqueeText': () => import('vue-marquee-text-component')
  },

Then only show the no-ssr component after mount

  mounted() {
    if (process.client) {
      this.showBanner = true
    }
  }

Working on navigation on TAP and Sass loops

  • Weird rotation and lots of z-index issues here.
  • Used my first production sass loop to indent at an angle
li {
  padding: 0.666em 0.5em 0.666em 0;
  @for $i from 1 through 7 {
    &:nth-child(#{$i}) {
      padding-left: #{0.125*$i}em;
    }
  }
}

E led our weekly lunch and we talked about Docker.

  • Learned about the difference between images and containers, and some commands
  • docker image -ls and docker ps
  • compose files and volumes

Back to TAP navigation

  • wondering if I should abandon the UI kit and just use the Nuxt site
  • Got navigation done, had to add a wrapper to control animation overflow, but that's fine, added a click handler for it close.
  • Used some wonky stuff to communicate between child components, normal pattern, ok, but maybe I should have used vuex?