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.
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
- The above links to a mobile view solution for the project.
- The above links to a desktop view solution for the project.
- Accessibility (Semantic HTML5 markup)
- CSS custom properties
- Flexbox
- CSS Grid
- 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.
- 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.
- Link to Mr. Dave Gray's Youtube Channel - His videos can turn you to a full stack web developer.
- Link to Mr. Dave Gray's CSS Tutorial - This is an 11hrs video that can help you understand CSS better. It is about 11hrs long. Take your time.
- Link to freeCodeCamp Youtube page - This is a rich repository of knowledge. I found Mr. Gray here.
- email address - [idemudiamahie23@gmail.com]
- Twitter - @mahie_id
- 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.