Skip to content

ob2code/order-summary-component

Repository files navigation

Frontend Mentor - Order summary card solution

This is a solution to the Order summary card 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:

  • See hover states for interactive elements

Screenshot

Links

My process

Built with

  • Plain CSS & HTML
  • BEM methodology
  • Flexbox
  • Mobile-first workflow

What I learned

Draw out the layout before getting started with coding, break the layout to the smallest components and also check if they need a container or wrapper.

Try to think about components that can be reusable as BEM applying (seems difficult for me at first 🙄)

<div class="card__content">
  <h1 class="card__content__title">Order Summary</h1>
  <p class="card__content__desc">You can now listen to millions of songs, audiobooks, and podcasts on any device anywhere you like!</p>
  ......
</div>

Using filter to brightness effect when hover

.btn--blue:hover {
  filter: var(--brightness);
}

Useful resources

Author

Thanks for reading. 🎉

About

Frontend Mentor - Order summary card

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages