{"id":26983099,"url":"https://github.com/twinklebyte/contact-form","last_synced_at":"2026-01-29T10:45:00.477Z","repository":{"id":263106823,"uuid":"804768504","full_name":"TwinkleByte/Contact-form","owner":"TwinkleByte","description":"Contact form created using CSS Grid","archived":false,"fork":false,"pushed_at":"2025-02-23T19:13:55.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T09:43:01.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/TwinkleByte.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-05-23T08:26:43.000Z","updated_at":"2025-02-23T19:13:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"42f29a5f-96cb-40f4-a79b-8a6d18578c15","html_url":"https://github.com/TwinkleByte/Contact-form","commit_stats":null,"previous_names":["twinklebyte/contact-form"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TwinkleByte/Contact-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwinkleByte%2FContact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwinkleByte%2FContact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwinkleByte%2FContact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwinkleByte%2FContact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TwinkleByte","download_url":"https://codeload.github.com/TwinkleByte/Contact-form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwinkleByte%2FContact-form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"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":"2025-04-03T16:38:54.186Z","updated_at":"2026-01-29T10:45:00.461Z","avatar_url":"https://github.com/TwinkleByte.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Contact form solution\n\nThis is a solution to the [Contact form challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/contact-form--G-hYlqKJj). 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  - [What I learned](#what-i-learned)\n- [Author](#author)\n\n**Note: Delete this note and update the table of contents based on what sections you keep.**\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- Complete the form and see a success toast message upon successful submission\n- Receive form validation messages if:\n  - A required field has been missed\n  - The email address is not formatted correctly\n- Complete the form only using their keyboard\n- Have inputs, error messages, and the success message announced on their screen reader\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![image](https://github.com/TwinkleByte/Contact-form/assets/91601992/99945c1c-ed18-49c8-8f25-68da471d2951)\n\n### Links\n\n- Solution URL: [Solution](https://github.com/TwinkleByte/Contact-form)\n- Live Site URL: [Live Site](https://twinklebyte.github.io/Contact-form/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties\n- CSS Grid\n- Javascript\n- Mobile-first workflow\n\n### What I learned\nI learned Javascript, text area css element and Input css element.\nTo see how you can add code snippets, see below:\n\n```html\n\u003ctextarea name=\"var_1\" rows=\"5\" cols=\"10\" wrap=\"soft\"  id=\"message-input-id\"\u003e\u003c/textarea\u003e\n```\n```css\n#message-input-id {\n    font-size: 1rem;\n    line-height: 25px;\n    word-spacing: 3px;\n    width: 656px;\n    height: 100px;\n    border: solid 1px var(--t5);\n    border-radius: 10px;\n    outline: none;\n    padding: 14px 12px 4px 24px;\n    resize: none;\n    box-sizing: border-box;\n    transition: all 0.35s;\n}\ninput[type=text] {\n    border: solid 1px var(--t5);\n    border-radius: 10px;\n    outline: none;\n    padding: 0px 15px 0px 15px;\n    box-sizing: border-box;\n    transition: all 0.35s;\n}\ninput[type=text]:hover, input[type=text]:focus {\n    border: solid 1px var(--button-color);\n}\ninput[type=text]::placeholder {\n    color: black;\n    font-size: 20px;\n    opacity: 1; /* Firefox */\n}\n```\n```js\nvar checkbox = document.getElementById(\"check-box\");\nvar checkicon = document.getElementById(\"check-icon\");\nconst checkedicon = '\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"18\" height=\"18\" fill=\"none\" viewBox=\"0 0 18 18\"\u003e\u003cpath fill=\"#0C7D69\" d=\"M16.5 0h-15A1.5 1.5 0 0 0 0 1.5v15A1.5 1.5 0 0 0 1.5 18h15a1.5 1.5 0 0 0 1.5-1.5v-15A1.5 1.5 0 0 0 16.5 0Zm-3.22 7.28-5.25 5.25a.748.748 0 0 1-1.06 0l-2.25-2.25a.75.75 0 1 1 1.06-1.06l1.72 1.72 4.72-4.72a.751.751 0 0 1 1.06 1.06Z\"/\u003e\u003c/svg\u003e';\nconst uncheckedicon = '\u003csvg width=\"18\" height=\"18\" fill=\"none\" viewBox=\"0 0 18 18\" version=\"1.1\" id=\"svg3273\" sodipodi:docname=\"icon-checkbox-uncheck.svg\" inkscape:version=\"1.1.1 (3bf5ae0d25, 2021-09-20)\" xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\" xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:svg=\"http://www.w3.org/2000/svg\"\u003e\u003cdefs id=\"defs3277\" /\u003e\u003csodipodi:namedview id=\"namedview3275\" pagecolor=\"#ffffff\" bordercolor=\"#666666\" borderopacity=\"1.0\" inkscape:pageshadow=\"2\" inkscape:pageopacity=\"0.0\" inkscape:pagecheckerboard=\"0\" showgrid=\"false\" inkscape:zoom=\"16.184889\" inkscape:cx=\"-7.0745004\" inkscape:cy=\"11.214164\" inkscape:window-width=\"1920\" inkscape:window-height=\"1009\" inkscape:window-x=\"-8\" inkscape:window-y=\"-8\" inkscape:window-maximized=\"1\" inkscape:current-layer=\"svg3273\" /\u003e\u003cpath fill=\"#0C7D69\" d=\"M 16.5,0 H 1.5 C 0.67157288,0 0,0.67157288 0,1.5 v 15 C 0,17.328427 0.67157288,18 1.5,18 h 15 C 17.328427,18 18,17.328427 18,16.5 V 1.5 C 18,0.67157288 17.328427,0 16.5,0 Z\" id=\"path3271\" style=\"fill:none;stroke:#87a3a6;stroke-opacity:1;fill-opacity:1\" sodipodi:nodetypes=\"sssssssss\" /\u003e\u003c/svg\u003e';\n\nvar isChecked = false;\n\ncheckbox.onclick = function() {\n  isChecked = !isChecked;\n  if (isChecked) {\n    checkicon.innerHTML = checkedicon;\n  } else {\n    checkicon.innerHTML = uncheckedicon;\n  }\n};\n\nconst selectedSVG = `\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"21\" fill=\"none\" viewBox=\"0 0 20 21\"\u003e\u003cpath fill=\"#0C7D69\" d=\"M10 .75a9.75 9.75 0 1 0 9.75 9.75A9.76 9.76 0 0 0 10 .75Zm0 18a8.25 8.25 0 1 1 8.25-8.25A8.26 8.26 0 0 1 10 18.75Zm5.25-8.25a5.25 5.25 0 1 1-10.499 0 5.25 5.25 0 0 1 10.499 0Z\"/\u003e\u003c/svg\u003e`;\nconst defaultSVG = `\u003csvg width=\"20\" height=\"21\" fill=\"none\" viewBox=\"0 0 20 21\"\u003e\u003cpath fill=\"#0c7d69\" d=\"M 10,0.75 C 1.3130736,0.75 -3.0357809,11.252101 3.1060591,17.393941 9.2478991,23.535781 19.75,19.186926 19.75,10.5 19.744488,5.1175085 15.382491,0.75551203 10,0.75 Z m 0,18 C 2.6495238,18.75 -1.0302761,9.8636069 4.1666654,4.6666654 9.3636069,-0.53027614 18.25,3.1495238 18.25,10.5 18.24449,15.054065 14.554065,18.74449 10,18.75 Z\" id=\"path2\" sodipodi:nodetypes=\"cscccscc\" style=\"fill:#87a3a6;fill-opacity:1\" /\u003e\u003c/svg\u003e`;\n\ndocument.getElementById('general-enquiry').addEventListener('click', function() {\n  if (this.classList.contains('selected-option')) {\n    this.classList.remove('selected-option');\n    this.querySelector('svg').outerHTML = defaultSVG;\n  } else {\n    this.classList.add('selected-option');\n    this.querySelector('svg').outerHTML = selectedSVG;\n    document.getElementById('support-request').classList.remove('selected-option');\n    document.getElementById('support-request').querySelector('svg').outerHTML = defaultSVG;\n  }\n});\n\ndocument.getElementById('support-request').addEventListener('click', function() {\n  if (this.classList.contains('selected-option')) {\n    this.classList.remove('selected-option');\n    this.querySelector('svg').outerHTML = defaultSVG;\n  } else {\n    this.classList.add('selected-option');\n    this.querySelector('svg').outerHTML = selectedSVG;\n    document.getElementById('general-enquiry').classList.remove('selected-option');\n    document.getElementById('general-enquiry').querySelector('svg').outerHTML = defaultSVG;\n  }\n});\n```\n\n## Author\n\n- Frontend Mentor - [@TwinkleByte](https://www.frontendmentor.io/profile/TwinkleByte)\n- Github - [@TwinkleByte](https://github.com/TwinkleByte)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwinklebyte%2Fcontact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwinklebyte%2Fcontact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwinklebyte%2Fcontact-form/lists"}