Astro企业官网

small-business-template — Astro 企业官网模板

作者 SeekerErebus

基于 Astro 与 Tailwind CSS 的单页餐厅网站模板,包含菜单、营业时间与位置、联系/预订表单等区块,使用原生 JavaScript 实现导航切换与滚动动画。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

单页结构,包含 Hero、菜单、关于、营业时间与位置、联系/预订、页脚等区块

02

菜单按 Starters、Mains、Desserts 分类并标注价格

03

使用 Astro 与 Tailwind CSS,交互仅用原生 JavaScript,未引入前端框架

04

响应式布局,含移动端汉堡菜单与自适应网格

05

滚动显现动画基于 Intersection Observer,粘性导航随滚动改变背景模糊与阴影

06

包含 SEO 相关设置:meta 标签、Open Graph、canonical URL 与语义化 HTML

模板详细介绍

该模板是一个单页餐厅网站模板,使用 Astro 与 Tailwind CSS 构建,面向需要快速上线在线展示的小型商家。README 说明页面由 Hero、Menu、About、Hours & Location、Contact/Reservations 和 Footer 等区块组成,菜单按 Starters、Mains、Desserts 分类并带价格,另含客户或媒体评价的引言区块。

样式方面采用暖石色与琥珀色调色板,通过 Google Fonts 引入 Inter(无衬线)与 Playfair Display(衬线)字体,颜色可在 src/styles/global.css 的 @theme 块中修改。交互使用原生 JavaScript,实现移动端汉堡菜单、粘性导航的滚动感知背景模糊与阴影过渡,以及基于 Intersection Observer 的滚动淡入与滑动效果。

表单与地图需要自行接入:预订表单使用 Formspree,需把表单 action 中的 YOUR_FORM_ID 替换为自己的端点;Google Maps 为占位,需取消注释 iframe 并填入嵌入 URL。图片同样为占位容器,需替换为实际照片。README 未提供关于后端、数据库、多语言或 CMS 的说明。

Astro企业官网

适合你的项目吗?

适用场景

  • 为餐厅或小型餐饮店搭建单页展示网站
  • 作为 Astro + Tailwind CSS 项目的起步模板进行二次开发
  • 需要移动端适配与滚动动画的静态营销页面
  • 用于演示 Formspree 表单与 Google Maps 嵌入的接入位置

适合人群

  • 熟悉 Astro 或愿意按 README 步骤运行 npm 命令的开发者
  • 需要快速搭建单页餐厅网站并自行替换文案与图片的团队
  • 希望使用静态输出并部署到 Vercel、Netlify 或 Cloudflare Pages 的项目

上手与定制指南

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

  1. 1

    克隆仓库后执行 npm install,再运行 npm run dev,开发服务器位于 localhost:4321

  2. 2

    构建命令为 npm run build,产物输出到 ./dist/,可用 npm run preview 本地预览

  3. 3

    在 src/pages/index.astro 中更新商家名称、地址、电话与营业时间,并编辑菜单条目

  4. 4

    将表单 action 中的 YOUR_FORM_ID 替换为 Formspree 端点;在 Hours & Location 区块取消注释 iframe 并填入 Google Maps 嵌入 URL

  5. 5

    颜色在 src/styles/global.css 的 @theme 块中调整,图片占位容器需替换为实际照片

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • README 提及 Formspree 表单服务;真实提交需配置服务端点,其使用额度与费用需单独核对。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 预订表单集成 Formspree,需自行注册并替换表单 action 中的 YOUR_FORM_ID 为自己的端点,属于外部服务依赖。
  • 联系表单需将 YOUR_FORM_ID 替换为自己的 Formspree 端点,使用该表单功能需要外部 Formspree 账户。
  • Google Maps 仅为占位,需取消注释 iframe 并填入自己的嵌入 URL,使用地图功能需自行获取 Google Maps 嵌入代码。
  • 字体通过 Google Fonts 引入 Inter 与 Playfair Display,页面加载依赖 Google Fonts 外部服务。
  • 技术栈包含 Google Fonts(Inter + Playfair Display),使用该字体方案需依赖 Google Fonts 外部服务。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

- **Reservation form** -- integrated with Formspree (swap in your form ID)

