Giter Club home page Giter Club logo

checkout_page's Introduction

Checkout_Page

checkoutpage

Click Me!

Description

The project aims to create a Checkout App using JS and Bootstrap.

Problem Statement

  • Your company has recently started on a project that aims to create a Checkout Page. So you and your colleagues have started to work on the project.

Project Skeleton

Checkout Page (folder)
|
|----readme.md                        
|----index.html
|----checkout.js
|----img (folder)
|----css (folder)
     |----index.css
     |----checkout.css
     |----universal.css

At the end of the project, the following topics are to be covered;

  • HTML
    • select
    • strong
    • del
    
    
  • CSS
  • Nested CSS
  • text-decoration: line-through
   .nav__list--btn {
   color: orangered;
   font-size: 14px;
   cursor: pointer;

   & i:hover {
       color: white;
       border-radius: 50%;
       background-color: #ff7623;
   }
   }

.line-through {
   text-decoration: line-through;
}
  
  • JS

    • DOM Manipulations

      • innerHTML
      • innerText
      • textContent
    • DOM Selectors

    • querySelector

    • querySelectorAll

    • const productList = document.querySelector("div.main__product-painel"); //?basina div yazarak belirtirsek performans acisindan daha hizli olur

    • Events

      • click
      • load

    -e.target & e.currentTarget

         e.currentTarget.firstElementChild.innerText = "My Cart";
        //? NOT:e.target tiklanan elementi verirken e.currentTarget sabittir ve addEventListener in tanimlandigi elemandir burda navbarList  ve daha hizlidir
    
    • Capturing & Bubbling

    • DOM Traversing

      • nextElementSibling
      • e.target.closest(".main__product-info"
      • if (e.target.classList.contains("fa-plus"))
      • e.target.previousElementSibling.innerText++;
      • firstElementChild
      • children
    • localStorage & sessionStorage

    • Array Methods

    • forEach() & reduce()

      productTotalPriceDivs.forEach(eachProductTotalPriceDiv => {
         subtotal += parseFloat(eachProductTotalPriceDiv.innerText)
      });
      
      reduce()
      const subTotalAlternatif = [...productPriceDivs]; //reduce icin array a dönüstürmeliyiz
      let subtotal = subTotalAlternatif.reduce((acc, curr) => {
        return acc + parseFloat(curr.innerText); //parseFloat  stringten float yapar
      }, 0);
      
      
    • parseFloat

      const taxPrice = parseFloat(subtotal * localStorage.getItem("taxRate")); parseFloat  stringten float yapar
      
      
    • if else - if - else conditions

    • Ternary

      let shipping = (subtotal > 0 ? parseFloat(localStorage.getItem("shippingPrice")) : 0);
      
      
    • String Methods( toFixed() )

    productTotalPriceDiv.innerText = (productQuantity * productPrice).toFixed(2);
    

At the end of the project, developers will be able to;

  • improve coding skills within HTML, CSS and JS

  • use git commands (push, pull, commit, add etc.) and Github as a Version Control System.

Notes

  • You can use HTML, CSS and JS to complete this project.

Happy Coding

checkout_page's People

Contributors

kaplanh avatar

Watchers

 avatar

checkout_page's Issues

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.