Astro企业官网

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

作者 formgong

Shoal 是一款面向房产经纪人的免费 Astro 企业官网模板,包含全屏照片首屏、服务图块、区域指南和可真实发送的联系表单。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

全屏照片首屏、六个服务照片图块、经纪人区块、区域指南与短笔记组成首页结构

02

联系表单真实发送:仅在后端返回 success: true 时显示感谢,出错或断网显示错误,无 JavaScript 时仍可提交

03

品牌信息集中在 src/config.ts 一个文件,姓名、电话、办公室、服务图块、区域指南、笔记和表单密钥都在其中

04

滚动时标题与说明文字一次性上浮、页头下滚隐藏上滚变白、服务图块悬停抬升标题并加深,未使用动画库

05

使用原生 dialog 实现表单和菜单,保留可见焦点,并尊重 prefers-reduced-motion

模板详细介绍

Shoal 是 formgong 发布的免费 Astro 主题,定位为房产经纪人官网。首页由全屏照片首屏、六个服务照片图块、经纪人介绍、区域指南和短笔记组成,联系表单通过 Formgong 后端真实发送,只有后端返回 success: true 时才显示感谢信息,出错或断网会显示错误;无 JavaScript 时仍可作为普通 HTML 表单提交。表单可从页头、浮动“Let's Connect”按钮和各个行动号召处打开。

内容集中在 src/config.ts 一个文件里,包括姓名、电话、办公室、服务图块、岛屿指南、笔记和表单密钥;较长的页面放在 src/pages/about.astro、buying.astro、selling.astro。public/img/ 存放照片,可替换为自己的房源和区域照片。构建产物是 dist/ 下的静态站点,可部署到任意静态托管;部署前需在 src/config.ts 设置 url,使 canonical 链接、站点地图和表单跳转指向自己的域名。

模板自带示例内容:虚构经纪人 Dana Whitlock、虚构的 Kestrel Sound 岛屿,电话使用 555-01xx 虚构号段,邮箱和链接均用 example.com。照片来自 Unsplash,采用 Unsplash 许可,与代码的 MIT 许可不同,不能单独转售;代码为 MIT,可自用或为客户建站,页脚署名可选。README 提到 Astro 7,但依赖清单未核对,此处不展开具体版本。

Astro企业官网

适合你的项目吗?

适用场景

  • 房产经纪人搭建个人品牌官网,展示服务、区域指南和联系方式
  • 为小型房产中介制作静态企业站点,并接入可真实发送的表单后端
  • 需要无构建步骤时,下载 release 中的 shoal-html.zip,替换密钥和域名后上传到任意静态空间
  • 通过 Cloudflare 或 Vercel 部署按钮快速复制仓库并完成首次部署

适合人群

  • 房产经纪人或小型房产团队
  • 希望用 Astro 和纯 CSS 构建静态企业官网的开发者
  • 需要表单真实发送、且无 JavaScript 也能提交的站点
  • 接受使用示例内容并自行替换照片与文案的使用者

上手与定制指南

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

  1. 1

    在 formgong.com/new 创建免费表单并获取 fk_ 开头的访问密钥,写入 .env 的 PUBLIC_FORMGONG_ACCESS_KEY 或 src/config.ts 的 formgong.accessKey

  2. 2

    部署前在 src/config.ts 设置 url 为自有域名,确保 canonical 链接、站点地图和表单跳转正确

  3. 3

    在 Vercel 或 Netlify 上将 PUBLIC_FORMGONG_ACCESS_KEY 设为构建环境变量;Cloudflare 部署按钮则将其存为 Worker secret

  4. 4

    替换 public/img/ 中的照片时保持文件名,或在 src/config.ts 中同步修改引用

  5. 5

    照片采用 Unsplash 许可,与代码的 MIT 许可不同,不能单独转售,需按各自许可核对使用

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 模板中的照片采用 Unsplash 许可,与代码的 MIT 许可不同:可免费使用,但不能单独转售这些照片,需替换为自己的房源和区域照片。
  • 联系表单依赖 Formgong 外部服务,需在 formgong.com/new 创建免费表单并获取 fk_ 开头的访问密钥,否则表单无法真实发送。
  • 表单访问密钥按设计是公开的,仅允许访客向你的表单发送消息,不应将其视为机密凭据。
  • 在 Vercel 或 Netlify 部署时,需将 PUBLIC_FORMGONG_ACCESS_KEY 设为构建环境变量,因为该密钥在构建时读取。
  • 使用 Cloudflare 部署按钮时,密钥改存为 Worker secret,由 worker.js 在每次页面响应时注入表单。
  • 部署前需先在 src/config.ts 设置 url 为自有域名,否则 canonical 链接、站点地图和表单跳转不会指向你的域名。
  • 页脚的“Theme Shoal by Formgong”署名是可选的,并非强制保留。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

