Skip to content
  • Learning paths
  • Challenges
  • Solutions
  • Articles
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

Sign up and Success Page built with HTML, CSS and JS

sass/scss
AdeSanyaOlu•30
@Adesanyaolu
A solution to the Newsletter sign-up form with success message challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I had an interesting time doing this project. Was a good one to polish my JS skill.

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Marcos Travaglini•6,210
    @Blackpachamame
    Posted over 1 year ago

    Good job AdeSanyaOlu! Your solution seems very correct to me.

    I have a couple of details to mention that may be useful to you:

    • You can add a short description to your image with the alt attribute, this helps the accessibility of the site
    • The <div class="attribution"> could be <footer class="attribution">
    • To center the content in the center of the screen, you can make these adjustments to your CSS:
    * {
        box-sizing: border-box;
        margin: 0; /* Remove default browser margins */
    }
    
    body {
        font-family: robotoRegular;
        background-color: hsl(234, 29%, 20%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        gap: 20px; /* Leave a space between the card and the footer */
    }
    
    .wholeBody {
        display: flex;
        background-color: hsl(0, 0%, 100%);
        justify-content: center;
        align-items: center;
        padding: 20px;
        border-radius: 10px;
        /* margin: 30px 0px 0px 0px;  You don't need this anymore */
    }
    

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
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