Skip to content

This is a challenge from the Frontend Mentor website. Coding Languages used were HTML and CSS

Notifications You must be signed in to change notification settings

Carlos-A-P/Stats-Preview-Card-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stats Preview Card Component

Table of contents

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size

Screenshot

result

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

I used grids to format my image and content box which I found to be very helpful. I also included the image into my project by using background image which was very interesting and useful.

.context {
	margin: 10% auto;
	width: 90%;
	display: grid;
	grid-gap: 0;
	grid-template-areas:
		"image"
		"wrapper";
}

.wrapper {
	grid-area: wrapper;
	text-align: center;
	border-radius: 0 0 0.75rem 0.75rem;
	padding: 2rem 0.7rem 2.5rem;
	background-color: rgb(26, 24, 54);
}

.image {
	grid-area: image;
	min-height: 250px;
	border-radius: 0.75em 0.75em 0 0;
	background-image: url(../images/image-header-desktop.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	background-blend-mode: soft-light;
	background-color: rgb(112, 51, 142);
}

Continued development

I want to continue learning about grid and flex-box. these two tools were extremely useful. I still have some trouble debugging some bugs and knowing what looks good asthetically but I feel like I just need some more practice.

Useful resources

Author

About

This is a challenge from the Frontend Mentor website. Coding Languages used were HTML and CSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published