Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR code

@ashutoshverma23

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


It was my first front-end project getting hosted on internet so I had to face difficulties in managing the files on Github. I'm unsure about the responsiveness of the webpage, I'll be working more on the it and use more advanced technologies like JS to improve the function of the webpage.

Community feedback

Daniel 🛸 44,230

@danielmrz-dev

Posted

Hello @ashutoshverma23!

Your project looks great!

I suggest you also try Vercel to deploy your projects, I always use Github Pages and Vercel as a backup.

Also, don't worry about responsiveness in this project. Since the mobile and desktop version are the same, you don't need to make it responsive.

I took a look at your code and saw that you tried to center the card using flex, but you used it inside the container. Here are are two ways to center elements, no matter the size of the screen:

You can apply this to the body (in order to work properly, you can't use position or margins):

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

Or you can apply this to the element you wanna center:

.element {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
}

I hope it helps!

Other than those details, you did an excelent job!

Marked as helpful

1

@ashutoshverma23

Posted

@danielmrz-dev Thanks a lot the changes you suggested are great, it made things easier for me. I'll definitely use them from my next projects.

1
Daniel 🛸 44,230

@danielmrz-dev

Posted

I'm glad I could help! 😊 @ashutoshverma23

0
P

@EONRaider

Posted

Hello. I suggest you to use netlify.com when deploying projects if you feel you’re having difficulties right now. It’s extremely easy to use. The way your project is structured right now you only need to inform to Netlify the URL of your GitHub repo and you’re done.

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord