MatiasCarabella / redditMysteryButton

One of my first interview challenges (2019): A front-end recreation project of Reddit. It uses HTML, CSS, and JavaScript to create the requested functionality and mimic the look and feel of Reddit’s website. The project is for learning purposes only and does not include any back-end functionality.

Home Page:https://matiascarabella.github.io/redditMysteryButton/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reddit Mystery Button

This project was one of the first challenges I faced in the professional world. It was part of an interview process for a company that I applied to back in 2019. The goal was to create a 'Reddit clone' with an imaginary feature for April Fools. I learned a lot from this experience and I’m quite proud of the result given my knowledge at the time. My first job ended up being more back-end oriented, which became my main focus later on. 😊


Problem

The date is March 20, 2015, you're a Reddit employee and you come up with an 'April Fools' prank: To create a section of the page containing a large button and a counter indicating a descending amount of seconds.

The counter descends from 60 seconds to 0 and only resets if someone with the page open presses the button. It can only be pressed once per user and, when a user presses it, a color is assigned as a reminder based on the following table:

Requirement

A single page application that implements the button idea considering the following aspects:

  • The 'click' of the button is an irreversible action.
  • The single page should be minimalistic.
  • Since it is for a joke, nothing about how the button works should be explained explicitly.
  • You can decide how much and what kind of contextual information to provide to the user.
  • Simulate other people's clicks and have everything work offline (with some standard random function).

Extras

In addition, you can apply any of the following:

  • Use Angular 7 as a framework. You can use Angular Material as UX library.
  • Add visualizations for the different events that occur automatically.
  • Add visualizations to indicate the user's color.
  • Keep track of automatic clicks and show some statistics or related visualization.

About

One of my first interview challenges (2019): A front-end recreation project of Reddit. It uses HTML, CSS, and JavaScript to create the requested functionality and mimic the look and feel of Reddit’s website. The project is for learning purposes only and does not include any back-end functionality.

https://matiascarabella.github.io/redditMysteryButton/


Languages

Language:CSS 38.2%Language:JavaScript 35.0%Language:HTML 26.8%