{"id":16386659,"url":"https://github.com/cosmoart/interactive-card-details-form","last_synced_at":"2025-06-23T12:36:54.224Z","repository":{"id":54182975,"uuid":"521807714","full_name":"cosmoart/Interactive-card-details-form","owner":"cosmoart","description":"💳 Web solution to a frontend mentor challenge, made with JS and CSS in React","archived":false,"fork":false,"pushed_at":"2024-02-27T03:01:11.000Z","size":401,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T12:35:49.867Z","etag":null,"topics":["css","frontend-mentor","javascript","js-form","reactjs"],"latest_commit_sha":null,"homepage":"https://interactive-card-details-form.vercel.app","language":"JavaScript","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/cosmoart.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":"2022-08-06T00:22:44.000Z","updated_at":"2025-03-14T23:22:08.000Z","dependencies_parsed_at":"2024-10-28T15:24:46.103Z","dependency_job_id":"0ce7c89d-511d-4e38-81bb-726887dd949b","html_url":"https://github.com/cosmoart/Interactive-card-details-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosmoart/Interactive-card-details-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmoart%2FInteractive-card-details-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmoart%2FInteractive-card-details-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmoart%2FInteractive-card-details-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmoart%2FInteractive-card-details-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosmoart","download_url":"https://codeload.github.com/cosmoart/Interactive-card-details-form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosmoart%2FInteractive-card-details-form/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261480618,"owners_count":23164946,"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":["css","frontend-mentor","javascript","js-form","reactjs"],"created_at":"2024-10-11T04:23:12.303Z","updated_at":"2025-06-23T12:36:49.206Z","avatar_url":"https://github.com/cosmoart.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://interactive-card-details-form.vercel.app\" target=\"_blank\"\u003e\n\t\t\u003cimg src=\"./screenshots/header.webp\" alt=\"Logo\" \u003e\n\t\u003c/a\u003e\n\n# Frontend Mentor - Interactive card details form solution\n\nThis is a solution to the [Interactive card details form challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/interactive-card-details-form-XpS8cKZDWw). Frontend Mentor challenges help you improve your coding skills by building realistic projects.\n\n[Solution][solution-url] . [Live Page][live-page]\n\n\u003c/div\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eTable of contents\u003c/summary\u003e\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-   [Author](#author)\n\n\u003c/details\u003e\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n-   Fill in the form and see the card details update in real-time\n-   Receive error messages when the form is submitted if:\n    -   Any input field is empty\n    -   The card number, expiry date, or CVC fields are in the wrong format\n-   View the optimal layout depending on their device's screen size\n-   See hover, active, and focus states for interactive elements on the page\n\n#### Expected behaviour\n\n-   Update the details on the card as the user fills in the fields\n-   Validate the form fields when the form is submitted\n-   If there are no errors, display the completed state\n-   Reset the form when the user clicks \"Continue\" on the completed state\n\n### Screenshots\n\n\u003ctable\u003e\n        \u003ctr\u003e\n\t\t    \u003ctd\u003e\n                \u003cimg src=\"./screenshots/mobile-solution.webp\"\n                    alt=\"Mobile solution\" width=\"100%\" title=\"Mobile solution\"  /\u003e\n            \u003c/td\u003e\n\t\t\t            \u003ctd\u003e\n                \u003cimg src=\"./screenshots/tablet-solution.webp\"\n                    alt=\"Tablet solution\" width=\"100%\" title=\"Tablet solution\"/\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003cimg src=\"./screenshots/desktop-solution.webp\"\n                    alt=\"Desktop solution\" width=\"100%\" title=\"Desktop solution\"/\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n\u003c/table\u003e\n\n### Links\n\n-   [Solution][solution-url]\n-   [Live Page][live-page]\n\n## My process\n\n### Built with\n\n-   Semantic HTML5 markup\n-   CSS custom properties\n-   Flexbox\n-   Desktop-first workflow\n-   [React](https://reactjs.org/) - JS library\n-   [Vite](https://interactive-card-details-form.vercel.app/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### What I learned\n\nThis challenge was a great learning opportunity, it was also very useful to reinforce previous knowledge, and face problems that had not been presented to me before.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Author\n\n-   Instagram - [@cosmo_art0](https://www.instagram.com/cosmo_art0/)\n-   Frontend Mentor - [@CosmoArt](https://www.frontendmentor.io/profile/cosmoart)\n-   Twitter - [@CosmoArt0](https://twitter.com/cosmoart0)\n-   My personal page - [https://cosmoart.vercel.app](https://cosmoart.vercel.app)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n[live-page]: https://interactive-card-details-form.vercel.app\n[solution-url]: https://www.frontendmentor.io/solutions/interactive-card-details-form-solution-tKY7SrfIs_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmoart%2Finteractive-card-details-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosmoart%2Finteractive-card-details-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosmoart%2Finteractive-card-details-form/lists"}