The photographs in `public/img/` are from [Unsplash](https://unsplash.com) and are under the [Unsplash License](https://unsplash.com/license), **not** the MIT licence of the code: free to use, but not to sell on their own.

README 原文

Create a free form at https://formgong.com/new and copy its access key (`fk_…`).

README 原文

The key is public by design: it only lets visitors send messages to your form.

README 原文

On Vercel or Netlify, set `PUBLIC_FORMGONG_ACCESS_KEY` in the project's build environment variables: the key is read at build time.

README 原文

The Deploy to Cloudflare button stores it as a Worker secret instead, and `worker.js` puts it into the form as each page is served.

README 原文

Set `url` in `src/config.ts` first so canonical links, the sitemap and the form redirect point at your domain.

README 原文

The "Theme Shoal by Formgong" credit in the footer is optional.

README 原文
https://github.com/formgong/shoal-astro-theme/blob/main/LICENSEhttps://github.com/formgong/shoal-astro-theme/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 157e504158e066b9fed04da385887c7a7c66a504af978b9503d451e3166fd205

2026-10-09T08:28:04.085Z

来源文件 / 仓库
# Shoal

A free Astro theme for real estate agents: a full-screen photo hero, six photo tiles for your services, an agent section, area guides, short notes and a contact form that really sends.

**Live demo:** https://shoal.formgong.com · **No build step?** Download `shoal-html.zip` from the [latest release](https://github.com/formgong/shoal-astro-theme/releases/latest): plain HTML files, replace `fk_your_access_key` and `https://example.com` with your own and upload them anywhere.

[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/formgong/shoal-astro-theme) [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fformgong%2Fshoal-astro-theme&project-name=shoal&repository-name=shoal&env=PUBLIC_FORMGONG_ACCESS_KEY&envDescription=Your%20Formgong%20access%20key%20%28fk_...%29.%20Create%20a%20free%20form%20to%20get%20one.&envLink=https%3A%2F%2Fformgong.com%2Fnew%3Fname%3Dshoal)

Each button copies the theme to your GitHub, builds it and asks for one value: your Formgong access key (`fk_…`), free at https://formgong.com/new. The form works from the first deploy. Then set `url` in `src/config.ts` to your domain.

The demo agent is **Dana Whitlock**, a fictional realtor on the fictional Kestrel Sound islands. Everything on the site is sample content: phone numbers use the 555-01xx range reserved for fiction, and every email and link uses `example.com`.

- **One file to rebrand.** Name, phone, office, service tiles, island guides, notes and the form key live in `src/config.ts`.
- **Quiet motion.** Headings and captions rise into view once as you scroll, the header hides on the way down and comes back white on the way up, and the service tiles lift their title and darken on hover. No animation library.
- **A contact form that never fakes success.** It shows "Thank you" only when the form backend answers `success: true`. Errors and lost connections show an error. Without JavaScript it still works as a plain HTML form. It opens from the header, the floating "Let's Connect" button and every call to action.
- **Fast and accessible.** Static pages, two self-hosted fonts (Newsreader and Metropolis), one small script. Native `<dialog>` for the form and the menu, visible focus, `prefers-reduced-motion` respected.

Built with Astro 7 and plain CSS.

## Quick start

```bash
npm create astro@latest -- --template formgong/shoal-astro-theme
cd shoal
cp .env.example .env   # then put your access key in .env
npm run dev
```

## Set up the form

1. Create a free form at https://formgong.com/new and copy its access key (`fk_…`).
2. Put it in `.env` as `PUBLIC_FORMGONG_ACCESS_KEY=fk_…`, or in `src/config.ts` under `formgong.accessKey`.
3. Send one test message from your deployed site. It arrives in your Formgong inbox, on Telegram at once if you connect it, and by email.

The key is public by design: it only lets visitors send messages to your form. Spam is filtered with a hidden honeypot field.

## Edit the content

- `src/config.ts`: everything on the home page, the island guides (`areas`) and the notes (`notes`).
- `public/img/`: the photographs. Keep the file names or change them in `src/config.ts`.
- `src/pages/about.astro`, `buying.astro`, `selling.astro`: the longer pages.

## Deploy

`npm run build` produces a static site in `dist/` that any static host can serve. Set `url` in `src/config.ts` first so canonical links, the sitemap and the form redirect point at your domain. On Vercel or Netlify, set `PUBLIC_FORMGONG_ACCESS_KEY` in the project's build environment variables: the key is read at build time. The Deploy to Cloudflare button stores it as a Worker secret instead, and `worker.js` puts it into the form as each page is served.

## Photos

The photographs in `public/img/` are from [Unsplash](https://unsplash.com) and are under the [Unsplash License](https://unsplash.com/license), **not** the MIT licence of the code: free to use, but not to sell on their own. Replace them with photos of your own listings and area. Thank you to the photographers:

- `hero.webp`: [Daniel R.](https://unsplash.com/photos/boats-speeding-through-a-blue-ocean-with-islands-ZdbrRlQqPWc)
- `tile-kitchen.webp`: [Jennie Wilson](https://unsplash.com/photos/a-kitchen-with-a-center-island-and-two-stools-ItvZqtoDjgc)
- `tile-living.webp`: [Mahdis Mousavi](https://unsplash.com/photos/view-of-a-living-room-and-fireplace-inOX4reNle8)
- `tile-aerial.webp`: [Keymini](https://unsplash.com/photos/a-house-nestled-among-trees-beside-a-vibrant-blue-lake-SifYeCZHacM)
- `tile-porch.webp`: [Brian Lundquist](https://unsplash.com/photos/2-white-plastic-armchairs-on-brown-sand-during-daytime-eOZ39hS-wYk)
- `tile-dining.webp`: [Cindy Fogg](https://unsplash.com/photos/a-dining-room-with-a-table-and-chairs-aq83Sjs8snA)
- `tile-entry.webp`: [Clay Banks](https://unsplash.com/photos/wooden-bench-with-pillows-below-forest-artwork-ka3Gq_CYz-0)
- `area-harbor.webp`: [XIBEI JIA](https://unsplash.com/photos/white-and-blue-boat-on-sea-under-gray-sky-zZZOAreIhmw)
- `area-ferry.webp`: [Uta Scholl](https://unsplash.com/photos/green-and-white-ship-on-sea-under-gray-sky-during-daytime-fNkQB4MgHlI)
- `area-lighthouse.webp`: [Valentin](https://unsplash.com/photos/a-lighthouse-stands-proudly-overlooking-the-ocean-SVjNWsDKEBk)
- `area-meadow.webp`: [Bernd Dittrich](https://unsplash.com/photos/small-pink-flowers-bloom-on-a-cliff-overlooking-the-ocean-tyu80YcNVNY)
- `agent.webp`: [Jakub Żerdzicki](https://unsplash.com/photos/a-hand-holding-a-key-to-a-door-3HfGnyPfWqQ)
- `cta.webp`: [Roger Starnes Sr](https://unsplash.com/photos/white-house-with-front-porch-goydGbh4SgU)
- `blog-ferry.webp`: [Gantavya Bhatt](https://unsplash.com/photos/a-large-boat-traveling-across-a-large-body-of-water-ip-hoUuoihI)
- `blog-inspection.webp`: [Sasun Bughdaryan](https://unsplash.com/photos/magnifying-glass-over-a-wooden-house-model-HvmqfefQwYw)
- `blog-market.webp`: [engin akyurt](https://unsplash.com/photos/a-pile-of-red-apples-sitting-on-top-of-each-other-yiHeWtjXuas)

## License

The code is MIT. Use it for your own site or for clients. The photos are under the Unsplash License (see above). The "Theme Shoal by Formgong" credit in the footer is optional.
反馈内容错误

看看同类模板

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