Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nasirkhan294/newsletter-signup-form

A simple sign up form application that displays information about the newsletter sign up process.
https://github.com/nasirkhan294/newsletter-signup-form

css3 html5 javascript

Last synced: 4 days ago
JSON representation

A simple sign up form application that displays information about the newsletter sign up process.

Awesome Lists containing this project

README

        


Newsletter Sign Up


# 📗 Table of Contents

- [📖 About the Project](#about-project)
- [🤝 The challenge](#the-challenge)
- [⭐️ Screenshot](#screenshot)
- [🚀 Live Demo](#live-demo)
- [💻 My Process](#my-process)
- [🛠 Built With](#built-with)
- [📖 What I learned](#what-i-learned)
- [👥 Authors](#authors)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [📝 License](#license)

## 🤝 The challenge

Users should be able to:

- Add their email and submit the form
- See a success message with their email after successfully submitting the form
- See form validation messages if:
- The field is left empty
- The email address is not formatted correctly
- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page

## ⭐️ Screenshot

![](./images/desktop-preview.jpg)

## 🚀 Live Demo

- [Live Demo](https://nasirkhan294.github.io/newsletter-signup-form/)

(back to top)

## 💻 My Process

My approach is to create a simple application that displays information about the newsletter sign up process.

## 🛠 Built With

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow

### 📖 What I learned

Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.

To see how you can add code snippets, see below:

```html


Tick-mark

Thanks for subscribing!



A confirmation email has been sent to [email protected]. Please
open it and click the button inside to confirm your subscription.


Dismiss message

```

```css
.success-card {
display: none;
flex-direction: column;
justify-content: center;
align-items: flex-start;
padding: 1.5rem;
margin-top: 5rem;
}
```

```js
form.addEventListener('submit', (e) => {
e.preventDefault();
const input = document.querySelector('input');
if(validateEmail(input)) {
form.submit();
input.value = '';
}
})
};
```

(back to top)

## 👥 Authors

👤 **Nasir Mahmood**

- GitHub: [Nasirkhan294](https://github.com/Nasirkhan294)
- Twitter: [NasirMa35888225](https://twitter.com/NasirMa35888225)
- LinkedIn: [nasirmahd](https://www.linkedin.com/in/nasirmahd/)

(back to top)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

(back to top)

## ⭐️ Show your support

Please support this project and be a part of something meaningful and impactful. Your contribution can make a significant difference and help us achieve our goals faster.

(back to top)

## 🙏 Acknowledgments

I would like to express my sincere gratitude to [Frontend Mentor](https://www.frontendmentor.io/challenges/newsletter-signup-form-with-success-message-3FC1AZbNrv) for this design.

(back to top)

## 📝 License

This project is [MIT](./LICENSE) licensed.

(back to top)