ScrewFast 是一个多用途的着陆页、博客和文档模板,基于 Astro 5 构建,并集成 Starlight 文档系统。其定位是帮助开发者快速搭建兼具营销首页、内容博客与产品文档的站点。
用途 该模板面向需要同时提供落地页、博客和文档的网站场景,可用于产品官网、项目主页或开发者文档站点。
技术栈
- 框架:Astro 5,包含 Starlight 文档系统
- 样式:Tailwind CSS 4、Preline UI
- 动画:GSAP、Lenis 平滑滚动
- 包管理器:npm
- 构建输出:dist 目录
- 开发端口:4321
使用方式
-
克隆模板: git clone --depth 1 https://github.com/Eng0AI/screwfast-template.git . 若目录非空,可使用: git clone --depth 1 https://github.com/Eng0AI/screwfast-template.git _temp_template mv _temp_template/* _temp_template/.* . 2>/dev/null || true rm -rf _temp_template
-
可选地移除 Git 历史: rm -rf .git git init
-
安装依赖: npm install
构建 运行 npm run build,该命令会依次执行 astro check && astro build && node process-html.mjs,即类型检查、构建并压缩 HTML。
部署
- Vercel(推荐): vercel pull --yes -t $VERCEL_TOKEN vercel build --prod -t $VERCEL_TOKEN vercel deploy --prebuilt --prod --yes -t $VERCEL_TOKEN
- Netlify: netlify deploy --prod --dir=dist
开发 运行 npm run dev,默认在 http://localhost:4321 打开。 预览生产构建:npm run preview。
适用场景 适合需要快速启动并统一管理落地页、博客与文档的开发者或团队,尤其是偏好 Astro 生态、使用 Tailwind CSS 与 Preline UI 进行样式开发,并希望借助 GSAP 实现页面动画的项目。
限制 资料未提供关于收费、价格、性能表现或浏览器兼容性的信息;模板的具体功能模块、SEO 能力与可定制程度也暂未提供。