Astro企业官网

astro-landing-page — Astro 企业官网模板

作者 mhyfritz

基于 Astro 与 Tailwind CSS 的落地页示例模板,内置主题变量、深色模式、响应式布局、无障碍与 SEO 相关配置,采用 MIT 许可。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

使用 Astro 与 Tailwind CSS 构建的落地页示例

02

主题通过 src/styles/theme.css 的 CSS 变量定义,并映射到 tailwind.config.cjs

03

内置深色模式与响应式布局、图片、排版处理

04

包含 Open Graph 标签,便于社交平台分享

05

提供 Prettier 配置,覆盖 Astro 与 Tailwind 插件

06

MIT 许可,允许免费使用、修改、商用与分发该版本代码

模板详细介绍

该模板是一个面向落地页场景的 Astro + Tailwind CSS 示例项目,仓库描述为“An Astro + Tailwind CSS Example/Template for Landing Pages”,演示站为 astro-moon-landing.netlify.app。它适合作为搭建单页产品介绍、活动页或企业官网首页的起点,而不是完整的多页站点方案。

样式通过 Tailwind CSS 完成,主题在 src/styles/theme.css 中以 CSS 变量定义,并映射到 tailwind.config.cjs 的 Tailwind 类,因此更换配色或主题时主要改这两处。模板自带深色模式、响应式布局(覆盖布局、图片与排版),并包含 Open Graph 标签用于社交分享。README 称其无障碍与 SEO 表现按 web.dev/measure 衡量,但未给出具体分数。

项目使用 Prettier,并配置了 Astro 与 Tailwind 对应的插件。命令包括 npm run dev(本地开发服务器,默认 localhost:4321)、npm run build(输出到 ./dist/)、npm run preview(本地预览构建结果)、npm run format 与 npm run clean。README 的 Credits 说明宇航员图片来自已不可访问的 withastro/astro-og-image 仓库,月球图片来自 Unsplash 的 NASA 账号,其余展示数据与文案取自 Astro 官方来源,使用前需自行核对素材许可。

Astro企业官网

适合你的项目吗?

适用场景

  • 搭建单页产品介绍或活动落地页
  • 作为企业官网首页的起始模板
  • 需要深色模式与响应式布局的静态页面
  • 希望用 CSS 变量集中管理主题配色的项目

适合人群

  • 使用 Astro 与 Tailwind CSS 的前端开发者
  • 需要快速起步的单页站点项目
  • 接受 MIT 许可条款并会自行核对第三方素材的使用者

上手与定制指南

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

  1. 1

    运行 npm install 安装依赖,npm run dev 启动本地开发服务器(默认 localhost:4321)

  2. 2

    npm run build 生成生产站点到 ./dist/,npm run preview 可在部署前本地预览

  3. 3

    主题配色在 src/styles/theme.css 的 CSS 变量中修改,并对应调整 tailwind.config.cjs

  4. 4

    宇航员与月球等演示图片来自第三方来源,使用前需按各自许可核对

  5. 5

    分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 宇航员演示图片来自第三方仓库 withastro/astro-og-image,且该仓库已不可访问,图片许可无法从该来源核实,商用或再分发前需自行确认授权。
  • 月球演示图片来自 Unsplash 的 NASA 账号,适用 Unsplash 许可而非本项目 MIT 许可,使用前需遵守其署名等条件。
  • 展示数据与文案取自 Astro 官方来源,可能受其各自许可约束,替换为自有内容前不应直接沿用。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

astronaut image - source: https://github.com/withastro/astro-og-image; note: this repo is not available anymore

README 原文

moon image - source: https://unsplash.com/@nasa

README 原文

other than that, a lot of material (showcase data, copy) was taken from official Astro sources, in particular https://astro.build/blog/introducing-astro/ and https://github.com/withastro/astro.build

README 原文
https://github.com/mhyfritz/astro-landing-page/blob/main/LICENSEhttps://github.com/mhyfritz/astro-landing-page/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2024-11-24
截图检查日期
2026-10-01

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: bed227095de0dccbd4698914622f008507a24a079e0e7e9c76c8a7fc3f41133d

2026-10-01T01:58:04.240Z

来源文件 / 仓库
# Astro Landing Page <picture><source media="(prefers-color-scheme: dark)" srcset="https://astro.build/assets/press/astro-icon-light.png"><source media="(prefers-color-scheme: light)" srcset="https://astro.build/assets/press/astro-icon-dark.png"><img align="right" valign="center" height="79" width="63" src="https://astro.build/assets/press/astro-icon-dark.png" alt="Astro logo" /></picture>

> An Astro + Tailwind CSS example/template for landing pages.

<div align="center">

[![Built with Astro](https://astro.badg.es/v2/built-with-astro/small.svg)](https://astro.build)

</div>

![Screenshots of Astro Landing Page](screenshots.jpg)

## Features

- 💨 Tailwind CSS for styling
- 🎨 Themeable
  - CSS variables are defined in `src/styles/theme.css` and mapped to Tailwind classes (`tailwind.config.cjs`)
- 🌙 Dark mode
- 📱 Responsive (layout, images, typography)
- ♿ Accessible (as measured by https://web.dev/measure/)
- 🔎 SEO-enabled (as measured by https://web.dev/measure/)
- 🔗 Open Graph tags for social media sharing
- 💅 [Prettier](https://prettier.io/) setup for both [Astro](https://github.com/withastro/prettier-plugin-astro) and [Tailwind](https://github.com/tailwindlabs/prettier-plugin-tailwindcss)

## Commands

| Command                | Action                                            |
| :--------------------- | :------------------------------------------------ |
| `npm install`          | Install dependencies                              |
| `npm run dev`          | Start local dev server at `localhost:4321`        |
| `npm run build`        | Build your production site to `./dist/`           |
| `npm run preview`      | Preview your build locally, before deploying      |
| `npm run astro ...`    | Run CLI commands like `astro add`, `astro check`  |
| `npm run astro --help` | Get help using the Astro CLI                      |
| `npm run format`       | Format code with [Prettier](https://prettier.io/) |
| `npm run clean`        | Remove `node_modules` and build output            |

## Credits

- astronaut image
  - source: https://github.com/withastro/astro-og-image; note: this repo is not available anymore
- moon image
  - source: https://unsplash.com/@nasa
- other than that, a lot of material (showcase data, copy) was taken from official Astro sources, in particular https://astro.build/blog/introducing-astro/ and https://github.com/withastro/astro.build
反馈内容错误

看看同类模板

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