Skip to content

This is a solution to the coding challenge from Frontend Mentor.

Notifications You must be signed in to change notification settings

kwekuduahh/QR-Code-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 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

This is a solution to a Card challenge from Frontend Mentor.

Screenshot

Links

My process

I started by building the blocks in HTML before proceeding to CSS styles. I think this was a pretty simple and straightforward challenge, and I look forward to more engaging ones.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

I particularly was proud of how I applied semantic HTML in my project to make it accessible to screen readers. This promoted accessibility in my project. I also enjoyed the processing of strategising an approach to build a div that wrapped around it's contents. This was an exciting experience and I will keep attempting more challenges.

I have shared snippets of the code I used to achieve that below;

<main>
	<section id="image-section">
		<figure>
			<img
				src="images/image-qr-code.png"
				alt="QR Code"
			/>
		</figure>
	</section>
	<section id="description-section">
		<header>
			<h2>Improve your front-end skills by building projects</h2>
		</header>
		<p>
			Scan the QR code to visit Frontend Mentor and take your coding skills to the
			next level
		</p>

		<div class="attribution">
			Challenge by
			<a
				href="https://www.frontendmentor.io?ref=challenge"
				target="_blank"
				>Frontend Mentor</a
			>. Coded by <a href="https://github.com/kwekuduahh">Kweku Asamoah</a>.
		</div>
	</section>
</main>
main {
	background-color: hsl(0, 0%, 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	width: fit-content;
	text-align: center;
	padding: 15px;
	border-radius: 20px;
	box-shadow: 5px 5px 30px 5px rgba(0, 0, 0, 0.1);
}

Continued development

I look forward to practising how to use clamps instead of media queries. Also, building react components similar to design components.

Author

About

This is a solution to the coding challenge from Frontend Mentor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published