Hi, I'm Alex

Newsletter Sign-Up Page

by Alexander Roan on 25 Aug 2025

Challenge Details

This is a challenge on Frontend Mentor to build a newsletter form. The objective is to allow users to::

My build/design

I built this mobile first, with some media queries to make adaptations to desktop layout.

The JavaScript is fairly simple, the most complex part is using a regular expression (regex) to check the e-mail format.

Other than those, it just takes some time to get the design right.

To switch between form and submission confirmation pages I use display: hide. I do need to go back and ensure that these elements are labelled correctly from an accessibility perspective.

Desktop:

desktop design desktop - incorrect e-mail desktop - correct e-mailil desktop - submission confirmation

Mobile:

Mobile design

Links

The website is live on GitHub:

Newsletter live page on GitHub

And the submission on Frontend Mentor here:

Newsletter on FrontendMentor

Share, comment/discuss

Share to: LinkedIn, X