kichopher / frontentMentorChallenge-1-productPreviewCard

My first frontend-mentor challenge. Trying to hone my HTML,CSS skills.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend Mentor - Product preview card component solution

This is a solution to the Product preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover and focus states for interactive elements

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

I could practice the mobile-first approach that I recently learned from this course on creating responsive layouts. I learned the difference between button:focus and button:active and also used outline property to customise the outline on focus.

Continued development

On the mobile view, the button keeps the changed background color on tap until tap is made outside the button area. I should figure why this is happening and then find a way to make the button get back to the original background color right on releasing the touch on the button.

Useful resources

Author

About

My first frontend-mentor challenge. Trying to hone my HTML,CSS skills.


Languages

Language:CSS 56.1%Language:HTML 43.9%