Astro 静态站点结构,页面与 React 组件混合使用
astro-genai-startup-theme — Astro 企业官网模板
作者 ctrimm
基于 Astro 的多页 GenAI 创业公司官网模板,含首页各区块、深色/浅色切换与 GitHub Pages 部署配置,MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置深色/浅色模式切换,状态写入 localStorage
预置 Hero、Features、Pricing、Testimonials、FAQ、Footer 等首页区块
使用 Tailwind CSS 与 CSS 变量组织颜色,可在 global.css 集中调整
包含 GitHub Actions 工作流,可部署到 GitHub Pages
采用 MIT 许可,仓库附带完整许可文件
模板详细介绍
这是一个面向 GenAI 与 AI 方向创业公司的 Astro 网站模板,仓库描述为“Quick multipage site for a startup built with Astro”。页面由 Astro 页面与 React 组件混合构成:src/pages/index.astro 承载主落地页,src/layouts/main.astro 提供带页头页脚的通用布局,并附带一个 markdown 示例页。首页拆分为 Hero、Features、Pricing、Testimonials、FAQ、Footer 等独立组件,另有 Header 与 ThemeToggle 负责导航和深色/浅色模式切换,主题状态通过 localStorage 持久化。样式基于 Tailwind CSS 与 CSS 变量,颜色可在 src/styles/global.css 中调整;组件库使用 shadcn/ui,动画使用 Framer Motion,图标使用 Lucide,无障碍基础组件来自 Radix UI。项目包含 GitHub Actions 工作流,可发布到 GitHub Pages,也支持手动构建后上传 dist 目录。仓库内附有 TODO.md 作为开发进度记录,说明该模板仍在演进中。
适合你的项目吗?
适用场景
- 为 GenAI 或 AI 方向的创业公司搭建多页官网
- 制作 SaaS 产品的落地页与功能介绍页
- 快速搭建面向开发者工具或 API 产品的展示站点
- 作为 Astro + React + Tailwind 组合的学习或起步项目
适合人群
- 需要现成首页区块、想快速替换文案与品牌的团队
- 接受 Astro 与 React 组件混合开发方式的前端开发者
- 计划使用 GitHub Pages 托管静态站点的个人或小团队
- 希望以 MIT 许可自由修改并商用的使用者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后执行 npm install 安装依赖,npm run dev 启动本地开发服务器(默认 4321 端口)
- 2
使用 npm run build 生成生产构建,npm run preview 预览构建结果
- 3
部署到 GitHub Pages 前需在 astro.config.js 中填写 site 与 base,并在仓库设置中将 Pages 来源选为 GitHub Actions
- 4
品牌名称与 Logo 需在 Header、Footer 及 main.astro 的页面标题中替换
- 5
演示图片、字体、图标等第三方素材的许可需单独核对,不能仅依据代码的 MIT 许可判断
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/ctrimm/astro-genai-startup-theme/blob/main/LICENSEhttps://github.com/ctrimm/astro-genai-startup-theme/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 83 / 100
- 技术栈
- Astro
- 网站类型
- 企业官网
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-12-08
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: b05f6a7d15b4709fe21d8ffa1322a27cbc62a57e3d29ae1fca98f6bcfac0333a
2026-10-02T09:43:05.989Z
来源文件 / 仓库# 🚀 GenAI Startup Astro Theme
A modern, beautiful, and **completely free** Astro theme template designed specifically for GenAI and AI-focused startups. Features a stunning dark/light mode toggle, smooth animations, and ready-to-deploy components.
  
