dieudonneallognon / profile-card-component

Home Page:https://dieudonneallognon.github.io/profile-card-component/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend Mentor - Profile card component solution

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

Table of contents

Overview

The challenge

  • Build out the project to the designs provided

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Less

What I learned

This project helped me to understand more about background image positioning properties.

html {

  &::before,
  &::after {
      position: absolute;
      content: "";

      width: inherit;
      height: inherit;
      max-width: inherit;
      min-width: inherit;
      background-repeat: no-repeat;
      z-index: -1;
  }

  &::before {
      background-image: url("./images/bg-pattern-top.svg");
      background-position-y: -28.7rem;
      background-position-x: -45.2rem;
  }

  &::after {
      background-image: url("./images/bg-pattern-bottom.svg");
      top: 0;
      background-position-x: 8.7rem;
      background-position-y: 21rem;
  }

  ...
}

@media (min-width: 376px) {
    html {
        &::before {
            background-position-y: -28rem;
            background-position-x: -16rem;
        }

        &::after {
            top: 0;
            background-position-x: 38.5rem;
            background-position-y: 20.8rem;
        }
    }
}

Author

About

https://dieudonneallognon.github.io/profile-card-component/


Languages

Language:Less 60.7%Language:HTML 18.4%Language:CSS 14.2%Language:JavaScript 6.7%