Giter Site home page Giter Site logo

idemudiamahie / result-summary-component-main-project Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 386 KB

HTML, CSS & JAVASCRIPT Project

HTML 21.85% JavaScript 14.30% CSS 63.85%
css3 css3-mediaqueries css3-selectors fetch-api html-css-javascript html5 javascript html-semantic-elements

result-summary-component-main-project's Introduction

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.

result-summary-component-main-project's People

Contributors

idemudiamahie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.