Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
9
Comments
5
P
Lee
@LeeConnelly12

All comments

  • vishwjeet thakur•30
    @ervishwa
    Submitted almost 2 years ago

    Raw HTML CSS and JS

    #axios
    3
    P
    Lee•230
    @LeeConnelly12
    Posted almost 2 years ago

    Good job! the colors and positioning look correct.

    However, I've noticed you're adjusting the position of your <body> down with this CSS to vertically center the quote box on the page.

    body {
    position: relative;
    top: 222px;
    }
    

    You're also setting your <body> as grid and centering items within it.

    body {
    display: grid;
    place-items: center;
    }
    

    By default, the <body> is the height of the content inside of it, if you inspect the <body> on your page you'll see that it's only about 416px tall.

    A more responsive way to vertically center the quote box would be to make the <body> the full height of the screen and allow the body's grid to vertically center the items inside of it.

    body {
    min-height: 100vh;
    margin: 0;
    }
    

    Finally, you can remove the position relative and top CSS properties

    body {
    position: relative;
    top: 222px;
    }
    

    Now, on screens with smaller heights, the quote box will move to be in the center instead of a fixed position.

    Marked as helpful
  • Md Kaif Ansari•590
    @Kaif121122
    Submitted almost 3 years ago

    Using Flexbox and JavaScript

    1
    P
    Lee•230
    @LeeConnelly12
    Posted almost 3 years ago

    Your rating component looks super close to the design, good work!

    Only thing I noticed is that your ratings are getting squished.

    This is happening because you're setting the ratings' size using padding: 6%.

    You can see the rating's padding in this screenshot

    As you can see from the screenshot above, padding is getting added around the content in the element.

    So because the numbers are taller than they are wide the padding will make the ratings look tall.

    One way to fix this would be by setting a fixed width and height on your .rating elements

    .rating {
      // padding: 6%; can now remove this as we're setting a width and height
      width: 5rem; 
      height: 5rem;
    }
    

    Then, to center the number inside each of the ratings you could use CSS grid, like so:

    .rating {
      display: grid;
      place-items: center;
    }
    
  • John Soto•130
    @Soto-J
    Submitted almost 3 years ago

    Javascript

    1
    P
    Lee•230
    @LeeConnelly12
    Posted almost 3 years ago

    If I don't select a rating and click submit, the thank you step text says "You selected undefined".

    One way you could prevent this is by making the submit button disabled until a rating is selected, then, when a rating is selected you set disabled to be false.

    Doing this will stop the user from going to the next step without choosing a rating first.

    Other than that your rating component looks clean and the hover states are smooth, good job!

    Marked as helpful
  • Eduardo•910
    @KTrick01
    Submitted almost 3 years ago

    NFT preview card component hub + Flexbox

    3
    P
    Lee•230
    @LeeConnelly12
    Posted almost 3 years ago

    Good use of BEM to structure your classes.

    While moving in from the right, your blue overlay makes the corners look sharp Example

    To solve this you could set border-radius: 10px on the <picture element.

    This along with having overflow: hidden already set on your <picture> ensures that any content inside of the <picture> tag will not overflow the border radius.

    Marked as helpful
  • Manuel Lucero•140
    @MalexLucero
    Submitted almost 3 years ago

    CSS Custom Properties and Calc( ) in Action

    #bem
    1
    P
    Lee•230
    @LeeConnelly12
    Posted almost 3 years ago

    Using calc() to offset the attribution text at the bottom of the page, smart!

    Also love the use of BEM classes, great way to structure CSS.

    I started on mobile and added classes to the <body> to center the page's content so I could see the QR component easier while building it.

    As you know the size of the QR code image, you could set the width and height attributes to be 280, doing this means you don't get any layout shifting while the image is loading.

Frontend Mentor logo

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

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