We have developed the Kate Spade Unlock Your Heart experience in two main parts:
- a static site generated by a Vue.js app
- a serverless lambda app (hosted on now) that generates and uploads a share image and share url
The two apps live in the same git repository hosted on GitHub here: https://github.com/kingandpartners/unlock-your-heart
The Vue.js app generates and deploys the static site that lives at https://katespadeunlockyourheart.com.
- we utilized Vue.js' Single File Components to architect the primary UI/UX
- inside the
.vue
files we use SCSS - there is no responsive framework used, just media queries inside the <style> tag inside the
.vue
files - translations are managed inside the projects
lang/
directory which contains I18n locale files for: Arabic, German, English, Spanish, and Japanese. - when the app is built for deploy it consolidates down to one single js file:
- https://katespadeunlockyourheart.com/js/app.js
- this JS file will also be included into tapestry sites like https://www.katespade.com
The Serverless Lambda App lives inside the screenshooter/
portion of the repository and is deployed to now.
- performs three main tasks:
- takes a screenshot of the customized mantra
- generates share html
- uploads the screenshot and the html to S3
- once complete the urls for the share html and share image are passed back for use in the Vue.js app.
We have provided GitHub access to our repository for Chris Hunt (@Chris-CreateLondon).
Inside the repository we document how to setup, run, and deploy the app. It is not containerized but should be simple to setup following instructions in the project's README.