mehdi-adham / profile-card-component-main

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

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
  • CSS custom properties
  • Flexbox

What I learned

I use multiple background images for body element.

body{
    font-size: var(--name-stats-font-size);
    font-family: var(--Kumbh-Sans-font);
    background-color: var(--Dark-cyan);
    background-image: url(images/bg-pattern-top.svg), url(images/bg-pattern-bottom.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: bottom 35vh right 50vw, top 50vh left 50vw;
    /*background-position: top 50vh left 10vw, bottom -515px right -125px;*/
    /*background-size: 800px auto, 800px auto;*/
}

Useful resources

Relative length units:

Relative length units are relative to something else, perhaps the size of the parent element's font, or the size of the viewport. The benefit of using relative units is that with some careful planning you can make it so the size of text or other elements scales relative to everything else on the page.

CSS Multiple Backgrounds

In this chapter you will learn how to add multiple background images to one element.

Author

About

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

License:MIT License


Languages

Language:CSS 64.2%Language:HTML 35.8%