Skip to content

sdkdeepa/QRCode-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 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

Desktop view Mobile view

Links

My process

First built semmatic HTML and then figured our the styling. Added accessibility at the end.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Accessibility: alt text for the image and taborder

What I learned

I learnt about rem and color: hls() in css. Also learnt how to add tab order in the HTML for the elements present.

body {
	background-color: hsl(212, 45%, 89%);
	font-size: 15px;
	font-family: 'Outfit', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 4rem;
}

.card {
	background-color: hsl(0, 0%, 100%);
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
	border-radius: 0.625rem;
	width: 200px;
	padding: 0.9rem;
	margin-bottom: 1rem;
}

Continued development

I would like to build my own QR code generator. I could use for my content sharing such as videos, netlify urls or my workshop. this was I don't need to use external QR Geneators.

Useful resources

Read these to refresh my memory:

  1. Tab Order
  2. color:hsl
  3. Flexbox
  4. REM

Author

Frontend Mentor - @sdkdeepa

About

Building QR Code component in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published