<img width="3809" height="2327" alt="Screenshot of GenAI Startup Homepage" src="https://github.com/user-attachments/assets/b086ecf1-1f3a-495c-927e-f940b88fc757" />
## ✨ Features
- 🎨 **Beautiful Design** - Modern, clean UI with gradient accents and smooth animations
- 🌓 **Dark/Light Mode** - Fully functional theme toggle with localStorage persistence
- ⚡ **Lightning Fast** - Built with Astro for optimal performance
- 📱 **Fully Responsive** - Perfect on mobile, tablet, and desktop
- 🎭 **Framer Motion** - Smooth scroll animations and transitions
- 🧩 **Pre-built Sections**:
- Hero with animated gradients
- Features showcase
- Pricing cards
- Testimonials
- FAQ with accordion
- Newsletter signup
- Social links
- 🎯 **TypeScript** - Full type safety
- 🎨 **Tailwind CSS v4** - Latest utility-first CSS framework
- 🧱 **shadcn/ui** - Beautiful, accessible components
- 🚀 **GitHub Pages Ready** - Deploy with one click
- ♿ **Accessible** - WCAG compliant components
## 🎯 Perfect For
- AI/GenAI Startups
- SaaS Landing Pages
- API Documentation Sites
- Developer Tools
- Tech Product Launches
## 🚀 Quick Start
### 1. Clone the repository
```bash
git clone https://github.com/yourusername/astro-genai-startup-theme.git
cd astro-genai-startup-theme
```
### 2. Install dependencies
```bash
npm install
```
### 3. Start development server
```bash
npm run dev
```
Visit `http://localhost:4321` to see your site!
### 4. Build for production
```bash
npm run build
```
## 📦 What's Included
### Components
- **Header** - Responsive navigation with theme toggle
- **Hero** - Eye-catching hero section with animated gradients and stats
- **Features** - Grid of feature cards with icons and hover effects
- **Pricing** - Comparison pricing cards with highlighted popular plan
- **Testimonials** - Customer testimonials with ratings
- **FAQ** - Accordion-style frequently asked questions
- **Footer** - Complete footer with links and newsletter signup
- **ThemeToggle** - Dark/light mode switcher
### Pages
- `index.astro` - Main landing page with all sections
- `markdown-page.md` - Example markdown page
### Layouts
- `main.astro` - Main layout with header and footer
## 🎨 Customization
### Colors
Edit `src/styles/global.css` to customize your brand colors. The theme uses CSS variables for easy customization:
```css
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.147 0.004 49.25);
/* ... more variables */
}
```
### Content
Update the content in the component files:
- `src/components/Hero.tsx` - Hero section text and stats
- `src/components/Features.tsx` - Feature list
- `src/components/Pricing.tsx` - Pricing tiers
- `src/components/Testimonials.tsx` - Customer reviews
- `src/components/FAQ.tsx` - Questions and answers
### Branding
Replace the logo and brand name in:
- `src/components/Header.tsx`
- `src/components/Footer.tsx`
- `src/layouts/main.astro` (page title)
## 🚀 Deploy to GitHub Pages
### Automatic Deployment
This theme includes a GitHub Actions workflow for automatic deployment:
1. Update `astro.config.js` with your repository details:
```js
export default defineConfig({
site: 'https://yourusername.github.io',
base: '/your-repo-name',
// ...
});
```
2. Push to your repository:
```bash
git add .
git commit -m "Initial commit"
git push origin main
```
3. Enable GitHub Pages in your repository settings:
- Go to Settings → Pages
- Source: GitHub Actions
4. Your site will be automatically deployed on every push!
### Manual Deployment
```bash
npm run build
# Upload the contents of the dist/ folder to your hosting provider
```
## 📁 Project Structure
```
/
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Pages deployment
├── public/
│ └── favicon.svg
├── src/
│ ├── components/
│ │ ├── ui/ # shadcn/ui components
│ │ │ ├── accordion.tsx
│ │ │ └── button.tsx
│ │ ├── FAQ.tsx
│ │ ├── Features.tsx
│ │ ├── Footer.tsx
│ │ ├── Header.tsx
│ │ ├── Hero.tsx
│ │ ├── Pricing.tsx
│ │ ├── Testimonials.tsx
│ │ └── ThemeToggle.tsx
│ ├── layouts/
│ │ └── main.astro
│ ├── lib/
│ │ └── utils.ts
│ ├── pages/
│ │ └── index.astro
│ └── styles/
│ └── global.css
├── astro.config.js
├── components.json
├── package.json
├── tailwind.config.mjs
├── tsconfig.json
└── TODO.md # Development progress tracker
```
## 🛠️ Tech Stack
- **[Astro 5.16](https://astro.build/)** - Static site generator
- **[React 19](https://react.dev/)** - UI components
- **[TypeScript](https://www.typescriptlang.org/)** - Type safety
- **[Tailwind CSS 4](https://tailwindcss.com/)** - Styling
- **[shadcn/ui](https://ui.shadcn.com/)** - Component library
- **[Framer Motion](https://www.framer.com/motion/)** - Animations
- **[Lucide Icons](https://lucide.dev/)** - Icon library
- **[Radix UI](https://www.radix-ui.com/)** - Accessible primitives
## 📝 Available Scripts
```bash
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run astro # Run Astro CLI commands
```
## 🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the [issues page](https://github.com/yourusername/astro-genai-startup-theme/issues).
## 📄 License
MIT License - feel free to use this template for your own projects!
Copyright (c) 2025
## 🙏 Credits
- Inspired by modern SaaS landing pages
- Components inspired by [reactbits.dev](https://reactbits.dev)
- Built with love for the GenAI community
## 💖 Support
If you find this template useful, please consider:
- ⭐ Starring the repository
- 🐦 Sharing on Twitter
- 📝 Writing a blog post about it
---
**Built with ❤️ for the GenAI community**
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

astrowind
⭕️ AstroWind: A free template using Astro v7 and Tailwind CSS v4. Astro starter theme.
Astro · 博客

astro-landing-page
An Astro + Tailwind CSS Example/Template for Landing Pages
Astro · 企业官网

Tailcast
Dark-themed website template built on Astro and Tailwind CSS
Astro · 企业官网

Positivus
A stunning and versatile Astro theme designed for digital marketing agencies.
Astro · 企业官网

qwind
⭕️ Qwind: A template to make your website using Qwik + Tailwind CSS.
Astro · 工具站

agency-landing-page-Astrojs
A simple agency landing page made with astrojs and tailwindcss
Astro · 企业官网
