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

Intro Component with Signup Form

@VimDiesel123

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

Venus 1,640

@VenusY

Posted

Great work, this is an amazing solution! Visually, it looks almost identical to the design, and the functionality is practically perfect.

One small thing I would point out is that there is no padding between the top and bottom of the viewport and the content on smaller screen sizes, which could detract from the user experience as whitespace is necessary to improve visual balance.

Other than that, you've done a good job completing this challenge! :)

Marked as helpful

1

@VimDiesel123

Posted

@VenusY

Appreciate the kind words!

As far as the padding, I did put some inline and block padding on the main element:

  padding: 4rem 1.5rem;

Which should add some whitespace between the edges of the viewport and the content.

I removed the padding for the large screen size because I just center the content within the whole viewport:

 main {
    flex-direction: row;
    min-height: 100svh;
    align-items: center;
    max-width: 80%;
    margin-inline: auto;
    padding: 0;
    gap: 5rem;
  }

Not sure if that's a bad approach, but it looked correct to me on all the screen sizes I tested.

0
Venus 1,640

@VenusY

Posted

@VimDiesel123 Ah, okay, so by removing the padding on larger screen widths, you've not accounted for screens where the content is too tall to fit on the screen all at once.

For example, the height of the content exceeds the viewport height of the device I'm currently using, so when I access the site, there is no whitespace at the top and bottom for me.

So, it's not necessarily a bad approach, it just doesn't account for some edge cases.

Hope this helps! :)

Marked as helpful

1

@VimDiesel123

Posted

@VenusY

Ah, I think I should keep the padding even at larger sizes, as it shouldn't negatively effect the layout at all.

Thanks!

0
Venus 1,640

@VenusY

Posted

@VimDiesel123 Yeah, that should do the trick! :)

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