Static Website for Displaying Quotes
This simple website takes in a JSON file and displays quotes that have been collected.
The schema of the json is as follows
{
"author": "Cory Doctorow",
"quote": "A private realm is necessary for human progress.",
"citation": "How to Destroy Surveillance Capitalism",
"link": "https://bookshop.org/p/books/how-to-destroy-surveillance-capitalism-cory-doctorow/16078317?ean=9781736205907",
"tags": ['surviellance', 'privacy', 'capitalism'']
}
Note currently the code only supports the author
and quote
fields, but I intend to update the website to add a citation and a link to
where to find the text being quoted.
I built this to be easily deployed using any of the many static website deployment services that exist today.
DigitalOcean allows individuals to deploy three static websites for free using their app platform and they provided a guide.
fly.io provides similar services
I sought to avoid dealing with node, so the location of where the quotes are stored is in env.js
under window.QUOTE_STORAGE
Search functionality provided by the Fuse.js library.
groovepaper.png
Background made by https://graphicriver.net/user/krispdesigns