Code Monkey home page Code Monkey logo

personal-dashboard's Introduction

Personal Dashboard

This is a clone of the Google Momentum Browser Extension Dashboard - Momentum

Leading up to the build up of the page I worked with various APIs while paying attention to Promise Rejections and Error Handling

Basically, It's the default page that will pop up once a user opens up a new tab on google chrome

Free APIs used in the project are :

  • Unsplash photos API
  • Crypto currencies API
  • Weather API (User has to allow location access for the data to be rendered)
  • Random Quotes/Advice API
  • Sports API for the EPL Table standings

Try out the live demo

Initial appearance of the page

personal_dashboard_bg

After a couple of improvements

personalDB

Lazy Loading

Used the lazysizes JS library lazy loader CDN

<script src="https://cdn.jsdelivr.net/npm/[email protected]/lazysizes.min.js"></script>

This library provides lazy loading functionality for images and other media on a webpage

To enable the lazy loading on the images one needs the lazyload class to the images and change the src attribute to data-src

<img data-src="image.jpg" class="lazyload" />

For the background image one adds the data-bg attribute which will be used by the library to lazy load the background image

document.body.style.backgroundImage = `url(${data.urls.regular})`;
document.body.setAttribute("data-bg", "lazyload");

Other Features to add/Caveats :

  • Include SameSite cookie attribute
  • Placeholder Icons or Spinners
  • Responsiveness in from Medium screen sizes
  • Text Contrast

The Project hasn't been added to Google Chrome Extensions however curious developers are welcome to try this out. Find out more info on the below link

Chrome Developer Docs

personal-dashboard's People

Contributors

nsm722 avatar

Stargazers

 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.