Loading...

  • HTML
  • CSS
  • JS
free

Article preview component

Newbie

Assets Provided Include

  • Sketch and Figma design file access - Unlock access with pro
  • JPEG design files for mobile & desktop layouts
  • Style guide for fonts, colours, etc
  • Optimized image assets
  • README file to help you get started
  • HTML file with pre-written content

Challenge

Brief

Your challenge is to build out this article preview component and get it looking as close to the design as possible.

You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.

The only JavaScript you'll need for this challenge is to initiate the share options when someone clicks the share icon.

Your users should be able to:

  • View the optimal layout for the component depending on their device's screen size
  • See the social media share links when they click the share icon

Download the starter code and go through the README.md file. This will provide further details about the project. The style-guide.md file is where you'll find colors, fonts, etc.

Want some support on the challenge? Join our Slack community and ask questions in the help channel.

Getting started

  1. Download the starter code
  2. Set up the project with version control (e.g. Git)

  3. Read the README.md file and have a look around the project

  4. Get colors, fonts etc from the style-guide.md file

  5. Set up your project/file architecture however you want

  6. Start coding!

Ideas to test yourself

  • Add animations when the share icon is clicked

  • Write your styles using a pre-processor, such as Sass, Less or Stylus

  • Practice working in a team by building with friends

FAQs

Slack logo

Join our Slack community

Join over 27,000 people taking the challenges, talking about their code, helping each other, and chatting about all things front-end!