Skip to content

georged17/BusinessCard

Repository files navigation

Frontend Mentor - Stats preview card component solution

This is my solution to the Stats preview card component challenge on Frontend Mentor.

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

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Media queries

What I learned

I started this project after I learned to work with Figma, and thought it would be a good idea to recreate this design. I did that relatively fast, one thing led to another, and I started coding it as well!

I think I did a pretty good job. There are two things I'm not sure of though.

  1. If I made the images responsive the right way
  2. Did I use media queries the right way semantically speaking?
  3. Why won't the card stop growing in size after the last media query.
.Mobile-Image{
    width: 100%;
    height: 20rem;
    background-image: url(./image-header-mobile.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.Mobile-Overlay{
    width: 100%;
    height: 20rem;
    background-color: hsl(277, 64%, 61%);
    opacity: 0.4;
}

Author

Acknowledgments

This is where you can give a hat tip to anyone who helped you out on this project. Perhaps you worked in a team or got some inspiration from someone else's solution. This is the perfect place to give them some credit.

Note: Delete this note and edit this section's content as necessary. If you completed this challenge by yourself, feel free to delete this section entirely.

About

My first challenge from frontendmasters.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published