Skip to content

Fweddi/1821-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

1821 mode

To do

  • What is this all about?
  • How to run the app locally
  • How it's deployed
  • Write what components do

What is this all about?

  • 2021 May marks the Guardian's 200 year birthday! For the occasion, the four fellows at the Product & Engineering department decided to create a 1821 version of the Guardian front page during the Hack day in April 2021 (Presentation). The idea won the Best Conceptual Hack category!
  • The articles are sourced from the Guardian's Content API. We used React to style the page. We then added old ads to give the 19th century look & feel to it.

Components

Api.js renders the title and body of an article. The component takes an article attribute which is the identifier of a Guardian article, and a percentage attribute specifying the percentage of the text to display.

Example:

<Api article="artanddesign/2021/apr/23/damn-this-is-a-caravaggio-the-inside-story-of-an-old-master-found-in-spain" percentage="60" />

Deployment

  • The app is currently hosted on surge(http://surge.sh) with the domain 1821.surge.sh
  • In order to deploy any changes made to the app, run npm build -> cd build -> echo 1821.surge.sh >CNAME -> surge .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.0%
  • CSS 40.7%
  • HTML 11.3%