README 原文

4. **Contact form** -- Replace `YOUR_FORM_ID` in the form action with your [Formspree](https://formspree.io) endpoint

README 原文

5. **Google Maps** -- Uncomment the iframe in the Hours & Location section and add your embed URL

README 原文

- **Custom typography** -- Inter (sans) + Playfair Display (serif) via Google Fonts

README 原文

- Google Fonts -- Inter + Playfair Display

README 原文
https://github.com/SeekerErebus/small-business-template/blob/main/LICENSEhttps://github.com/SeekerErebus/small-business-template/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2026-02-16
截图检查日期
2026-10-14

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15

查看当时使用的来源资料

SHA-256: 5fec8587375ba7abcbce7c3f0f1ee878532c267a933483052ebe15159c635567

2026-10-14T19:28:19.421Z

来源文件 / 仓库
# The Craft Table -- Small Business Website Template

A modern, single-page restaurant website template built with Astro and Tailwind CSS. Designed for small businesses that need a polished online presence fast.

![Screenshot](screenshot.png)

[![Astro](https://img.shields.io/badge/Astro-5.x-BC52EE?logo=astro&logoColor=white)](https://astro.build)
[![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-4.x-06B6D4?logo=tailwindcss&logoColor=white)](https://tailwindcss.com)
[![Responsive](https://img.shields.io/badge/Responsive-Mobile_First-10B981)](#)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

## Features

- **Single-page layout** -- Hero, Menu, About, Hours & Location, Contact/Reservations, Footer
- **Warm stone & amber color palette** -- premium feel out of the box
- **Fully responsive** -- mobile hamburger menu, adaptive grid layouts, touch-friendly
- **Scroll-reveal animations** -- Intersection Observer-powered fade and slide effects
- **Sticky navigation** -- scroll-aware with backdrop blur and shadow transitions
- **Menu section** with categorized items (Starters, Mains, Desserts) and pricing
- **Reservation form** -- integrated with Formspree (swap in your form ID)
- **Google Maps placeholder** -- ready for your embed code
- **Image placeholders** -- styled containers ready for real photography
- **Testimonial banner** -- quote section for press or customer reviews
- **SEO-ready** -- meta tags, Open Graph, canonical URL, semantic HTML
- **Custom typography** -- Inter (sans) + Playfair Display (serif) via Google Fonts
- **Accessibility** -- focus-visible outlines, semantic structure, ARIA labels
- **Zero JavaScript frameworks** -- vanilla JS for nav toggle and scroll effects only
- **Fast builds** -- static output, deploys anywhere (Vercel, Netlify, Cloudflare Pages)

## Quick Start

```bash
# Clone the repository
git clone https://github.com/SeekerErebus/small-business-template.git
cd small-business-template

# Install dependencies
npm install

# Start the dev server
npm run dev
```

The site will be running at `http://localhost:4321`.

## Commands

| Command           | Action                                      |
| :---------------- | :------------------------------------------ |
| `npm install`     | Install dependencies                        |
| `npm run dev`     | Start dev server at `localhost:4321`         |
| `npm run build`   | Build production site to `./dist/`          |
| `npm run preview` | Preview the production build locally        |

## Customization

1. **Business info** -- Update name, address, phone, and hours in `src/pages/index.astro`
2. **Menu items** -- Edit the Starters, Mains, and Desserts sections with your offerings
3. **Colors** -- Modify the `@theme` block in `src/styles/global.css` to change the palette
4. **Contact form** -- Replace `YOUR_FORM_ID` in the form action with your [Formspree](https://formspree.io) endpoint
5. **Google Maps** -- Uncomment the iframe in the Hours & Location section and add your embed URL
6. **Images** -- Replace the placeholder containers with your own photography

## Tech Stack

- [Astro 5](https://astro.build) -- static site generator
- [Tailwind CSS 4](https://tailwindcss.com) -- utility-first CSS via `@tailwindcss/vite`
- Vanilla JavaScript -- no framework overhead
- Google Fonts -- Inter + Playfair Display

## Live Demo

[View Live Demo](#) <!-- Replace with deployed URL -->

## License

MIT
反馈内容错误

看看同类模板

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