Corona free hug
If you watched the news recently, you might have noticed that the world has changed.
Open a PR, when approved and merged, bitrise will automatically update the website
How it works
All pages are completely static and hosted on Gcloud storage.
They pages are getting generated on build time with React and some node scripts.
Check out the pages folder to see the source code of all pages.
CSS first, JS maybe later
All pages work with CSS and have some tiny amount of JS for extra interactivity.
Like, how much client JS do you need to create a form?
Creating a hug
A serverless cloud function takes care of hug creation.
The function can be found in worker-triggers.
This will use this repo as a package to run the createHug script.
The script will render another static page and upload it to Gcloud storage.
This way, there'll be no server delay when opening a page; but a little bit when creating a hug