DEV Community

Cover image for Challenge 1 - Results summary component - Frontend Mentor
Abhishek Baliyan
Abhishek Baliyan

Posted on

Challenge 1 - Results summary component - Frontend Mentor

Frontend Mentor - Results summary component solution

This is a solution to the Results summary component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page
  • Bonus: Use the local JSON data to dynamically populate the content

Screenshot

Desktop View

Mobile View

Links

My process

  • First, I See the design then thought, how do I lay that out in html
  • Then I wrote the HTML
  • Second, how can i use CSS to achieve the layout
  • Then I wrote the CSS for layout
  • Third, how should each element be styled
  • Then I wrote CSS for each element
  • Finally I refactored the css

Built with

  • Semantic HTML5 markup
  • CSS
  • Flexbox
  • Mobile-first workflow

What I learned

  • CSS Layout, Responsiveness, transparency, flexbox

This code below took some time

<div id="bg-circle">
  <h2>76</h2>
  <p>of 100</p>
</div>
Enter fullscreen mode Exit fullscreen mode
#bg-circle {
    margin: 20px auto;
    padding: 26px;
    border-radius: 50%;
    width: 126px;
    background: linear-gradient(hsla(256, 72%, 46%, 1), hsla(241, 72%, 46%, 0));
}
Enter fullscreen mode Exit fullscreen mode

Continued development

  • CSS Grid
  • In depth Flexbox

Useful resources

Author

Acknowledgments

I really appreciate the tutorial youtube playlist of Frontend Web Development from Zach Gollwitzer.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️