This is my solution to the Order Summary Card challenge on Frontend Mentor. This project was a great opportunity to practice structuring a small, focused component while using semantic HTML and CSS.
Users should be able to:
- See hover states for interactive elements.
- Solution URL: Github Repository
- Live Site URL: Live preview of the project
- Semantic HTML5 markup
- CSS custom properties
- Flexbox for layout
- Mobile-first workflow
- Custom fonts using
@font-face
(Red Hat Display)
This project helped solidify my understanding of CSS custom properties, hover states, and responsive design. One of the highlights was implementing a reusable and visually appealing button style:
.card__button {
background-color: var(--bright-blue);
color: var(--pale-blue);
border: none;
border-radius: 8px;
padding: 0.75rem 1.5rem;
box-shadow: 0 10px 20px -10px var(--bright-blue);
transition: all 0.3s ease;
}
.card__button:hover {
background-color: hsl(245, 100%, 72%);
}
I plan to focus on improving:
- Consistency in typography across devices using a combination of custom fonts and responsive units.
- More complex layout management using CSS Grid in future projects.
- Enhancing interactivity with advanced hover and focus styles.