Skip to content

IdemudiaMahie/result-summary-component-main-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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.

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

Screenshot

  • The above links to a mobile view solution for the project.

  • The above links to a desktop view solution for the project.

My process

Built with

  • Accessibility (Semantic HTML5 markup)
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

  • I got to learn how to use true type font.
@font-face {
    font-family: mahieHankenGroteskVariableFont;
    src: url(./assets/fonts/HankenGrotesk-VariableFont_wght.ttf);
}
  • This is what it looks like in action, using css custom property.
body {font-family: mahieHankenGroteskVariableFont;}
  • Improved in my capabilities with Pseudo-classes.
  section:last-child p:last-of-type span:first-child {
      color: var(--Cobalt-blue);
  }
  • I learned to use Pseudo-classes as selectors in JavaScript.
const summarySection = document.querySelector('section:last-child')
const summaryCategory = summarySection.querySelectorAll('p span:first-child')
  • I also learned about using fetch API in JavaScript, which is useful when working with APIs or making HTTP requests from your frontend application.
fetch('./data.json')
    .then((response) => response.json())
    .then((json) => console.log(json))
  • I was able to get an understanding of how to fetch data from a json file using javascript, and then display it in html format.

Continued development

  • While i could have carried this project with a much easier route of using just HTML and CSS, i decided to venture into using JavaScript and JSON to practise those technologies. I tend to still add some interactivity to the project.

Useful resources

Author

Acknowledgments

  • My deepest appreciation goes to Mr. Dave Gray whose tutorial videos has helped build my foundation in web development.
  • I am also grateful to GMT Software whose coding bootcamp has given me environment and community of like-minded individuals to grow.

Date of Completion : November 2nd, 2023.