Skip to content

This is a solution to the QR code component challenge on Frontend Mentor.

Notifications You must be signed in to change notification settings

josemguerra/fem-qr-code-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

desktop_view mobile_view

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • BEM methodology (Block, Element, Modifier)
  • Flexbox
  • Mobile-first workflow

Useful resources

  • BEM Methodology - The idea behind it is to divide the user interface into independent blocks. I really liked this pattern and will use it going forward.
  • Semantic HTML - This is an amazing article which helped me finally understand semantic HTML tags. I'd recommend it to anyone still learning this concept.
  • Flexbox - This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex container) and the child elements (the flex items).
  • Schemas.org - A collaborative, community activity with a mission to create, maintain, and promote schemas for structured data.

SEO and Accessibility

Microdata Integration

  • Used itemscope and itemtype for the article to define it as a WebSite.
  • Mapped itemprop attributes to content elements like headline, description, image, creator, and author for better semantic meaning and SEO.

Accessibility Improvements

  • Added aria-labelledby on the article to associate it with the headline, improving screen reader navigation.
  • Updated the alt attribute of the image to provide a more descriptive and useful context.

External Links

  • Included rel="noopener noreferrer" for all external links to enhance security and performance.

Semantic Structure

  • Used a hgroup to group the heading and description semantically.
  • Clearly defined elements with roles like footer and main for better screen reader support.

Benefits

  • Search Engine Optimization: The microdata ensures search engines can understand the content better, improving its ranking and rich snippets.
  • Enhanced Usability: Screen readers can now interpret the purpose and structure of the content more effectively.
  • Security and Performance: External links are safer with rel="noopener noreferrer".

Author

About

This is a solution to the QR code component challenge on Frontend Mentor.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published