Skip to content

A responsive web component that displays test results with a clean, modern UI. Built with HTML, CSS, and JavaScript. Features dynamic content loading and responsive design for all screen sizes.

Notifications You must be signed in to change notification settings

Ayokanmi-Adejola/Result-Summary-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Vanilla JavaScript
  • JSON data handling

What I learned

This project helped me practice several important front-end development concepts:

  1. Responsive Design: Creating a layout that works well on both mobile and desktop screens using CSS flexbox and media queries.

  2. CSS Custom Properties: Using CSS variables to maintain a consistent color scheme and make future updates easier.

:root {
  /* Primary colors */
  --light-red: hsl(0, 100%, 67%);
  --light-red-bg: hsla(0, 100%, 67%, 0.1);
  --orangey-yellow: hsl(39, 100%, 56%);
  /* More color variables... */
}
  1. Dynamic Content Loading: Working with JSON data to populate the page content dynamically using JavaScript.

  2. CORS Understanding: Learning about Cross-Origin Resource Sharing (CORS) issues when working with local files and how to resolve them. I had to modify my approach to handle JSON data directly in the JavaScript file to avoid CORS errors when opening the HTML file directly from the file system.

Continued development

In future projects, I plan to focus on:

  • Implementing more advanced JavaScript functionality
  • Exploring CSS Grid for more complex layouts
  • Learning about proper error handling in fetch operations
  • Setting up local development environments to avoid CORS issues

Useful resources

Author

About

A responsive web component that displays test results with a clean, modern UI. Built with HTML, CSS, and JavaScript. Features dynamic content loading and responsive design for all screen sizes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published