Skip to content

A responsive card component built with HTML and CSS that showcases an order summary for a music subscription service. Features hover states for interactive elements and adapts to different screen sizes.

Notifications You must be signed in to change notification settings

Ayokanmi-Adejola/Order-summary-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

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

Screenshot

Desktop View

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-responsive design
  • Google Fonts

What I learned

This project helped me improve my skills in creating responsive components that adapt to different screen sizes. I learned how to:

  • Structure HTML semantically for better accessibility
  • Use Flexbox for layout positioning
  • Implement hover states for interactive elements
  • Create responsive designs with media queries
  • Work with SVG background patterns

Some code snippets I'm proud of:

<div class="plan-container">
  <div class="plan-info">
    <img src="./images/icon-music.svg" alt="Music icon" class="music-icon">
    <div class="plan-details">
      <h2>Annual Plan</h2>
      <p>$59.99/year</p>
    </div>
  </div>
  <a href="#" class="change-link">Change</a>
</div>
.plan-container {
  background-color: hsl(225, 100%, 98%); /* Very pale blue */
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.btn-primary:hover {
  opacity: 0.8;
}

Continued development

In future projects, I want to focus on:

  • Improving my CSS animations and transitions
  • Implementing more advanced responsive design techniques
  • Exploring CSS Grid for more complex layouts
  • Enhancing accessibility features

Useful resources

Author

About

A responsive card component built with HTML and CSS that showcases an order summary for a music subscription service. Features hover states for interactive elements and adapts to different screen sizes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published