Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 6 months ago

My QR Code Card – Frontend Mentor Challenge

R-nees•30
@R-nees
A solution to the QR code component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

finishing the project, search different ways of solving the problem and chose one that fits best

What challenges did you encounter, and how did you overcome them?

i mistakenly deleted my first solution while trying to upload, i had to rewrite the whole code again

What specific areas of your project would you like help with?

uploading the project via vs code terminal

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • MEHNOOR SHAHBAZ•720
    @Mahnoor366880
    Posted 6 months ago

    You've done a fantastic job with your QR code project!✨ It already has a great structure, and with just a few refinements, you can make it match the required design perfectly. Your effort in building this challenge shows your dedication to improving your frontend skills—keep up the great work!

    To fine-tune your design and align it with the expected result, here are a few key improvements to make:

    1. Background Color Adjustment

    Your current background is plain white, but the required design features a light blue background for a softer look. You can achieve this by adding the following CSS:

    body { background-color: #d5e1ef; /* Light blue background / display: flex; justify-content: center; align-items: center; min-height: 100vh; / Center the card / font-family: 'Outfit', sans-serif; / Ensure correct font */ }

    1. Card Styling Improvements

    Your card already looks great, but adding rounded corners and a subtle shadow will enhance its appearance and give it a floating effect.

    Update your .card CSS with the following:

    .card { background: white; padding: 20px; border-radius: 15px; /* Rounded corners / box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); / Subtle shadow */ text-align: center; max-width: 320px; }

    These small refinements will make your project even more polished and professional. You're on the right track—keep pushing forward, and soon, you'll be mastering even more complex frontend challenges! Great job!

    Marked as helpful
  • Marzia Jalili•9,710
    @MarziaJalili
    Posted 6 months ago

    Great job!

    Some suggestion:

    You can use the terminal in the vs code for publishing the project to github.

    • First, make sure you've download Git, if not it won't work.
    • Second, in the terminal run the code below to register your username and email:
    // username
    git config --global user.name "Your Name"
    
    // email
    git config --global user.email "your_email@example.com"
    
    • Then, initialize the repository aka the project's folder:
    git init
    
    • After running this code, add all the files by using the line below:
    git add .
    
    • Next, set your first commit to inidicate you've initialized the repo:
    git commit -m "Initial commit"
    

    And that's all it!

    Now all you have to do is to go to your github account find the repo and go to it's setting. In the settings go to pages and there will be a section called braunch, in case you're not aware of that, click the select branch dropdown and choose main and hit save.

    Wait for a minute or two and then refresh the page and you will get the url of your web.

    Actually, I prefer using the git source control since it doesn't require me to write any code at all.

    In this way, as long as you have Git downloaded on your device you can follow the steps below:

    • First, to nevigate to the source control you can click it's option below the folders icon and the search icon on the side bar of vs code or simply press ctrl + shift + G.

    • Second, click the Initialize Repository button.

    • Then, you will have to write your first commit in the input field, something like inital commit as above and then click the commit button.

    • Then, press the Publish Brunch button.

    And you're repo will be published to Github this easily! At the end follow the same steps for settings as above and your all set.

    In case you find any difficulties, let me know.

    😎😎😎

    Marked as helpful
  • P
    Kristian Haug•150
    @klhaug
    Posted 6 months ago

    Hi!

    Looks great.

    Seems like your text-padding is a bit heavy-handed. Might look into that and let there be fewer lines of text.

    Besides that, great job! Keep it up

  • P
    Grid-World•170
    @LiJunXiang1234
    Posted 6 months ago

    From the visual effect, it seems that you haven't centered the card, the background color is different from the design, and the font size needs adjustment.

    I thought these were just simple value adjustments, but when I looked at your code, to be honest, I was quite shocked. I sincerely apologize, but I can't understand your code and am unable to provide specific modification suggestions.

    If you need help or have any questions, feel free to ask me! (Although I'm also a beginner, I'll do my best to respond!)

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub