Skip to content

EnigmaTechx/QR-Code-App-Raw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - QR code component solution

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

Table of contents

Overview

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

-My first challenge creating a div which would cover the entire screen and serve as a background for the card item. The ultimate and most satisfying part of this challenge was applying one of the many 'How To Center a div' solutions. I decided to use flexbox for this because it is simpler and easy for me to remember.

I'm particularly proud of this CSS code snippet that enabled me to place the card item at the center of the page:

.container {
  background-color: hsl(212, 45%, 89%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Outfit", sans-serif;
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

Continued development

Fromm feedback I received on my first submission, I have learned important rules such as: -img tags should have an alt text -web pages should have main landmarks e.g. using <main> instead of <div> to identify the main content of a page -web pages should have a level-one heading i.e., <h1>

Author

About

building single-page qr-code component using just HTML and CSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published