Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/nasirkhan294/newsletter-signup-form
- Owner: Nasirkhan294
- License: mit
- Created: 2023-10-28T07:17:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-25T11:59:48.000Z (about 1 year ago)
- Last Synced: 2023-11-25T12:32:04.269Z (about 1 year ago)
- Topics: css3, html5, javascript
- Language: CSS
- Homepage: https://nasirkhan294.github.io/newsletter-signup-form/
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)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![](./images/desktop-preview.jpg)
- [Live Demo](https://nasirkhan294.github.io/newsletter-signup-form/)
My approach is to create a simple application that displays information about the newsletter sign up process.
- 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
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 = '';
}
})
};
```👤 **Nasir Mahmood**
- GitHub: [Nasirkhan294](https://github.com/Nasirkhan294)
- Twitter: [NasirMa35888225](https://twitter.com/NasirMa35888225)
- LinkedIn: [nasirmahd](https://www.linkedin.com/in/nasirmahd/)Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
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.
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.
This project is [MIT](./LICENSE) licensed.