品牌替换集中在 community.config.ts 一个文件,导航栏、页脚、hero、页面标题与 meta 描述随之更新
angular-community-website-template — Angular 启动器模板
作者 ngcameroon
面向 Angular 社区组织的网站模板,Fork 后修改一个配置文件即可替换品牌与内容,包含首页、路线图、聚会日程和开源项目展示四个页面。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
路线图页面使用 ng-diagram 实现交互式旅程图,支持引导浏览、阶段导航、缩略图和键盘控制
聚会页面自动排序:下一场置顶并显示实时倒计时,进行中显示 Happening now,结束后自动移入往期归档
预渲染配合 TransferState 处理构建时钟与访问者时钟的差异,避免水合不匹配
内容数据以 Angular Cameroon 的真实活动为示例,可直接看到填充后的站点形态
MIT 许可,允许免费使用、修改、商用和分发该版本代码
模板详细介绍
这是一个由 Angular Cameroon 维护、最初用于 ngCameroon 站点的 Angular 社区网站模板。仓库以 MIT 许可开放,目标是让其他社区不必从空的 ng new 开始搭建站点。
模板包含四个页面:首页(hero、社区支柱、精选项目)、路线图(基于 ng-diagram 的交互式旅程图,带引导浏览、阶段导航、缩略图和键盘控制)、聚会(自动排序的日程,突出显示下一场并带实时倒计时,已结束的场次自动移入往期归档)、开源(展示社区维护的项目)。
品牌替换集中在 src/app/core/community.config.ts 一个文件,涵盖名称、字标、标语、城市、国家、时区、站点 URL、GitHub 组织、社交链接、hero 统计、页脚资源链接、首页三个支柱和精选项目;导航栏、页脚、hero、页面标题和 meta 描述都会随之更新。Logo 放在 public/brand/logo.svg,用于导航栏、页脚、favicon 和 web manifest。src/index.html 中的静态标签和 public 下的 robots.txt、sitemap.xml、site.webmanifest 需要手动替换占位域名。配色定义在 src/styles.css 的 @theme 块中,修改强调色十六进制值即可全局生效。
内容数据以 Angular Cameroon 的真实活动作为示例:聚会场次在 meetups.data.ts,路线图周次与阶段在 journey.data.ts,开源项目在 open-source.data.ts。聚会页面在预渲染为静态 HTML 时通过 TransferState 写入构建时的时钟,首次客户端渲染复用该值以匹配水合,之后切换到访问者的真实时钟。
使用要求为 Node.js 20.x 或 22.x、npm 10+。构建命令 npm run build 会生成带预渲染的产物,输出目录为 dist/community-site/browser,仓库内的 vercel.json 已按 Vercel 配置,未匹配的路径回退到 /index.html,文件系统优先于重写规则,因此 /roadmap 等真实预渲染路由会被直接提供。该模板也可部署到任意静态托管。
适合你的项目吗?
适用场景
- 为某个 Angular 用户组快速搭建包含首页、路线图、聚会日程和开源项目展示的社区站点
- 把模板中的示例数据替换为本社区的活动安排与维护项目清单
- 在 Vercel 或任意静态托管上部署预渲染后的静态产物
适合人群
- 需要现成页面结构、希望只改配置和内容数据的 Angular 社区组织者
- 接受 Angular 技术栈并愿意自行替换品牌、配色与占位域名的开发者
- 需要静态托管、按场次自动更新聚会日程的社区站点维护者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 Node.js 20.x 或 22.x 以及 npm 10+
- 2
可用 npx degit ngcameroon/angular-community-website-template my-community 拉取代码,然后 npm install、npm start,开发服务器运行在 localhost:4200
- 3
替换品牌需修改 src/app/core/community.config.ts、public/brand/logo.svg、src/index.html 中的静态标签,以及 public 下 robots.txt、sitemap.xml、site.webmanifest 里的占位域名
- 4
配色在 src/styles.css 的 @theme 块中调整,强调色十六进制值变更后全局生效
- 5
npm run build 生成预渲染产物到 dist/community-site/browser,可部署到 Vercel(仓库含 vercel.json)或任意静态托管;演示图片、字体、图标等第三方素材需按各自许可核对
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/ngcameroon/angular-community-website-template/blob/main/LICENSEhttps://github.com/ngcameroon/angular-community-website-template/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 83 / 100
- 技术栈
- Angular
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-12
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Angular。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: 86cbbf836e14821987239f9e2a98a47037495a58efcd37a04ec491ecb141bdbb
2026-10-03T23:30:15.949Z
来源文件 / 仓库# Angular Community Website Template A production-ready website for an Angular community group. Fork it, edit one config file, and you have a site with a landing page, a roadmap timeline, a meetups scheduler, and an open source showcase. Built and maintained by [Angular Cameroon](https://github.com/ngcameroon). Originally the ngCameroon site, opened up so other communities do not have to start from an empty `ng new`. **Live demo:** [template.ngcameroon.com](https://template.ngcameroon.com) ## What you get - **Landing page** with a hero, community pillars, and a featured project spotlight - **Roadmap** with an interactive journey diagram: guided tour, phase navigation, minimap, keyboard control - **Meetups** that sort themselves, featuring the next session with a live countdown and moving finished sessions into a past archive automatically - **Open Source** showcase for the projects your community maintains - Angular 21, SSR with prerendering, Tailwind CSS 4, dark theme, responsive, reduced-motion aware ## Requirements - Node.js 20.x or 22.x - npm 10+ ## Getting started ```bash npx degit ngcameroon/angular-community-website-template my-community cd my-community npm install npm start ``` The site runs at `http://localhost:4200/`. ## Make it yours Most of the rebrand happens in one file. ### 1. Identity: `src/app/core/community.config.ts` Name, wordmark, tagline, city, country, timezone, site URL, GitHub org, social links, hero stats, footer resource links, the three home page pillars, and the featured project. Change these and the navbar, footer, hero, page titles, and meta descriptions all follow. ### 2. Logo: `public/brand/logo.svg` Drop your own file in at that path and every reference updates. It is used for the navbar, footer, favicon, and web manifest. ### 3. Static tags: `src/index.html` These cannot read the TypeScript config because they are plain HTML. Replace every `Angular Community` and `your-community.example` with your own name and domain. There is a comment at the top of the file marking exactly what to change. ### 4. Colours: `src/styles.css` The palette lives in the `@theme` block at the top: | Token | What it is | | :--- | :--- | | `--color-angular-red`, `--color-angular-blue` | Angular brand colours, usually keep these | | `--color-accent-green`, `--color-accent-red`, `--color-accent-gold` | Your community's accent colours | | `--color-page-bg`, `--color-surface*`, `--color-text*` | Dark theme surfaces and text | Change the accent hex values to your own and the whole site follows. ### 5. Content These files ship with Angular Cameroon's real programme as example data, so you can see what a filled-in site looks like before replacing it: | File | Drives | | :--- | :--- | | `src/app/pages/meetups/meetups.data.ts` | Session list, dates, topics, registration links | | `src/app/pages/roadmap/journey.data.ts` | Roadmap weeks and phases | | `src/app/pages/open-source/open-source.data.ts` | Projects on the Open Source page | ### 6. Public files `public/robots.txt`, `public/sitemap.xml`, and `public/site.webmanifest` all carry the placeholder domain. Swap in yours. ## How the meetups page works Sessions move themselves. The next upcoming session is featured at the top with a live countdown; during its hour it switches to a "Happening now" state; once it ends it drops into **Past sessions**, dimmed and badged. Because the page is prerendered to static HTML, the build stamps its own clock into the page via `TransferState`. The first client render reuses that exact value so hydration matches, then it switches to the visitor's real clock. That is why the page is never stale, however long ago you deployed. Add a session by appending to `MEETUPS` in `meetups.data.ts`. Set `registrationUrl` to a real link and the card's button becomes live; leave it `null` and it reads "Registration opens soon". ## Commands | Command | What it does | | :--- | :--- | | `npm start` | Dev server at `localhost:4200` | | `npm run build` | Production build with prerendering | | `npm test` | Unit tests via Vitest | ## Deploying `vercel.json` is set up for Vercel. Every route is prerendered, so the output is fully static: - **Output directory:** `dist/community-site/browser` - **Rewrite:** everything unmatched falls back to `/index.html` The filesystem is checked before rewrites, so real prerendered routes such as `/roadmap` are served directly and only unknown URLs hit the fallback. Any static host works. Point it at `dist/community-site/browser` after `npm run build`. ## Project structure ```text src/app/ ├── core/ │ ├── community.config.ts # start here │ ├── directives/ # scroll reveal │ └── services/ ├── pages/ │ ├── home/ # hero, pillars, featured project │ ├── roadmap/ # journey diagram (ng-diagram) │ ├── meetups/ # session scheduler │ └── open-source/ # project showcase └── shared/components/ # navbar, footer, icon set ``` ## Contributing Issues and pull requests are welcome, especially from communities adopting this. If you fork it and something was harder to change than it should have been, that is a bug worth reporting. ## Licence MIT. See [LICENSE](./LICENSE). You are free to use this for your community with no attribution required, though a link back is always appreciated.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

QuickStart
Matech QuickStart is an ASP.NET Core / Angular / Admin starter project featuring SOLID architecture, advanced …
Angular · 后台

AngularTemplate
⚡ Angular template starter kit designed for production quality
Angular · 启动器

matdash-angular-free
MatDash Angular Free is a modern, responsive, and developer-friendly admin dashboard template built with Angul…
Angular · 后台

claude-starter
.NET 10 + Angular 22 starter template. Dapper/Npgsql on PostgreSQL, DbUp migrations, cookie auth with optional…
Angular · 后台
ant-design-pro
Ant Design Pro 是 Ant Design 官方推出的企业级中后台前端脚手架,基于 React 19、Umi Max 4 和 antd 6 构建,内置 TypeScript 支持。
React · 后台

ai-website-cloner-template
Clone any website with one command using AI coding agents
Next.js · 启动器
