豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

victorsonet/QR-code-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 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

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox

What I learned

  1. Used flexbox on main I can center the sections
  2. Gave a background of white to both sections
  3. Defined the width of the qr section but the picture this way moved so I had to make the qr section flex as well and center the image
  4. The image got 95% width so there is a white outline
  5. Defined the border radiuses
  6. Gave the same width to the content section as well
  7. Finished the rest of the styling

Continued development

At first I used pixels then I was like this is not right and I started to use percentages so both flex and width needs more experience.

Useful resources

Tried to figure it out by myself.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors