Submitted over 2 years agoA solution to the Product preview card component challenge
Product Preview Card Component HTML CSS3 - Mobile First Approach
accessibility, foundation
@amalhanaja

Solution retrospective
My process
- Slicing UI into HTML Structure
- Card (<main>)
- Image (<figure>)
- <img>
- Content (<section>)
- Overline (<h2>)
- Title (<h1>)
- Description (<p>)
- Price Section (<section>)
- Final Price (<h3>)
- Initial Price (<span>)
- Button (<button>)
- Icon (<img>)
- Text ()
- Define Styleguide as variable in CSS (color, font, typography)
- Styling using CSS
Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first approach
What I learned
- REM and EM: use rem for font-size and em for others
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Alfian Akmal Hanantio's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord