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.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-responsive design
- Google Fonts
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;
}
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
- MDN Web Docs - Comprehensive reference for HTML, CSS, and JavaScript.
- CSS-Tricks Flexbox Guide - Excellent visual guide to Flexbox.
- Google Fonts - For typography options.
- Frontend Mentor - @Ayokanmi-Adejola