Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Newsletter Sign-Up Form Design

Chrision Wynaar•340
@Clipzorama
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


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

It been a couple weeks since I have made a design. Throughout this time I have been working on Javascript and mainly learning the fundamentals. I am proud that I finished another F.M solution in the 'Junior' standing. One step closer to becoming more proficient at Frontend.

Next time, I'd want to make this design responsive on majority designs and not just for devices with a max-width of 600px and less.

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

I did come across a couple of challenges actually. One of them was working with the SVG image inside of my design. I tried to make the design as identical as possible and I know this was not the case.

I did some research on the "change" event in Javascript and how I can switch between SVG elements depending on the size of the screen. I did use matchMedia for this portion of the design and it actually helped.

const mediaQuery = window.matchMedia("(max-width: 600px)");

function mediaChanger(event) {

    if (event.matches) {
        imager.innerHTML = newSVG;
    } else {
        imager.innerHTML = oldSVG;
    }
}

mediaQuery.addEventListener("change", mediaChanger); // matchMedia supports event "change"
mediaChanger(mediaQuery);

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

I would like some help on how I can use margining and padding more efficient in this design. I acknowledged that my small absence in designing designs in HTML and CSS has caused me to be a little rusty when it comes to these fundamentals and would like some guidance to make my design more identical then how it looks.

If anyone can, in their free time, to look at my code and tell me what I can do for next time would be greatly appreciated.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Chrision Wynaar's solution.

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
  • Use cases

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