Skip to content

MichaHuhn/frontendmentor-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

Screenshot

Links

My process

Built with

  • Vue
  • SCSS
  • Custom CSS properties

What I learned

I've learned how to calculate the inner and outer border-radius and used this technique in this project:

.qr-code-card {
  --padding: var(--spacing-200);
  --inner-border-radius: 10px;

  padding: var(--padding);
  border-radius: calc(var(--inner-border-radius) + var(--padding));

  img {
    border-radius: var(--inner-border-radius);
  }
}

I also used Figma.

Useful resources