Skip to content

Instantly share code, notes, and snippets.

@rstacruz
Last active March 16, 2018 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rstacruz/f1221abbe4109544a8acb7ea7acb23d6 to your computer and use it in GitHub Desktop.
Save rstacruz/f1221abbe4109544a8acb7ea7acb23d6 to your computer and use it in GitHub Desktop.
Timer UI

Timer UI

View mockup · View redpen · Start coding

Instructions

  • You have 15 minutes 20 minutes to implement this UI.
  • Text, colors, and other assets are provided for you.
  • Some basic CSS is provided for you.
  • You can search online if you get stuck.
  • When you're done, Fork the Codepen page and share with us the URL.

CSS

  • Colors:

    $text: #111111;
    $gray-text: #778899;
    $background: #eeeef1;
  • Metrics:

    $timer-width: 224px;
    $close-button-width: 64px;
  • Fonts:

    $font: 'Roboto', sans-serif;
  • CSS imports:

    @import url('https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,700');
    @import url('https://cdn.jsdelivr.net/npm/sanitize.css@5.0.0/sanitize.css');

* * *

Bonus round 🎉

If you have extra time, make it responsive!

Tips and hints

  • An easy way to make a X button is ×.
  • Alternatively, get a plus sign (+) and rotate it 45 degrees.
  • To get a thin font, use font-weight: 200 (light) or font-weight: 100 (ultra-light).
  • If you did the layout with flexbox, you can easily make it responsive with mostly just one property.
  • Make circles easily with border-radius: 50%.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment