{"id":20309610,"url":"https://github.com/coder-abdo/frontendmentor-newsletter","last_synced_at":"2026-02-03T13:31:22.097Z","repository":{"id":249890983,"uuid":"832870486","full_name":"coder-abdo/frontendmentor-newsletter","owner":"coder-abdo","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-24T15:45:56.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T22:43:25.506Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://frontendmentor-newsletter-two.vercel.app","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coder-abdo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-23T22:29:42.000Z","updated_at":"2024-07-24T15:45:59.000Z","dependencies_parsed_at":"2024-11-14T17:41:42.630Z","dependency_job_id":null,"html_url":"https://github.com/coder-abdo/frontendmentor-newsletter","commit_stats":null,"previous_names":["coder-abdo/frontendmentor-newsletter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coder-abdo/frontendmentor-newsletter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontendmentor-newsletter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontendmentor-newsletter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontendmentor-newsletter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontendmentor-newsletter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder-abdo","download_url":"https://codeload.github.com/coder-abdo/frontendmentor-newsletter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontendmentor-newsletter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29046563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T17:28:00.893Z","updated_at":"2026-02-03T13:31:22.066Z","avatar_url":"https://github.com/coder-abdo.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Newsletter sign-up form with success message solution\n\nThis is a solution to the [Newsletter sign-up form with success message challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/newsletter-signup-form-with-success-message-3FC1AZbNrv). Frontend Mentor challenges help you improve your coding skills by building realistic projects.\n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [Continued development](#continued-development)\n- [Author](#author)\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- Add their email and submit the form\n- See a success message with their email after successfully submitting the form\n- See form validation messages if:\n  - The field is left empty\n  - The email address is not formatted correctly\n- View the optimal layout for the interface depending on their device's screen size\n- See hover and focus states for all interactive elements on the page\n\n### Screenshot\n\n![challenge screenshot](./src/assets/images/screenshot.png)\n\n### Links\n\n- Solution URL: [frontend mentor solution](https://www.frontendmentor.io/solutions/newsletter-signup-with-success-message-EKbvwioz-Y)\n- Live Site URL: [vercel deployment](https://frontendmentor-newsletter-two.vercel.app/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties\n- Flexbox\n- Typescript\n- Mobile-first workflow\n- [Vue.JS](https://vuejs.org/) - JS framework\n\n### What I learned\n\n```js\n\u003cscript setup lang=\"ts\"\u003e\nimport ListIcon from \"@/assets/images/icon-list.svg\";\ntype Props = {\n  email: string;\n  error: boolean;\n};\n\ndefineProps\u003cProps\u003e();\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cdiv class=\"newsletter-email\"\u003e\n    \u003ch1\u003estay updated!\u003c/h1\u003e\n    \u003cp\u003eJoin 60,000+ product managers receiving monthly updates on:\u003c/p\u003e\n    \u003cul\u003e\n      \u003cli\u003e\n        \u003cimg :src=\"ListIcon\" alt=\"list icon\" /\u003eProduct discovery and building\n        what matters\n      \u003c/li\u003e\n      \u003cli\u003e\n        \u003cimg :src=\"ListIcon\" alt=\"list icon\" /\u003eMeasuring to ensure updates are a\n        success\n      \u003c/li\u003e\n      \u003cli\u003e\u003cimg :src=\"ListIcon\" alt=\"list icon\" /\u003eAnd much more!\u003c/li\u003e\n    \u003c/ul\u003e\n    \u003cdiv class=\"control\"\u003e\n      \u003cdiv class=\"label\"\u003e\n        \u003clabel for=\"email\"\u003eEmail Address\u003c/label\u003e\n        \u003cspan v-if=\"error\"\u003eValid email is required\u003c/span\u003e\n      \u003c/div\u003e\n      \u003cinput\n        type=\"email\"\n        name=\"email\"\n        id=\"email\"\n        :value=\"email\"\n        @input=\"\n          $emit('update:email', ($event.target as HTMLInputElement).value)\n        \"\n        placeholder=\"Enter your email address\"\n        :class=\"{ error: error }\"\n      /\u003e\n      \u003cbutton @click=\"$emit('submit')\"\u003esubscribe to monthly newsletter\u003c/button\u003e\n    \u003c/div\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\u003cstyle lang=\"css\" scoped\u003e\n.newsletter-email {\n  padding: 2%;\n  h1 {\n    font-size: clamp(2rem, 5vw, 4rem);\n    font-weight: 700;\n    color: var(--dark-slate-grey);\n    text-transform: capitalize;\n    margin-bottom: 2rem;\n  }\n  p {\n    color: var(--dark-slate-grey);\n    font-size: 1.1rem;\n    font-weight: 400;\n    margin-bottom: 2rem;\n  }\n  ul {\n    display: flex;\n    flex-direction: column;\n    margin-bottom: 2rem;\n  }\n  li {\n    color: var(--dark-slate-grey);\n    display: flex;\n    align-items: center;\n    font-size: clamp(1.6rem, 5vw, 1.8rem);\n    gap: 2rem;\n    \u0026:is(:not(:last-child)) {\n      margin-bottom: 1rem;\n    }\n  }\n  .label {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    margin-bottom: 1rem;\n  }\n  span {\n    color: rgb(217, 85, 85);\n    font-size: 1.2rem;\n    font-weight: 400;\n  }\n  .control {\n    display: flex;\n    flex-direction: column;\n  }\n  label {\n    color: var(--dark-slate-grey);\n    font-size: 1.4rem;\n    font-weight: 700;\n  }\n  input {\n    width: 100%;\n    height: 4rem;\n    border-radius: 5px;\n    border: 1px solid var(--grey);\n    padding: 1rem;\n    color: var(--charcoal-grey);\n    margin-bottom: 1rem;\n    transition-property: background-color, color, border-color;\n    transition-duration: 0.3s;\n    transition-timing-function: ease-in-out;\n    \u0026:focus {\n      outline: none;\n      border-color: var(--dark-slate-grey);\n    }\n    \u0026.error {\n      border-color: rgb(217, 85, 85);\n      color: rgb(217, 85, 85);\n      background-color: #f3c5c0;\n    }\n  }\n  button {\n    width: 100%;\n    height: 4rem;\n    background-color: var(--dark-slate-grey);\n    border-radius: 5px;\n    color: var(--white);\n    font-size: 1.4rem;\n    font-weight: 700;\n    transition: background 0.3s ease-in-out;\n    border: none;\n    \u0026:hover {\n      cursor: pointer;\n      background: rgb(217, 85, 85);\n      background: linear-gradient(\n        90deg,\n        rgba(217, 85, 85, 1) 55%,\n        rgba(255, 21, 0, 1) 100%\n      );\n    }\n  }\n}\n@media screen and (min-width: 768px) {\n  .newsletter-email {\n    padding: 8% 4%;\n    flex-basis: 50%;\n    display: flex;\n    gap: 2rem;\n    flex-direction: column;\n  }\n  li {\n    \u0026:is(:not(:last-child)) {\n      margin-bottom: 2rem;\n    }\n  }\n}\nbutton {\n  margin-top: 1rem;\n}\n\u003c/style\u003e\n\n```\n\n### Continued development\n\nstill learning how to make webp apps using `Vue` and its ecosystem and I will add more solutions with another `JS` libraries\u0026frameworks such as `Svelte`, `Solid` and `React`.\n\n## Author\n\n- Website - [my portfolio](https://abdelmonaem-portfolio.vercel.app/)\n- Frontend Mentor - [@coder-abdo](https://www.frontendmentor.io/profile/coder-abdo)\n- LinkedIn - [follow me on LinkedIn](https://www.linkedin.com/in/abdelmonaem-shahat/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder-abdo%2Ffrontendmentor-newsletter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder-abdo%2Ffrontendmentor-newsletter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder-abdo%2Ffrontendmentor-newsletter/lists"}