Skip to content

Mastercraft Bamboo Monitor website where you can buy a great desk to improve your comfort when you are using a PC. Built with HTML5, SASS/SCSS, and JavaScript.

Notifications You must be signed in to change notification settings

ArthurGC/Mastercraft_Bamboo_Monitor_Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Crowdfunding product page solution

This is a solution to the Crowdfunding product page 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 depending on their device's screen size
  • See hover states for interactive elements
  • Make a selection of which pledge to make
  • See an updated progress bar and total money raised based on their pledge total after confirming a pledge
  • See the number of total backers increment by one after confirming a pledge
  • Toggle whether or not the product is bookmarked

Screenshot

Mastercraft Preview

Links

My process

Built with

  • Semantic HTML5 markup
  • SCSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Media Queries

What I learned

This challenge was useful for learning about localStorage and SessionStorage. Besides, get more training about mobile first and media queries on CSS.

This was for declare a default variables if there aren't any variable saved on your localStorage.

if (typeof(Storage) !== "undefined") {
  // Store
  if (!localStorage.money) {
    localStorage.money = 89914;
  }
  if (!localStorage.backers) {
    localStorage.backers = 5007;
  }
  if (!localStorage.width) {
    localStorage.width = 89;
  }
  if (!localStorage.bamboo) {
    localStorage.bamboo = 101;
  }
  if (!localStorage.black) {
    localStorage.black = 64;
  }
  if (!localStorage.mahogany) {
    localStorage.mahogany = 0;
  }
}

This was useful for refresh edited styles from JS but not for CSS.

    element.style.anyProperty = '';

Useful resources

Author

About

Mastercraft Bamboo Monitor website where you can buy a great desk to improve your comfort when you are using a PC. Built with HTML5, SASS/SCSS, and JavaScript.

Topics

Resources

Stars

Watchers

Forks