{"id":18614896,"url":"https://github.com/andrewjbateman/next-tailwind-card","last_synced_at":"2026-04-16T05:03:32.553Z","repository":{"id":96860745,"uuid":"401363778","full_name":"AndrewJBateman/next-tailwind-card","owner":"AndrewJBateman","description":":clipboard: A PWA Next/Tailwind template app with simple Create, Read, Update \u0026 Delete card components, deployed to Netlify.","archived":false,"fork":false,"pushed_at":"2021-10-07T13:53:49.000Z","size":1281,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-17T01:34:28.821Z","etag":null,"topics":["css3","deployed","html5","lighthouse-score","netlify","nextjs","pwa-app","react","react-component","ssr","tailwind","tailwindcss","template-project"],"latest_commit_sha":null,"homepage":"https://festive-lamarr-61ac43.netlify.app","language":"JavaScript","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/AndrewJBateman.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":"2021-08-30T14:00:18.000Z","updated_at":"2024-08-01T12:11:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0b02491-e831-4760-8b3c-47a0ff5e0e14","html_url":"https://github.com/AndrewJBateman/next-tailwind-card","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/next-tailwind-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-tailwind-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-tailwind-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-tailwind-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-tailwind-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/next-tailwind-card/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-tailwind-card/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272315479,"owners_count":24912575,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css3","deployed","html5","lighthouse-score","netlify","nextjs","pwa-app","react","react-component","ssr","tailwind","tailwindcss","template-project"],"created_at":"2024-11-07T03:27:22.103Z","updated_at":"2025-10-26T22:43:29.446Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Next Tailwind Card\n\n* A PWA Next/Tailwind template app with card component and perfect Lighthouse score\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/next-tailwind-card?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/next-tailwind-card?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/next-tailwind-card?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/next-tailwind-card?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Next Tailwind Card](#zap-next-tailwind-card)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General Info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General Info\n\n* Next.js used for frontend is for server-rendered react apps. It has automatic code splitting, simple page-based routing, built-in CSS support and hot reloading. Every component file in the pages folder is treated as a page\n* Tailwind CSS added to Next.js as part of [Next.js example app](https://tailwindcss.com/docs/guides/nextjs)\n* [`Just-in-Time Mode`](https://tailwindcss.com/docs/just-in-time-mode) used for Tailwind CSS.\n* Progressive Web App (PWA) enabled. Latest Next v11 used includes server code and makes adding PWA much easier\n* [Custom Document](https://nextjs.org/docs/advanced-features/custom-document) `pages/_document` used to add to app's \u003chtml\u003e and \u003cbody\u003e tags\n* [Next.js State Management](https://www.smashingmagazine.com/2021/08/state-management-nextjs/) NotesContext: note data is passed from provider to consumer, avoids props drilling from React passing data from top to bottom\n* [Nextjs useEffect Hook]() is like componentDidMount, componentDidUpdate, and componentWillUnmount combined. They don't run during Server Side Rendering (SSR). UseEffect runs after rendering\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/card.png)\n\n## :signal_strength: Technologies\n\n* [React v17](https://reactjs.org/) Javascript library.\n* [React icons v4](https://www.npmjs.com/package/react-icons), full list [here](https://react-icons.github.io/react-icons)\n* [Next v11](https://nextjs.org/) minimalist framework for rendering react apps on the server.\n* [Tailwind v2](https://tailwindcss.com/) utility-first CSS framework\n* [PostCSS v8](https://postcss.org/) tool for transforming CSS with JavaScript\n* [pngTree](https://pngtree.com/) downloadable images, png etc.\n* [pwa-asset-generator v4](https://www.npmjs.com/package/pwa-asset-generator) Automated PWA asset generation and image declaration. Creates icons and JSON array for PWA manifest.json file\n\n## :floppy_disk: Setup\n\n* `npm run dev` runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.\n* `npm run build` builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\n* `npm run start` to run the built app.\n\n## :computer: Code Examples\n\n* `pages/_document` HTML render used to add custom HTML to existing Next document page\n\n```javascript\nrender() {\n\treturn (\n\t\t\u003cHtml lang=\"en\"\u003e\n\t\t\t\u003cHead\u003e\n\t\t\t\t\u003cmeta\n\t\t\t\t\tname=\"description\"\n\t\t\t\t\tcontent=\"Build a Next.js PWA with 100% lighthouse score\"\n\t\t\t\t\u003e\u003c/meta\u003e\n\t\t\t\t\u003cmeta\n\t\t\t\t\tname=\"viewport\"\n\t\t\t\t\tcontent=\"width=device-width, initial-scale=1.0\"\n\t\t\t\t/\u003e\n\t\t\t\t\u003cmeta name=\"theme-color\" content=\"#0D47A1\" /\u003e\n\t\t\t\t\u003clink rel=\"manifest\" href=\"/manifest.json\" /\u003e\n\t\t\t\t\u003clink\n\t\t\t\t\thref=\"/favicon-16x16.png\"\n\t\t\t\t\trel=\"icon\"\n\t\t\t\t\ttype=\"image/png\"\n\t\t\t\t\tsizes=\"16x16\"\n\t\t\t\t/\u003e\n\t\t\t\t\u003clink\n\t\t\t\t\thref=\"/favicon-32x32.png\"\n\t\t\t\t\trel=\"icon\"\n\t\t\t\t\ttype=\"image/png\"\n\t\t\t\t\tsizes=\"32x32\"\n\t\t\t\t/\u003e\n\t\t\t\t\u003clink rel=\"apple-touch-icon\" href=\"/apple-icon.png\"\u003e\u003c/link\u003e\n\t\t\t\u003c/Head\u003e\n\t\t\t\u003cbody\u003e\n\t\t\t\t\u003cMain /\u003e\n\t\t\t\t\u003cNextScript /\u003e\n\t\t\t\u003c/body\u003e\n\t\t\u003c/Html\u003e\n\t);\n}\n```\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working CRUD app but needs work. All data lost upon refresh. [Deployed to Netlify](https://festive-lamarr-61ac43.netlify.app/)\n* To-Do: Replace create \u0026 edit page styling. Add nav with about \u0026 contact links. Add card component, add about \u0026 contact cards\n\n## :clap: Inspiration\n\n* [Install Tailwind CSS with Next.js](https://tailwindcss.com/docs/guides/nextjs)\n* [Tailwind CSS: Customizing Colors](https://tailwindcss.com/docs/customizing-colors)\n* [Next.js example app](https://tailwindcss.com/docs/guides/nextjs)\n* [Not Science Lab: Product Card Tutorial (Next.js, Tailwind CSS and react-icons)](https://www.youtube.com/watch?v=E11eRGweC3M)\n* [Convert your website into a PWA in 8 simple steps](https://milindsoorya.site/blog/convert-your-website-into-a-pwa-in-8-simple-steps-next-js-pwa-series-part-2#step-6-edit-your-_documentjs-file)\n* [How to Deploy Next.js Sites to Netlify](https://www.netlify.com/blog/2020/11/30/how-to-deploy-next.js-sites-to-netlify/)\n* [codewith hugo: Why doesn't React.useEffect run on React server-side renders (SSR)?](https://codewithhugo.com/react-useeffect-ssr/)\n* [hasinhayder/tailwind-cards](https://github.com/hasinhayder/tailwind-cards/blob/master/index.html)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnext-tailwind-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fnext-tailwind-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnext-tailwind-card/lists"}