Skip to content

roger-hope/qr-code-component

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
  • SASS
  • Flexbox
  • Mobile-first workflow
  • Vite - Frontend Tooling
  • SASS - For styles

What I learned

This project is a good starter for some experimental CSS. In this particular one, I made use of very basic SASS and standard HTML5. This produced the desired result, but there is room to upgrade this component using animation, JavaScript to dynamically generate the QR-code image, and create mixins for the border radius and drop-shadows. The below mixin is a start of the next version of this project.:

SASS mixin to define positioning.

@mixin flex($dir: row, $just: space-between, $align: center) {
  display: flex;
  flex-direction: $dir;
  justify-content: $just;
  align-items: $align;
}

SASS to center a div vertically and horizontally. A common pain, easily solved with Flexbox

body {
  background-color: #d5e1ef;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

Continued development

Further development of this project, will be the use of more tricky and advanced SASS mixins to make the component more reusable.

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published