GitHub - MichaHuhn/frontendmentor-qr-code-component

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

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