Skip to content

A solution using HTML and CSS for the QR Code component challenge on Frontend Mentor that provides designs for users to practice their web development skills.

Notifications You must be signed in to change notification settings

adriarodr/qr-code-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

QR Code Component Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Mobile-first workflow

What I learned

During the challenge, I realized that screen readers couldn’t interpret the QR code on the website directly. So, my solution was to add a corresponding anchor that would take users to the same link when clicked on instead of relying solely on the QR code. Additionally, I added text within the paragraph that the user can use a QR code or link on the code to go to Frontend Mentor’s home page. Next, I made the link and additional text visually hidden by following CSS Tricks' visually hidden styling rule. While this challenge was simple, I was conscious of accessibility and what items I must implement to ensure the content makes sense to everyone.

Useful resources

  • CSS Tricks - Inclusively Hidden - This resource offers a quick overview of various methods to hide content and provides style rules for sr-only or visually-hidden classes.

  • Scott Hara - Inclusively Hidden - This resource delves deeper into the reasons developers hide content and provides solutions. It is the original source for the Inclusively Hidden article by CSS Tricks.

Author

Acknowledgments

I would like to express my gratitude to CSS Tricks and Scott Hara for their informative articles on visually hiding content. Their articles have been very helpful.

About

A solution using HTML and CSS for the QR Code component challenge on Frontend Mentor that provides designs for users to practice their web development skills.

Resources

Stars

Watchers

Forks