Giter VIP home page Giter VIP logo

crowdfunding-site's Introduction

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Javascript

What I learned

  • I had more understanding on structuring the page with new html semantics
<main>
  <!-- mastercraft section starts, first section of the main section -->
  <section class="mastercraft sections-general">....</section>
</main>
  • I learnt a lot on css group classes and its selectors
.offers {
  border: 1px solid rgb(148, 141, 141);
  padding: 1rem 1rem;
  margin: 0.5rem 0;
  border-radius: 1rem;
}
....
}
  • I understood more on the concept of DOM manipulation
  • I also got more ideas on how to loop through the DOM
// adding function to the exit button in the back this project page
// creating and storing  a variable holding the exit btn dom element in the back this project modal
const exitPledgePageBtn = document.querySelector(".exit");
// adding an event listerner to the exit btn

exitPledgePageBtn.addEventListener("click", function () {
  pledgePage.classList.add("hide");
  overlay.classList.add("hidden");
  // looping through all the checkboxes to uncheck and restore to default when the exit btn is clicked
  for (let i = 0; i < checkBox.length; i++) {
    checkBox[i].checked = false;
    offersModal[i].classList.remove("border-color");
    moneyPledgeDiv[i].classList.add("hide");
  }
});

Continued development

  • Css and its pre-processors(SASS)
  • Javascript (DOM manipulation, eventlisterners, functions, loops, arrays and objects)

Useful resources

Author

Acknowledgments

  • I acknowledge my good friend Akay and stackoverflow for their immense help...

crowdfunding-site's People

Contributors

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