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.
- Live site: https://michahuhn.github.io/frontendmentor-qr-code-component
- Challenge solution: https://www.frontendmentor.io/solutions/qr-code-component-using-vue-GY2aMwezmc
- Vue
- SCSS
- Custom CSS properties
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.
- Get your stylesheets more organized with Sass partials - My SCSS folder structure is inspired by this video.
