/QR-Code-Component

Solution for the QR Code Component challenge on frontendmentor.io

Primary LanguageCSSGNU Affero General Public License v3.0AGPL-3.0

Frontend Mentor - QR Code Component solution

CodeFactor Grade FrontendMentor

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

A simple project using pure HTML5 and CSS3 showcasing a QR code landing page that leads the visitor to Frontend Mentor website.

Screenshot

Screenshot Frontend Mentor QR Code Component

Links

Run with Docker

The app will be available at http://localhost:3000/

docker-run-qr-code

My process

  1. I started with the markup on index.html, complying with HTML5 semantic tags and standards as much as possible.
  2. The styling provided by the project briefing was implemented first, followed by the classes I came up with on the markup.
  3. I used Figma to acquire all the right dimensions involved in the layout and implemented them in the appropriate CSS classes.
  4. The CSS Cube methodology was used when coding the stylesheet and some of the conventions from BEM were used when naming classes.

Built with

  • Semantic HTML5 markup
  • Mobile-first workflow

What I learned

  • One of several optimal ways of centering an element on the screen while ensuring responsiveness.
  • Gave my first shot at applying the CUBE CSS methodology to a project
  • Used the CSS reset by Andy Bell
  • Used Netlify for deployment of a static website for the first time
  • Implemented a simple CI/CD pipeline that:
    • Checks the project's NPM packages for security vulnerabilities
    • Lints all the code with ESLint
    • Publishes an image of the NodeJS app to my repository on DockerHub for deployment