{"id":23377575,"url":"https://github.com/mayen007/contact-form","last_synced_at":"2025-04-08T04:35:12.804Z","repository":{"id":265957152,"uuid":"892669158","full_name":"Mayen007/Contact-form","owner":"Mayen007","description":"This is a solution to the Frontend Mentor Contact Form challenge, featuring a responsive and accessible form with validation for required fields, email format, query type, and consent. Built with HTML, CSS, and JavaScript, it includes a success message upon form submission.","archived":false,"fork":false,"pushed_at":"2024-12-01T18:34:16.000Z","size":413,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T03:19:21.981Z","etag":null,"topics":["accessibility","dom-manipulation","error-handling","flexbox-css","flexbox-grid","form-validation","form-validation-js","form-validator-javascript","html-forms","ui-design"],"latest_commit_sha":null,"homepage":"https://mayen007.github.io/Contact-form/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mayen007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-11-22T14:50:25.000Z","updated_at":"2024-12-01T18:34:19.000Z","dependencies_parsed_at":"2024-12-02T02:02:05.274Z","dependency_job_id":null,"html_url":"https://github.com/Mayen007/Contact-form","commit_stats":null,"previous_names":["mayen007/contact-form"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2FContact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2FContact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2FContact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2FContact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mayen007","download_url":"https://codeload.github.com/Mayen007/Contact-form/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779790,"owners_count":20994569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["accessibility","dom-manipulation","error-handling","flexbox-css","flexbox-grid","form-validation","form-validation-js","form-validator-javascript","html-forms","ui-design"],"created_at":"2024-12-21T18:15:54.889Z","updated_at":"2025-04-08T04:35:12.778Z","avatar_url":"https://github.com/Mayen007.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Contact Form Solution\n\nThis is my solution to the [Contact Form challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/contact-form--G-hYlqKJj). This project demonstrates responsive form design, custom form validation, and accessibility features.\n\n## Table of Contents\n\n- [Overview](#overview)\n  - [The Challenge](#the-challenge)\n  - [Screenshots](#screenshots)\n  - [Links](#links)\n- [My Process](#my-process)\n  - [Built With](#built-with)\n  - [What I Learned](#what-i-learned)\n  - [Continued Development](#continued-development)\n  - [Useful Resources](#useful-resources)\n- [Author](#author)\n\n## Overview\n\n### The Challenge\n\nUsers should be able to:\n\n- Complete the form and see a success message upon submission.\n- Receive validation error messages for:\n  - Missing required fields.\n  - Incorrect email format.\n- Navigate the form using only a keyboard.\n- Have inputs, error messages, and the success message announced on a screen reader.\n- View a responsive layout optimized for both mobile and desktop.\n- See hover and focus states for all interactive elements.\n\n### Screenshots\n\n#### Desktop View\n\n![Desktop View](./assets/images/desktop-view.png)\n\n### Links\n\n- [Solution Repository](https://github.com/Mayen007/Contact-form)\n- [Live Demo](https://mayen007.github.io/Contact-form/)\n\n## My Process\n\n### Built With\n\n- Semantic HTML5\n- CSS custom properties\n- Flexbox for layout\n- Mobile-first workflow\n- Custom form validation and ARIA roles for accessibility\n- CSS grid for structuring name inputs\n\n### What I Learned\n\n#### Styling Focus States:\n\n```css\ninput:focus,\ntextarea:focus {\n  outline: none;\n  border: 2px solid var(--green-600);\n}\n```\n\n#### Error Handling and Validation:\n\nCSS for displaying error messages:\n\n```css\n.error-message {\n  font-size: 12px;\n  color: var(--red);\n  display: none;\n}\n.input-error {\n  border: 1px solid var(--red);\n}\n```\n\n### Accessible Form Validation:\n\n```html\n\u003cdiv role=\"alert\" aria-live=\"polite\" class=\"confirmation-message\"\u003e\n  \u003ch4\u003e\n    \u003cimg src=\"./assets/images/icon-success-check.svg\" alt=\"\" /\u003e Message Sent!\n  \u003c/h4\u003e\n\u003c/div\u003e\n```\n\n### Continued Development\n\nIn future projects, I aim to:\n\n- Refine JavaScript form validation.\n- Deepen my understanding of ARIA roles and how they interact with assistive technologies.\n- Experiment with animations for success/error messages.\n\n### Useful Resources\n\n- [MDN Web Docs: Form Validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation) - Great for understanding custom form validations.\n- [A11y Project](https://www.a11yproject.com/) - Helped with improving accessibility.\n\n## Author\n\n- GitHub - [Mayen007](https://www.github.com/Mayen007)\n- Frontend Mentor - [@Mayen007](https://www.frontendmentor.io/profile/Mayen007)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayen007%2Fcontact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayen007%2Fcontact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayen007%2Fcontact-form/lists"}