{"id":15639346,"url":"https://github.com/ixkaito/nextsss","last_synced_at":"2025-04-19T12:03:36.736Z","repository":{"id":49266689,"uuid":"370855568","full_name":"ixkaito/nextsss","owner":"ixkaito","description":"Next.js static site starter including full setup for TypeScript, Tailwind CSS, Google Analytics, Next SEO, etc.","archived":false,"fork":false,"pushed_at":"2023-01-20T05:51:33.000Z","size":4818,"stargazers_count":87,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-12T18:01:45.456Z","etag":null,"topics":["autoprefixer","eslint","google-analytics","next-seo","nextjs","nextjs-starter","postcss","prettier","sass","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ixkaito.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}},"created_at":"2021-05-25T23:46:48.000Z","updated_at":"2025-02-07T08:37:38.000Z","dependencies_parsed_at":"2023-02-12T00:00:20.025Z","dependency_job_id":null,"html_url":"https://github.com/ixkaito/nextsss","commit_stats":null,"previous_names":[],"tags_count":2,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixkaito%2Fnextsss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixkaito%2Fnextsss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixkaito%2Fnextsss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixkaito%2Fnextsss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ixkaito","download_url":"https://codeload.github.com/ixkaito/nextsss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156025,"owners_count":20732357,"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":["autoprefixer","eslint","google-analytics","next-seo","nextjs","nextjs-starter","postcss","prettier","sass","tailwindcss","typescript"],"created_at":"2024-10-03T11:25:30.761Z","updated_at":"2025-03-30T21:31:48.412Z","avatar_url":"https://github.com/ixkaito.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\u003cimg width=\"480\" alt=\"NextSSS Logo\" src=\"https://user-images.githubusercontent.com/5457539/151701924-cbdf9ff8-3e9b-4e5c-b036-43e1ec0bbbef.png\"\u003e\u003c/p\u003e\n\u003c/div\u003e\n\nNextSSS is a [Next.js](https://nextjs.org/) starter template especially for static site including full setup for TypeScript, Tailwind CSS, Google Analytics, Next SEO, active link component, etc.\n\n## How to Use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the template:\n\n```bash\nnpx create-next-app --example https://github.com/ixkaito/nextsss\n```\n\nor\n\n```bash\nyarn create next-app --example https://github.com/ixkaito/nextsss\n```\n\n### Google Analytics\n\nEdit `GA_TRACKING_ID` in `/lib/gtag.ts`.\n\nExample:\n\n```ts\nexport const GA_TRACKING_ID = 'G-XXXXXXXXXX'\n```\n\n### Active `className` on a link\n\nExample:\n\n```ts\nimport Link from '../components/ActiveLink'\n\nconst Nav: React.FC = () =\u003e {\n  return (\n    \u003cnav\u003e\n      \u003cLink href=\"/\"\u003eHome\u003c/Link\u003e\n      \u003cLink href=\"/about/\"\u003eAbout\u003c/Link\u003e\n    \u003c/nav\u003e\n  )\n}\n\nexport default Nav\n```\n\nThis will dynamically add the `active` class name to each links. You can also change the `activeClassName` like this:\n\n```ts\nimport Link from '../components/ActiveLink'\n\nconst Nav: React.FC = () =\u003e {\n  return (\n    \u003cnav\u003e\n      \u003cLink href=\"/\" activeClassName=\"current\"\u003e\n        Home\n      \u003c/Link\u003e\n      \u003cLink href=\"/about/\" activeClassName=\"current\"\u003e\n        About\n      \u003c/Link\u003e\n    \u003c/nav\u003e\n  )\n}\n\nexport default Nav\n```\n\n### Image Component\n\nYou can use the same syntax of [next/image](https://nextjs.org/docs/api-reference/next/image) with static export.\n\nExample:\n\n```ts\nimport Image from '../components/Image'\nimport example1 from '../public/example1.png'\n\nconst Home: React.FC = () =\u003e {\n  return (\n    \u003cImage src={example} alt=\"Example 1\" /\u003e\n    \u003cImage src=\"/example2.png\" width={600} height={400} alt=\"Example 2\" /\u003e\n  )\n}\n\nexport default Home\n```\n\nNote: If you want to deploy the project to Vercel, remove the custom loader from `next.config.js` and `components/Image.tsx`.\n\n`next.config.js`\n\n```diff\n ...\n-  images: {\n-    loader: 'custom',\n-    path: '/',\n-  },\n ...\n```\n\n`components/Image.tsx`\n\n```diff\n ...\n-const customLoader = ({ src }: { src: string }) =\u003e {\n-  return src\n-}\n\n const Image = (props: ImageProps) =\u003e {\n-  return \u003cNextImage {...props} loader={customLoader} /\u003e\n+  return \u003cNextImage {...props} /\u003e\n }\n ...\n```\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixkaito%2Fnextsss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fixkaito%2Fnextsss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixkaito%2Fnextsss/lists"}