Astro企业官网

astro-startup-theme — Astro 企业官网模板

作者 pfncl

面向 GenAI 与 AI 方向初创团队的多页 Astro 官网模板,包含首页各区块、深色/浅色切换与 GitHub Pages 部署配置。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-03查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

Astro 多页站点结构,含 index.astro 落地页与示例 Markdown 页面

02

预置 Hero、Features、Pricing、Testimonials、FAQ、Footer 等首页区块

03

Header 内置深色/浅色主题切换,选择写入 localStorage

04

使用 Tailwind CSS 与 CSS 变量定义配色,可在 global.css 中集中修改

05

组件基于 shadcn/ui、Radix UI 与 Lucide 图标,动画使用 Framer Motion

06

附带 GitHub Actions 工作流,可发布到 GitHub Pages

模板详细介绍

这是一个用 Astro 构建的初创公司多页官网模板,仓库描述为“Quick multipage site for a startup built with Astro”,README 中定位为面向 GenAI 与 AI 方向初创团队的落地页主题。页面由 Astro 页面与 React 组件混合组成:src/pages 下提供 index.astro 主落地页与一个示例 Markdown 页面,src/layouts/main.astro 提供带页头页脚的主布局。

首页内容以预置区块拼装:Hero(含动画渐变与数据统计)、Features 功能卡片网格、Pricing 价格对比卡(突出推荐方案)、Testimonials 客户评价、FAQ 手风琴、Footer(含链接与 Newsletter 订阅),以及 Header 中的主题切换按钮。主题切换通过 localStorage 保存用户选择。样式基于 Tailwind CSS 与 CSS 变量,颜色可在 src/styles/global.css 中调整;组件层使用 shadcn/ui 与 Radix UI 原语,图标来自 Lucide,动画使用 Framer Motion。

仓库包含 .github/workflows/deploy.yml,用于把构建产物发布到 GitHub Pages,需要在 astro.config.js 中填写 site 与 base。README 的 TODO.md 被标注为开发进度跟踪文件,说明模板仍在演进中;除首页与示例 Markdown 页外,没有更多页面级内容的说明。演示站点由第三方账号托管,与仓库归属不同。

Astro企业官网

适合你的项目吗?

适用场景

  • 为 AI / GenAI 初创产品搭建介绍型官网首页
  • 需要深色与浅色两种外观的 SaaS 落地页
  • 用预置区块快速拼出功能、价格、评价与常见问题栏目
  • 通过 GitHub Pages 托管静态站点并自动部署

适合人群

  • AI、GenAI 或开发者工具方向的初创团队
  • 需要多页静态官网而非单页模板的项目
  • 接受 Astro 加 React 组件混合开发方式的前端开发者
  • 计划使用 GitHub Pages 作为托管环境的团队

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    克隆仓库后执行 npm install 安装依赖,npm run dev 启动开发服务器

  2. 2

    在 astro.config.js 中填写 site 与 base,以匹配自己的 GitHub Pages 地址与仓库名

  3. 3

    文案与品牌信息分散在 src/components 下的 Hero、Features、Pricing、Testimonials、FAQ、Header、Footer 等文件中,需逐处替换

  4. 4

    配色在 src/styles/global.css 的 CSS 变量中调整,不要直接改组件内联颜色

  5. 5

    演示图片、字体与图标等第三方素材需按各自许可单独核对,MIT 许可仅覆盖代码

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 80 / 100
技术栈
Astro
网站类型
企业官网
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2025-12-08
截图检查日期
2026-10-03

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-04

查看当时使用的来源资料

SHA-256: b05f6a7d15b4709fe21d8ffa1322a27cbc62a57e3d29ae1fca98f6bcfac0333a

2026-10-03T13:51:55.348Z

来源文件 / 仓库
# 🚀 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.

![GenAI Theme](https://img.shields.io/badge/Astro-5.16-blueviolet) ![License](https://img.shields.io/badge/license-MIT-green) ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue)

<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**
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。