Skip to content

AldrinSeanPereira/order-summary-component-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

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

order-summary-component-main

Links

  • Solution URL: link
  • Live Site URL: link

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

The biggest problem I faced in this project was how to structure the music icon, price and change link so it fits in a responsive design

Some new concepts I learned were on how to use properties for background images (background-image, background-size, background-repeat)

I had to constantly put the code on GitHub to see how the code worked on my mobile too.


NOTE:
The problem can be solved better by using CSS Grid instead of the combination of CSS Flexbox and HTML in this project.

I will use Grid in future practice projects



I had to spend a lot more time on these code snippets:
  • for the HTML, the problem was whether I should add class names like subcontainer and subcontainer-subcontainer to the divs inside annual-plan


<div class="annual-plan">
      <div>
        <img src="images/icon-music.svg" alt="Symbol of music" width="50px" class="music-icon" />
        <div>
          <h5 class="annual-plan-text">Annual Plan</h5>
          <p class="annual-plan-price">$59.99/year</p>
        </div>
      </div>
      <a href="" class="annual-plan-change">Change</a>
    </div>

  • for the CSS, I finally went with .annual-plan div method of applying CSS which is easier to read
  • the box shadow part was a trial-and-error method of finding what worked and it was tough.
body,
main,
.annual-plan,
.annual-plan div,
.annual-plan div div {
    display: flex;
}

.button-proceed {
    box-shadow:  0 18px 20px 0px var(--primary-pale-blue);
}

Continued development

The projects I make in future will use CSS Grid layout which I am very eager to implement so I can improve my skill in using it.

Useful resources

Author

Acknowledgments

My sincere thanks to Frontend Mentor and the help section of their discord server.

Releases

No releases published

Sponsor this project

 

Packages

No packages published