Giter VIP home page Giter VIP logo

time-tracking-dashboard's Introduction

Frontend Mentor - Time tracking dashboard solution

This is a solution to the Time tracking dashboard challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Links

Author

The challenge

Users should be able to:

  • View the optimal layout for the site depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Switch between viewing Daily, Weekly, and Monthly stats

Screenshot

My process

-HTML

  1. I set up the Html sections of the project .
  • CSS
  1. Now while coding CSS I had to build 7 components so I start with 1 main component and as other six componets are the same I created one of those. After competing one it was easier to make other 5 as they had the same styling.
  2. then I build desKtop first using grid , after completing it I switched the destop first to mobile, this approach helped me to write less code.
  3. I built the mobile reposniveness using Flex-box;
  • javaScript
  1. I fetched the data from the json file using the fetch method inside async function.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

  1. How to use grid area to make the layout of the dashboard.
  2. How to position an image at any position of the container using background-position.
  3. How to get data from a local JSON object, method like fetch and how to use async functions check for errors if any. To see how you can add code snippets, see below:
<div class="icon">
  <h2 class="option-icon">Work</h2>
</div>
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    'a  b c d'
    'a  e f g';
}
.icon .option-icon {
  background-image: url(./images/icon-ellipsis.svg);
  background-repeat: no-repeat;
  color: none;
  background-position: top 0.5rem right 10%;
}
async function getTime() {
  const response = await fetch('./data.json');
  const dataArray = await response.json();
  return dataArray;
}

Continued development

I would to focus on the css grid and it's properties as it has many in future more as it can make good layouts. I would focus on async function and dealing more with JSON objects using api's.

Useful resources

  • Example resource 2 - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept.

Acknowledgments

  • Frontend Mentor - @4002-Nonye His javaScript code gave me an idea of how to fetch data from local Json object.

time-tracking-dashboard's People

Contributors

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