Astro企业官网

servland — Astro 企业官网模板

作者 locobean

Servland 是一个基于 Astro 与 Tailwind CSS 的服务商企业落地页主题,包含联系表单、WhatsApp 入口、Cookie 同意与深色模式等模块。

看看你的网站会是什么样

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

1 个预览视图
作者提供的预览
作者提供的预览首屏预览

来自项目 README 的原始预览。

目前有 1 张原始预览,可打开完整图片查看设计细节。

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

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

值得关注的模板亮点

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

01

基于 Astro 与 Tailwind CSS 构建,页面与组件结构清晰

02

内置联系表单,支持 EmailJS 或 Nodemailer/SMTP 两种提交方式

03

包含 WhatsApp 直接对话入口与 GDPR 风格 Cookie 同意横幅

04

支持自动与手动深色模式,并带视差背景效果

05

提供 SEO 相关 meta 标签与结构化数据

06

采用 MIT 许可,允许免费使用、修改、商用与分发

模板详细介绍

Servland 是 locobean 在 GitHub 上开源的 Astro 落地页主题,面向服务提供商(service providers)的业务展示场景。页面主体位于 src/pages/index.astro,组件拆分在 src/components/ 目录,样式通过 tailwind.config.mjs 配置,适合按现有结构替换文案、图片与配色。

主题内置联系表单,提供 EmailJS 与 Nodemailer/SMTP 两种提交方式,需要在 .env 中填写对应凭据;同时包含 WhatsApp 直接对话入口、GDPR 风格的 Cookie 同意横幅、视差背景效果以及自动与手动深色模式。SEO 方面提供 meta 标签与结构化数据。

使用前需注意:表单依赖外部邮件服务,需自行注册并配置密钥;演示图片、字体、图标等第三方素材的许可需单独核对,不能仅凭代码的 MIT 许可判断。项目未提供内容管理后台,内容更新以直接编辑 Astro 文件为主。

Astro企业官网

适合你的项目吗?

适用场景

  • 为本地服务商或小型服务团队搭建业务介绍落地页
  • 需要表单收集询盘并通过邮件或 WhatsApp 接收线索的站点
  • 希望快速替换文案、配色与图片来定制品牌外观的前端项目

适合人群

  • 熟悉 Astro 与 Tailwind CSS、能直接编辑源码的开发者
  • 需要静态落地页并愿意自行配置邮件服务凭据的团队
  • 以服务介绍和线索收集为主要目标的业务站点

上手与定制指南

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

  1. 1

    克隆仓库后执行 npm install 安装依赖,并用 npm run dev 启动开发服务器(默认 4321 端口)

  2. 2

    复制 .env.example 为 .env,按所选方案填写 EmailJS 的 service/template/user 标识或 SMTP 账号、密码、收件邮箱与 SECRET_KEY

  3. 3

    使用 Gmail SMTP 时需生成应用专用密码,而非账号登录密码

  4. 4

    内容与样式分别在 src/pages/index.astro、src/components/ 与 tailwind.config.mjs 中修改

  5. 5

    替换 public/preview.png 与 public/favicon.svg 前,确认所用素材的授权许可

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 联系表单的 EmailJS 方案需要注册第三方 EmailJS 账号并获取 service/template/user 凭据,属于外部服务依赖,非纯本地功能。
  • 使用 Gmail SMTP 发送邮件时需生成应用专用密码,依赖 Google 账号与外部 SMTP 服务。
  • Nodemailer 方案需自行提供 SMTP 服务器账号与密码,表单功能依赖外部邮件服务才能实际投递。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Create an account at [EmailJS](https://www.emailjs.com/)

README 原文

For Gmail, use an [App-Specific Password](https://support.google.com/accounts/answer/185833).

README 原文

Configure SMTP settings in `.env`:

README 原文
https://github.com/locobean/servland/blob/main/LICENSEhttps://github.com/locobean/servland/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2025-01-22
截图检查日期
2026-10-02

目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: d9658a3b2e2b0d6d3ad590f67dc0a9b3b2902a8fffb9f766286318b00ccae7e8

2026-10-02T09:47:26.021Z

来源文件 / 仓库
# Servland - Business Landing Page Theme

A modern, responsive business landing page theme built with Astro and Tailwind CSS. Perfect for businesses looking for an effective and speedy online presence.

![Servland Preview](preview.png)

## 🚀 Features

- ⚡️ **Lightning Fast**: Built with Astro for optimal performance
- 🎨 **Beautiful Design**: Modern UI with Tailwind CSS
- 🌗 **Dark Mode**: Automatic and manual dark mode support
- 📱 **Fully Responsive**: Looks great on all devices
- 📧 **Contact Form**: Integrated with EmailJS or Nodemailer
- 💬 **WhatsApp Integration**: Direct messaging capability
- 🍪 **Cookie Consent**: GDPR-compliant cookie banner
- 🖼️ **Parallax Effects**: Engaging background animations
- 🔍 **SEO Ready**: Optimized meta tags and structured data
- 🛠️ **Easy to Customize**: Well-organized code structure

## 🛠️ Quick Start

1. **Clone the repository**
```bash
git clone https://github.com/locobean/servland.git
cd servland
```

2. **Install dependencies**
```bash
npm install
```

3. **Set up environment variables**
```bash
cp .env.example .env
```

4. **Start development server**
```bash
npm run dev
```

Visit `http://localhost:4321` to see your site!

## 📧 Email Configuration

### Option 1: EmailJS (Recommended for Static Sites)

1. Create an account at [EmailJS](https://www.emailjs.com/)
2. Create an email template with variables:
   - `{{name}}` - Sender's name
   - `{{email}}` - Sender's email
   - `{{tel}}` - Phone number
   - `{{message}}` - Message content
3. Add credentials to `.env`:
```env
PUBLIC_EMAILJS_SERVICE_ID=your-service-id
PUBLIC_EMAILJS_TEMPLATE_ID=your-template-id
PUBLIC_EMAILJS_USER_ID=your-public-key
```

### Option 2: Nodemailer with SMTP

1. Configure SMTP settings in `.env`:
```env
[email protected]
EMAIL_PASSWORD=your-app-specific-password
[email protected]
SECRET_KEY=your-secret-key-for-hashing
```

For Gmail, use an [App-Specific Password](https://support.google.com/accounts/answer/185833).

## 🎨 Customization

### Content
- Edit main content in `src/pages/index.astro`
- Modify components in `src/components/`
- Update styles in `tailwind.config.mjs`

### Styling
- Colors: Update `tailwind.config.mjs`
- Typography: Modify font imports in `Layout.astro`
- Components: Edit individual component files

### Images
- Replace `public/preview.png` with your site preview
- Update favicon in `public/favicon.svg`

## 📦 Building for Production

1. **Build the site**
```bash
npm run build
```

2. **Preview the build**
```bash
npm run preview
```

The built files will be in the `dist/` directory.

## 🤝 Contributing

Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md).

1. Fork the repository
2. Create your feature branch
3. Commit your changes
4. Push to the branch
5. Open a Pull Request

## 📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## 💖 Support

- Star this repository
- Report issues
- Follow for updates

---

Made with ❤️ by [locobean](https://github.com/locobean)
反馈内容错误

看看同类模板

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