Skip to content

Solutions to Frontend Mentor qr-code-component-main challenge.

Notifications You must be signed in to change notification settings

dannygorgon/qr-code-card

Repository files navigation

Overview

Desktop Screenshot

Mobile Screenshot (iPhone 14 Plus)

Links

My process

  • Worked with mobile layout first
  • Develop the Desktop Version
  • Researched features
  • Cross-Browser Testing
  • Tested responsiveness
  • Compiled Readme

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

Learned fluid responsive. "font-size: calc(15px + 0.390625vw);"

This formula calculates our font size as 15px plus 0.00390625% of the screen width. These values have been specifically chosen because they result in the perfect font sizes at every breakpoint:

p {
        font-size: calc(15px + 0.390625vw);
    }

Learned nested border radius - Thanks to 30 Seconds Code for the guide!! @username

.outer {
  border-radius: 24px;
  padding: 8px;
}

.inner {
  border-radius: 16px;
}

Continued development

  • Menu bar
  • Incorporate into another project
  • Change colours

Useful resources

  • 30secondsofcode - This helped me understand nesting border radius calculations
  • Matthew James Taylor - This is an amazing article which helped me understand Fluid Responsive font size

Acknowledgments

Dedicated to Jan and Dean. Thanks to The Odin Project, Northcoders and the resources on Frontend Mentor

About

Solutions to Frontend Mentor qr-code-component-main challenge.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages