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 Solution

Anne 10

@Anne301

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


I find it difficult sometimes to know where to start, I'm still quite new with coding and applying what I've learned so far.

What really helped for me is to find a coding buddy, I've learned tonnes of new concepts while working through Live Stream on VS

Community feedback

Lucas 👾 104,420

@correlucas

Posted

👾Hi @Anne301, congratulations on your solution!👋 Welcome to the Frontend Mentor Coding Community!

Great solution and a great start! From what I saw you’re on the right track. I’ve few suggestions for you that you can consider adding to your code:

1.When you download the project files there’s a file called style-guide.md where you can find information such as hsl color codes and the font-size for the headings. The background-color in this case is background-color: #D5E1EF

2.Fix the alignment of the whole content using flex and min-height to manage the vertical alignment and make everything centered.First of all put min-height: 100vh to the body to make the body display 100% of the viewport height (this makes the container align to the height size that's now 100% of the screen height) size and display: flex e flex-direction: column to align the child element (the container) vertically using the body as reference.

3.Clean your code by removing some unnecessary divs, most of the content can stand alone without a div. Use div only for blocks that need a special alignment or the content needs a special positioning.

4.Add a margin of around margin: 20px to avoid the card touching the screen edges while it scales down.

5.Use relative units as rem or em instead of px to improve your performance by resizing fonts between different screens and devices. These units are better to make your website more accessible. REM does not just apply to font size, but to all sizes as well.

body {
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    background-color: var(--Grayish-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

Here's my solution for this challenge if you wants to see how I build it: https://www.frontendmentor.io/solutions/qr-code-component-vanilla-cs-js-darklight-mode-nS2aOYYsJR

✌️ I hope this helps you and happy coding!

0

@ron-wollschlaeger

Posted

Hi Anne, you are looking for a coding buddy? I can help you with that. I am a beginner myself who works as a graphic designer and wants to shift to frontend development. Not only that, but I also like UI and UX Design, which I want to improve to while studying frontend related languages. I don't know if Backend is something for me, but that's a story for another day.

I have met some new friends in this community and want to make a small but like-minded group to grow and to help each other. We are currently three and right now start our first personal project together while trying to solve every challenge on this website here.

If this is something you would like, tell me more about you and your plans on Discord or Slack. (Discord: pxMahio 🍉 #8485)

Have a nice day! 😁

0

Anne 10

@Anne301

Posted

Howdy! :)

Couldn't find you on Discord! My server is: ratchet301#8511

Let's chat about coding :D

0

@ron-wollschlaeger

Posted

@Anne301 Would be awesome! :D I have sent you a friend request.

0
Travolgi 🍕 31,440

@denielden

Posted

Hello Anne, You have done a good work! 😁

Some little tips to improve your code:

  • <title>Frontend Mentor | QR code component</title> go inside the head not into the body
  • add main tag and wrap the card for improve the Accessibility
  • remove all margin from container class
  • use flexbox to the body to center the card. Read here -> best flex guide
  • after, add min-height: 100vh to body because Flexbox aligns child items to the size of the parent container
  • instead of using px use relative units of measurement like rem -> read here

Keep learning how to code with your amazing solutions to challenges.

Hope this help 😉 and Happy coding!

0

@ShayokhShorfuddin

Posted

Hey there Anne! I hope you are having a great day! I have some design suggestion for your UI to make it perfect!

  1. Adding some spacing between elements would make the UI more lively and fresh!
  2. Apply "Outfit" font from Google Fonts to all the texts.
  3. Make sure the component is at the center of the screen.
  4. At last, the background color should be hsl(220, 15%, 55%);

All the best!

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