使用 Astro 静态站点生成器与 TailwindCSS 构建,组件按区块拆分
energy-template — Astro 企业官网模板
作者 vbartalis
基于 Astro 与 TailwindCSS 的绿色能源企业官网模板,提供首页各区块组件与明暗主题切换,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
首页包含 hero、服务、创新、客户评价、环境影响、精选项目与行动号召等区块
各区块提供 data.ts 数据文件,便于集中替换文案与条目
内置明暗主题切换,并提供联系与订阅表单界面
仓库采用 MIT 许可,附带 LICENSE 文件
模板详细介绍
这是一个面向绿色能源企业的企业官网模板,使用 Astro 作为静态站点生成器,配合 TailwindCSS 进行样式开发,并以 TypeScript 编写。仓库包含完整的首页结构,按区块拆分为 hero、services、innovations、testimonials、environment、featured、cta 等目录,每个区块内提供 data.ts 数据文件,便于替换服务项目、公司信息、客户评价与项目案例。布局层包含 Navbar、Footer 与 Layout 组件,页面入口为 src/pages/index.astro。模板内置明暗主题切换,并提供联系表单与订阅表单的静态界面。
使用方式上,README 给出两种开发路径:通过 VS Code Dev Container 克隆仓库并自动安装依赖,或在本地安装 Node.js 20.11.0 及以上版本后执行 npm install 与 npm run dev,开发服务器默认运行在 4321 端口。构建与预览分别使用 npm run build 和 npm run preview。
限制方面,模板当前只包含一个首页页面,没有列出其他路由或内容集合;联系表单与订阅表单在仓库中仅作为界面组件存在,README 未说明其后端提交或第三方服务对接方式。演示图片、字体、图标等第三方素材的许可需单独核对,不能仅凭代码的 MIT 许可判断。
适合你的项目吗?
适用场景
- 为绿色能源或可再生能源公司搭建展示型官网首页
- 在 Astro 项目中参考按区块组织组件与数据文件的写法
- 需要明暗主题切换与响应式布局的企业站点起步模板
- 替换现有区块数据以快速生成服务、案例与评价内容
适合人群
- 熟悉 Astro 与 TailwindCSS 的前端开发者
- 需要绿色能源行业官网起点的团队
- 希望以数据文件驱动首页区块内容的项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
本地开发需 Node.js 20.11.0 或更高版本,并安装 npm 或 yarn
- 2
克隆仓库后执行 npm install,再用 npm run dev 启动开发服务器,默认地址为 http://localhost:4321
- 3
可使用 VS Code Dev Container 克隆仓库到容器卷中,自动完成依赖安装
- 4
生产构建使用 npm run build,预览构建结果使用 npm run preview
- 5
替换演示图片、字体与图标前,需分别核对其许可条款
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/vbartalis/energy-template/blob/master/LICENSEhttps://github.com/vbartalis/energy-template/blob/master/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-04。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- Astro Themes
- 资料与维护参考分
- 资料较完整 · 87 / 100
- 技术栈
- Astro
- 网站类型
- 企业官网
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-10-21
- 截图检查日期
- 2026-10-04
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: 61705a0cdd96be6f94b6d506db7ee6729c8d7492cc01f14cb8a5754593c51990
2026-10-04T17:15:12.747Z
来源文件 / 仓库# 🌱 Green Energy Astro Template A modern, responsive website template for green energy companies built with Astro and TailwindCSS. This template provides a complete solution for renewable energy businesses to showcase their services, innovations, and environmental impact. ## 🚀 Demo **[🔗 View Live Demo](https://energy-template.vbartalis.dev/)** - **[Mirror](https://vbartalis.github.io/energy-template/)** **[🎨 Get Template on Astro](https://astro.build/themes/details/energy-company-template/)** [](https://energy-template.vbartalis.dev/) [](https://astro.build/themes/details/energy-company-template/) ## 🖼️ Screenshots ### Light Theme  ### Dark Theme  ## ✨ Features - **🎨 Modern Design**: Clean, professional design optimized for green energy companies - **📱 Fully Responsive**: Mobile-first approach ensuring perfect display on all devices - **⚡ Lightning Fast**: Built with Astro for optimal performance and SEO - **🎯 Conversion Focused**: Strategic call-to-action placements throughout the site - **♿ Accessible**: Following web accessibility best practices - **🌙 Theme Support**: Built-in theme switching capabilities - **📧 Contact Forms**: Ready-to-use contact and newsletter signup forms - **🔧 Easy Customization**: Well-structured components for easy modification ## 📋 Sections Included - **Hero Section**: Eye-catching landing area with compelling headline - **Key Services**: Overview of main green energy services - **Latest Innovations**: Showcase of cutting-edge technology and solutions - **Customer Testimonials**: Social proof from satisfied clients - **Environmental Impact**: Data-driven impact visualization - **Featured Projects**: Case studies and success stories - **Get Involved**: Call-to-action section for user engagement ## 🛠️ Built With - **[Astro](https://astro.build/)** - Static site generator - **[TailwindCSS](https://tailwindcss.com/)** - Utility-first CSS framework - **[TypeScript](https://www.typescriptlang.org/)** - Type safety and better development experience ## 🚀 Quick Start You can get started with this template in two ways: ### Option 1: Using Dev Container (Recommended) For the best development experience, especially on Windows, clone directly into a dev container: 1. **Open VS Code** 2. **Use Command Palette** (`Ctrl+Shift+P` / `Cmd+Shift+P`) 3. **Run**: "Dev Containers: Clone Repository in Container Volume..." 4. **Enter repository URL**: `https://github.com/vbartalis/energy-template.git` 5. **Wait for container setup** (automatic dependency installation) 6. **Start development** ```bash npm run dev ``` This approach ensures: - ✅ Optimal file system performance - ✅ Fast live reloading on all platforms - ✅ Pre-configured development environment - ✅ No local Node.js installation required ### Option 2: Local Development #### Prerequisites - Node.js 20.11.0 or higher - npm or yarn package manager **💡 Tip**: This project uses [Volta](https://volta.sh/) for Node.js version management. If you have Volta installed, it will automatically use the correct Node.js version (20.11.0) when you enter the project directory. #### Installation 1. **Clone the repository** ```bash git clone https://github.com/vbartalis/energy-template.git cd energy-template ``` 2. **Install dependencies** ```bash npm install ``` *Note: If using Volta, the correct Node.js version will be automatically selected.* 3. **Start development server** ```bash npm run dev ``` 4. **Open your browser** Navigate to `http://localhost:4321` to see your site ### Build for Production ```bash npm run build ``` ### Preview Production Build ```bash npm run preview ``` ## 📁 Project Structure ``` / ├── public/ │ └── style/ │ └── custom.css ├── src/ │ ├── components/ │ │ ├── blocks/ │ │ ├── sections/ │ │ │ ├── cta/ │ │ │ ├── environment/ │ │ │ ├── featured/ │ │ │ ├── hero/ │ │ │ ├── innovations/ │ │ │ ├── services/ │ │ │ └── testimonials/ │ │ └── shared/ │ ├── layouts/ │ │ ├── Footer.astro │ │ ├── Layout.astro │ │ └── Navbar.astro │ └── pages/ │ └── index.astro ├── astro.config.mjs ├── tailwind.config.mjs └── package.json ``` ## 🎨 Customization ### Colors and Styling Modify the TailwindCSS configuration in `tailwind.config.mjs` to match your brand colors. ### Content Update the data files in each section folder (`src/components/sections/*/data.ts`) to customize: - Service offerings - Company information - Testimonials - Project showcases ### Images Replace images in the `assets` folders within each section to match your brand and projects. ## 📝 Available Scripts | Command | Description | |---------|-------------| | `npm run dev` | Start development server with host binding | | `npm run start` | Start development server | | `npm run build` | Build for production with type checking | | `npm run preview` | Preview production build | | `npm run astro` | Run Astro CLI commands | ## 🤝 Contributing Contributions are welcome! Feel free to: 1. Fork the repository 2. Create your feature branch (`git checkout -b feature/AmazingFeature`) 3. Commit your changes (`git commit -m 'Add some AmazingFeature'`) 4. Push to the branch (`git push origin feature/AmazingFeature`) 5. Open a Pull Request ## 📄 License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. ## 🙏 Acknowledgments - Thanks to the Astro team for creating an amazing static site generator - TailwindCSS for the utility-first CSS framework - The open-source community for inspiration and best practices ## 📧 Contact **Vilmos Bartalis** - [@vbartalis](https://github.com/vbartalis) Project Link: [https://github.com/vbartalis/energy-template](https://github.com/vbartalis/energy-template) --- ⭐ If you found this template helpful, please consider giving it a star!
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

astrowind
⭕️ AstroWind: A free template using Astro v7 and Tailwind CSS v4. Astro starter theme.
Astro · 博客

astro-landing-page
An Astro + Tailwind CSS Example/Template for Landing Pages
Astro · 企业官网

Tailcast
Dark-themed website template built on Astro and Tailwind CSS
Astro · 企业官网

Positivus
A stunning and versatile Astro theme designed for digital marketing agencies.
Astro · 企业官网

qwind
⭕️ Qwind: A template to make your website using Qwik + Tailwind CSS.
Astro · 工具站

agency-landing-page-Astrojs
A simple agency landing page made with astrojs and tailwindcss
Astro · 企业官网
