{"id":49081095,"url":"https://github.com/codesign-cloud/cdc-next-static-homepage-base","last_synced_at":"2026-04-20T13:14:16.038Z","repository":{"id":254898824,"uuid":"847709876","full_name":"codesign-cloud/cdc-next-static-homepage-base","owner":"codesign-cloud","description":"CDC Homepage is a base for creating modern SaaS product landing pages. It includes Tailwind CSS and Next.js with required configurations for publishing as a static site to GH Pages.","archived":false,"fork":false,"pushed_at":"2025-07-06T11:43:44.000Z","size":262,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T12:24:53.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://codesign-cloud.github.io/cdc-next-static-homepage-base/","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/codesign-cloud.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-08-26T11:55:27.000Z","updated_at":"2025-07-06T11:43:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"02c80f22-04f8-48e5-8675-91589786d111","html_url":"https://github.com/codesign-cloud/cdc-next-static-homepage-base","commit_stats":null,"previous_names":["codesign-cloud/cdc-homepage","codesign-cloud/cdc-next-static-homepage-base"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/codesign-cloud/cdc-next-static-homepage-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesign-cloud%2Fcdc-next-static-homepage-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesign-cloud%2Fcdc-next-static-homepage-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesign-cloud%2Fcdc-next-static-homepage-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesign-cloud%2Fcdc-next-static-homepage-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesign-cloud","download_url":"https://codeload.github.com/codesign-cloud/cdc-next-static-homepage-base/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesign-cloud%2Fcdc-next-static-homepage-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"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":"2026-04-20T13:14:15.325Z","updated_at":"2026-04-20T13:14:16.033Z","avatar_url":"https://github.com/codesign-cloud.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n`CDC-Homepage` is a base for creating modern product landing pages. Built with Next.js and Tailwind CSS, it offers a modern foundation for quickly launching homepages for your products.\n\nYou can see the GH Pages' live build [here](https://codesign-cloud.github.io/cdc-next-static-homepage-base/).\n\n![Screenshot](public/screenshot.png \"cdc homepage preview\")\n\n### Clone from base repo\n\n``````\n# Clone the base repo for a new homepage\ngit clone https://github.com/codesign-cloud/cdc-next-static-homepage-base.git projectX\ncd projectX\nnpm i \nnpm run dev\n``````\nYou are now ready to start developing your own static homepage.\n\n--------------------------------------------------------------------\n\n## Prerequisites\n- Ensure that GitHub Pages is activated for your new repository on GH. Navigate to GitHub \u003e Settings \u003e Pages \u003e Build and deployment \u003e Source and select GitHub Actions.\n\n--------------------------------------------------------------------\n### Add base repo as remote (if required)\n\n``````\n# Change the origin to the new project's repo\ngit remote set-url origin https://github.com/userX/projectX.git\n``````\n\n``````\n# Add this base repo as a secondary remote named 'base'\ngit remote add base https://github.com/codesign-cloud/cdc-next-static-homepage-base.git\n``````\n\n### Updating your fork with changes from the Base Repository (if required)\n`````\n# Fetch the latest changes from the base repository\ngit fetch base\n`````\n\n`````\n# Merge the fetched changes into your local main branch\ngit merge base/main\n\n# In case you encounter the \"fatal: refusing to merge unrelated histories\" error,\n# you can use the --allow-unrelated-histories flag to bypass this.\n# ⚠️ Use this flag carefully, as it may lead to complex merge conflicts.\ngit merge base/main --allow-unrelated-histories\n\n# To prioritize and accept all incoming changes from the base repository, use:\n# ⚠️ Again, use this flag carefully, as it may lead to complex merge conflicts.\ngit merge -X theirs base/main --allow-unrelated-histories\n\n`````\n\n------------------------------------\n\n## Configuring Paths for GitHub Pages Deployment\n\n**Note:** This configuration is only necessary if your GitHub Pages site is hosted at `username.github.io/your-repo-name`. If you are using a custom domain or subdomain, this step is not required, as / points to the root.\n\nWhen using static assets, such as images with the `img` tag, that are located in the `/assets/` directory within your public folder, you need to adjust the base URL accordingly.\n\nTo set this up, follow these steps:\n1. Navigate to your repository on GitHub.\n2. Go to `Settings` \u003e `Secrets and variables` \u003e `Actions` \u003e `Repository secrets`.\n3. Click on `New repository secret`.\n4. Add a new secret named `BASE_PATH` with the value `https://username.github.io/your-repo-name` (no trailing slash)\n\nYou can then utilize this base path in your JSX pages as shown below:\n\n```jsx\nimport { basePath } from '@/app/basePath';\n...\n..\n    \u003cimg src={`${basePath}/assets/logo.svg`} alt=\"Logo\" /\u003e\n```\n\n------------------------------------ \n\n### Getting Started (Next.js Readme)\n\nFirst, run the development server:\n\n```bash\nnpm run dev || yarn dev || pnpm dev || bun dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\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/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesign-cloud%2Fcdc-next-static-homepage-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesign-cloud%2Fcdc-next-static-homepage-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesign-cloud%2Fcdc-next-static-homepage-base/lists"}