Giter Site home page Giter Site logo

qr-code-component'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

Overview

Screenshot

Links

My process

Built with

  • Basic HTML5 with Semantic markup
  • CSS Flexbox

What I learned

This is one of the first pages made myself looking only on a design. Troubles were appearing already on beginning. Which CSS properties should I use to complete the challenge with a preferably normal solution. Maybe I should use a display tag?

.section {
  display: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
}

It looks fine with one section on a webpage but with a footer it becomes more uncontrollable and messy set of CSS properties.

.footer {
  display: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}

Some time later I learned about flexboxes and want use it. So I end up with a such structure:

<body> <!-- flex column -->

  <main class="content"> <!-- flex row -->

    <div class="qr-code-container"></div>

  </main>

  <footer class="footer"></footer>

</body>

Continued development

  • Make more structured, readable a HTML5 and CSS code with better naming of classes and id
  • Understand how to better split HTML5 elements

Useful resources

Author

Acknowledgments

Big thanks to https://www.frontendmentor.io/profile/romila2003 for the tips in comments section after which I:

  • Made fixes accessibility issues (absent of main and h1)
  • Refactored code (a useless flex-wrapper around a main content was deleted and replaced by body with flex properties)

qr-code-component's People

Contributors

zerescas 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.