Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vue.js @ When Vue Meet Graham

maoosi
January 17, 2017

Vue.js @ When Vue Meet Graham

Case study focused on meetgraham.com.au and the use of Vue.js into the project.
---
Melbourne Vue.js Meetup: http://www.meetup.com/vuejs-melbourne/
Google Slides: http://bit.ly/2jwygV8
Presentation by: http://sylvainsimao.fr

maoosi

January 17, 2017
Tweet

More Decks by maoosi

Other Decks in Programming

Transcript

  1. Hot Fact #2 Graham skin is made from silicone and

    his hair is real – some of which was ‘donated’ by our own team.
  2. Hot Fact #3 9 million page views in the first

    8 days – with no paid media spend.
  3. # vue.js core [email protected] vue-webpack-boilerplate vue-router vuex vuex-router-sync prerender-spa-plugin #

    dev eslint Babel webpack gulp phantomjs # libs gridle normalize.css particles.js spritz.js perfect-scrollbar swiper hammerjs Package.json
  4. Accessibility requirements • IE8+ browser support • WCGA 2.0 AA

    compliant • Still accessible if Javascript Disabled Problems • Vue.js 1.x does not support IE8 and below (ES5) • Vue.js does not work without Javascript enabled ?
  5. End User Main Website <!--[if lte IE 9]> <meta http-equiv="refresh"

    content="0; url=/fallback/"> <![endif]--> Browser <=IE9 ? JS Enabled? Fallback Website <noscript> <meta http-equiv="refresh" content="0; url=/fallback/"> </noscript> yes no no yes User flow
  6. Fallback Version • Static HTML files / No Javascript •

    Lighter version focused on content • Designed for IE8 • Shared content
  7. # Keyboard navigation + Screen-reader compatibility = Accessible for blind

    users v-on:keyup.enter v-bind:aria-hidden v-bind:tabindex
  8. SEO requirements • Crawlable by search engines Problems • Ajax

    + Preloader + Javascript = Troubles for most search engines • Vue.js 1.x does not include SSR support ?
  9. Viewer requirements • 360 viewer with hotspots • Hotspots must

    follow the 360 rotation • Entrance animation ?
  10. Sprite Test #1 What is the most efficient sprite-sheet layout?

    VS VS ? Horizontal Vertical Square Grid
  11. Sprite Test #2 What is the most efficient file format?

    VS ? + Flat JPG PNG 8 Alpha Mask Transparent PNG 24
  12. Sprite Hotspotter Handmade with Vue.js • Load Sprite • Add

    new hotspot • Delete hotspot • Positionate • Hide/Show • Export in JSON
  13. Global States with VueX • Preloading • Keep-alive once loaded

    • Sound management • Component communication and two ways data-binding
  14. X-Ray requirements • Needs to be responsive • Circle automatically

    goes back to its initial position after a certain time ?
  15. Why was Vue.js a good pick ? • Simplicity and

    ease of use • Flexibility (Sass / ES6 / Json Content / ...) • Stability and speed, even for high traffic websites
  16. The FWA SOTD 28 August 2016 Score: 84 / Day:

    3 Awwwards SOTD & Developer Award 7 September 2016 Score: 7.62 / Developer Award CSSDesignAwards WOTD 31 August 2016 Score: 7.70 / Code: 7.73 Honors & Awards
  17. There’s no magic to Vue.js – it just provides an

    elegant codebase to help you getting things done right