Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
5
Comments
3
Larry
@lawrence-yoon

All comments

  • Roksolana•910
    @RoksolanaVeres
    Submitted almost 2 years ago

    Responsive interactive card form with mobile-first approach

    #bem#accessibility
    1
    Larry•170
    @lawrence-yoon
    Posted almost 2 years ago

    Hello Roksolana,

    I've also just completed this same project, and have a solution for one of your problems.

    For the formatting of the card number input, you need to send the data through a function that will return the modified/formatted string. I wrote something that worked for me. Please see code below:

      const formattedCardNumber = () => {
        let string = "";
        for (let i = 0; i < cardInfo.cardNumber.length; i += 4) {
          string = string + cardInfo.cardNumber.substring(i, i + 4) + " ";
        }
        return string;
      };
    

    As for the rounded corners for input when focused, I am not too sure. I took a quick peek at your css file, perhaps you need to add(initialize?) border under the focus selector, so that the border-radius has something to work with? For my focus states I used outline instead of border, which I think is a nicer approach, due to not affecting the layouts by shifting things by the border's width pixels.

    Marked as helpful
  • AyomiposiSoladoye•20
    @AyomiposiSoladoye
    Submitted almost 2 years ago

    QR Code Component Using Only HTML and CSS

    #accessibility
    3
    Larry•170
    @lawrence-yoon
    Posted almost 2 years ago

    Nice project! You should also add an alt attribute to describe what the image is. That way in situations like this, if the image is not working correctly, it could at least tell users what it should be.

    <img id="" src="" alt="frontendmentor-qr-code"></img>
    
  • Maamoun Hajjar•50
    @MaamounHajjar
    Submitted about 2 years ago

    QR code component

    1
    Larry•170
    @lawrence-yoon
    Posted about 2 years ago

    I think that this is the perfect challenge for a beginner that is just starting out. The project only requires html and css, and requires you to understand some important fundamentals.

    For the learning experience, you should not use react or bootstrap for this project. But if you really had to use something external, the only framework/library that I would suggest for making this build process easier would be using tailwindcss. At the very least you can still learn the fundamentals of css if you become proficient with tailwindcss due to it's utility classes, and their documentation is really good.

    Having said that, I think the way you went about this challenge is probably the best/easiest way.

    Marked as helpful

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

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

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