Code Monkey home page Code Monkey logo

fem-qrcode's Introduction

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

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

One thing I've done in the past when creating is to work on the HTML structure and CSS styling simultaneously. However, Frontend Mentor suggested that I start with the structure first. Once that is completed, then move on to styling. This helped me tremendously to think about what elements I'd need to "get the job done" and from there I was able to focus solely on styling. I'll certainly continue to work this way going forward!

I recently learned about issues the CSS unit, vh, can cause. Especially when it comes to viewing on a mobile device. In this project, I tried a new approach of using the % unit, which worked perfectly! See below on how I did this:

html,
body {
  height: 100%;
}

.container {
  min-height: 100%;
}

Continued development

  • Continue using % (percentage) CSS units instead of vh
  • Continue using and learning more about Flexbox, Grid, their differences

Useful resources

  • Example resource 1 - This helped me better understand how to properly use the % CSS unit. With this I was able to fully center my card element without needing to us the vh unit.

Author

Acknowledgments

Thank you, TREMENDOUSLY, Josh Comeau, for your amazing article explaining percentage based heights! This was a game changer for me!

fem-qrcode's People

Contributors

grill3dcheese avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.