{"id":18879267,"url":"https://github.com/iamskok/esl-cards","last_synced_at":"2026-04-07T20:31:49.611Z","repository":{"id":55325827,"uuid":"262404901","full_name":"iamskok/esl-cards","owner":"iamskok","description":"Elder Scrolls Legends card explorer React app","archived":false,"fork":false,"pushed_at":"2021-04-26T13:36:32.000Z","size":504,"stargazers_count":0,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T13:33:07.669Z","etag":null,"topics":["babel","browserlist","eslint","netlify","prettier","react","renovate","styled-components","stylelint","webpack","yarn"],"latest_commit_sha":null,"homepage":"https://esl-cards.netlify.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/iamskok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-08T18:56:40.000Z","updated_at":"2020-09-07T02:06:31.000Z","dependencies_parsed_at":"2022-08-14T21:11:33.026Z","dependency_job_id":null,"html_url":"https://github.com/iamskok/esl-cards","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamskok/esl-cards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fesl-cards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fesl-cards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fesl-cards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fesl-cards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamskok","download_url":"https://codeload.github.com/iamskok/esl-cards/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamskok%2Fesl-cards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31528318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["babel","browserlist","eslint","netlify","prettier","react","renovate","styled-components","stylelint","webpack","yarn"],"created_at":"2024-11-08T06:34:52.480Z","updated_at":"2026-04-07T20:31:49.559Z","avatar_url":"https://github.com/iamskok.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://esl-cards.netlify.app\"\u003e\n    \u003ch1\u003eElder Scrolls Legends card explorer app\u003c/h1\u003e\n  \u003c/a\u003e\n  \n  \u003cp\u003e\n    \u003ca href=\"https://app.netlify.com/sites/esl-cards/deploys\"\u003e\n      \u003cimg src=\"https://api.netlify.com/api/v1/badges/e480a039-7119-445f-9946-084c41330c86/deploy-status\" alt=\"Netlify Status\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n## Project requirements\n\n* Show results in a card grid format with the image prominently displayed.\n* Each card displays: Image, Name, Text, Set Name, and Type. Additional fields are optional.\n* Display a loading indicator when communicating with the API.\n* Use a responsive design that accommodates, at minimum, desktop and mobile.\n* Initially, fetch and display the first 20 results returned by the API.\n* As the user scrolls down the page, load and append additional cards using “infinite scroll.”\n* Retrieve additional pages of results as-needed but do not load more than 20 cards with\neach request.\n* Allow the user to search for cards by Name.\n* Use modern open-source web technologies to implement your solution (React, Backbone,\nAngular, Vue, Underscore, etc.).\n* Provide instructions for prerequisites, installation, and application setup and build in a\nREADME file.\n\n## Installation\n\nThis project requires: \n\n  1. [Node.js](https://nodejs.org/en/download/) `^14.0.0`.\n  2. [Yarn](https://classic.yarnpkg.com/en/docs/install/#mac-stable) `^1.22.4`.\n\n```bash\nyarn \u0026\u0026 yarn start\n```\n\nThis command will install all required dependencies, start `webpack-dev-server` and automatically open [http://localhost:8080/](http://localhost:8080/) in your browser.\n\n## NPM scripts\n\nName | Description\n---|---\n`build` | build production bundle\n`format:styles` | format styles with Stylelint\n`lint:js` | lint JavaScript for code quality issues with ESLint\n`format:js` | format JavaScript with Prettier\n`precommit` | run all linters and formatters with a single command\n\n## Decisions\n\n* Use native [`fetch`](https://caniuse.com/#feat=fetch) vs using 3rd party package, because no IE support is required.\n* Use subsetted [Inter variable font](https://github.com/rsms/inter/releases) for performance reasons and greater design capabilities. [Variable font](https://caniuse.com/#feat=variable-fonts) browser support is really good, so there no reason to use static fonts fallback with [CSS `@suppots` at-rule](https://developer.mozilla.org/en-US/docs/Web/CSS/@supports) for this project. The font was subsetted with the help of [`fonttools`](https://github.com/fonttools/fonttools) and was reduced from original `318KB` to `31KB`.\n* Add sound effect on user interaction with [`use-sound`](https://github.com/joshwcomeau/use-sound) hook. Lets the app communicate using 2 human senses instead of 1.\n* Agressively cache `.js` and `.mp3` files with [Netlify](https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file) and [Webpack](https://webpack.js.org/guides/caching/#output-filenames) `contenthash` file names.\n* Use [`prefers-reduced-motion`](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) CSS media feature in `NoCardsFound` component to avoid physical symptoms like nausea, dizziness, and malaise for certain users (requires system configuration on the user's side).\n* Use a responsive grid with 1, 2, and 4 cards per row to avoid half-empty rows. (Initial and all subsequent fetches load 20 cards).\n* Add dark mode feature and save user selection in the `LocalStorage` to improve UX.\n* Use Angular's [git commit message styleguide](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines) to introduce consistency in the git history.\n* Use ESLint, Stylelint, and Prettier to avoid friction between developers.\n* Use Browserlist to share target browsers between Stylelint and babel-preset-env.\n* Use Netlify JavaScript minification instead of Webpack to avoid increasing local build time.\n* Use [Theme Specification](https://theme-ui.com/theme-spec) for organizing CSS-in-JS.\n\n## TODO\n\nAs always the project in _never_ done you just stop working on it. Here is a list of things, which will be nice to add:\n\n* Add link preload for font file to give it the highest priority and load it ASAP.\n* Add CI and test suites. \n* Add SVG favicons for light and dark themes.\n* Add `manifest.json` and ServiceWorker for the offline-first experience.\n* Add `sitemap.xml` and `robots.txt` for better SEO.\n* Add React [`prop-types`](https://github.com/facebook/prop-types) to catch bugs early on.\n\n## Issues\n\n* On iOS, after switching activities, sounds are not played anymore. There is an open [Github issue](https://github.com/joshwcomeau/use-sound/issues/15).\n\n## Resources\n\n* [Elder Scrolls Legends](https://docs.elderscrollslegends.io) access ESL API endpoints, which can get information on cards and sets.\n* [React](https://reactjs.org/docs/getting-started.html) is a JavaScript library for building user interfaces.\n* [Styled Components](https://styled-components.com/docs) is a CSS-in-JS library.\n* [Webpack](https://webpack.js.org/concepts) is a static module bundler for modern JavaScript applications.\n* [Babel](https://babeljs.io/docs/en/) is a JavaScript compiler. \n* [ESLint](https://eslint.org/docs/user-guide/getting-started) is a pluggable and configurable linter tool for identifying and reporting on code quality issues in JavaScript.\n* [Prettier](https://prettier.io/docs/en/install.html) is an opinionated code formatter for JavaScript and other languages.\n* [Stylelint](https://stylelint.io) is a mighty, modern linter that helps you avoid errors and enforce conventions in your styles.\n* [Netlify](https://docs.netlify.com) is a web hosting infrastructure and automation platform.\n* [Yarn](https://yarnpkg.com/) is a fast, reliable, and secure dependency management.\n* [Renovate](https://github.com/renovatebot/renovate) is an automated dependency updates tool.\n* [Browserlist](https://github.com/browserslist/browserslist) is a tool for sharing target browsers between different front-end tools.\n* [use-sound](https://github.com/joshwcomeau/use-sound) a React Hook for Sound Effects.\n\n## Lighthouse\n\n![Lighthouse results for https://esl-cards.netlify.app/](https://i.imgur.com/yZ1WpY2.png \"Lighthouse\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamskok%2Fesl-cards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamskok%2Fesl-cards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamskok%2Fesl-cards/lists"}