This is a solution to the 3-column preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
In this project, I designed and implemented a responsive 3 column preview card component using HTML and CSS. The challenge involved creating a layout that showcases different types of cars - sedans, SUVs, and luxury cars. The primary focus was on crafting an aesthetically pleasing and functional design that adapts seamlessly to various screen sizes.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Solution URL: My solution URL
- Live Site URL: live site URL
Firstly I redesigned the component using figma since I'm not a pro member. This helped me get precise measurements of screens. Then proceeded with page structure using the html. Review every change on the browser and save the my progress on github. I wrote the css style for the large screen and lastly the mobile screen review the changes every step of the way
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
I leant how to use media queries and the specifications of the css properties. This helped in implementing the mobile layout.
This is how you can add codes in the stylesheet file see below:
@media screen (max-width: 26.44rem) {
/* CSS code here*/
}
A preview page for earch car when a user clicks on the learn more button.
- - This helped me learn media queries reason. I really liked this pattern and will use it going forward.
- Making Website responsive - This is an amazing video which helped me finally understand the use of media queries, specifically the screen and max width property. I'd recommend it to anyone still learning this concept.
- Website - Michael Sanyomor
- Frontend Mentor - @sanyomor-01
- Twitter - @sanyo_mor
Thanks to me for not giving and making this project with Love. A pat on my back.