HTML企业官网

Villas-Template — HTML 企业官网模板

作者 tanmaybamdale

面向别墅租赁、度假村与房产展示的静态 HTML 网站模板,使用 Tailwind CSS、GSAP 与原生 JavaScript 构建。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

纯静态 HTML 模板,页面由 HTML、自定义 CSS 与原生 JavaScript 组成

02

使用 Tailwind CSS 组织样式,品牌配色在 config.js 中集中配置

03

通过 GSAP 实现滚动触发的动画与过渡效果

04

别墅列表页提供网格布局与模态图库,支持缩略图切换浏览

05

预订表单校验后把入住信息整理为预格式化消息,经 WhatsApp 发送

06

别墅数据与联系方式集中在 data.js,便于替换为自有内容

模板详细介绍

Villas-Template(仓库内称 Earthcon Villas)是一个纯静态的豪华别墅网站模板,源码由 HTML 页面、自定义 CSS 与原生 JavaScript 组成,样式基于 Tailwind CSS,动效使用 GSAP,图标使用 Font Awesome,字体来自 Google Fonts。

页面结构包含首页、关于页、别墅列表页、设施页与预订页。首页提供图片轮播与精选别墅预览;别墅列表页以网格展示房源并支持点击打开模态图库;预订页包含带校验的联系表单,并把姓名、联系方式、入住与退房日期、所选别墅、入住人数和特殊要求整理成预格式化消息,通过 WhatsApp 发送。别墅信息与联系方式集中在 data.js,品牌配色在 config.js 中配置。

使用前需要替换 images 目录下的示例图片、把 data.js 中的 WhatsApp 号码与邮箱地址改为自己的信息;README 也指出 Google Maps 集成需要额外的 API 密钥,属于可选配置。模板以静态文件形式运行,直接打开 index.html 或用本地服务器托管即可,不包含后端、数据库或在线支付逻辑。代码采用 MIT 许可,可免费使用、修改与分发,但演示图片、字体、图标等第三方素材需按各自许可单独核对。

HTML企业官网

适合你的项目吗?

适用场景

  • 别墅短租或度假屋的房源展示与预订咨询页面
  • 度假村官网的设施介绍与图片展示
  • 房产中介或地产项目的房源列表页
  • 以 WhatsApp 为主要沟通渠道的住宿类小型站点

适合人群

  • 需要静态托管、不引入后端服务的别墅或度假类网站
  • 希望用 Tailwind CSS 与 GSAP 快速搭建展示型页面的前端开发者
  • 接受以 WhatsApp 作为预订入口、暂不需要在线支付的运营方

上手与定制指南

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

  1. 1

    克隆仓库后可直接打开 index.html,或用 python -m http.server、npx http-server 等本地服务器托管

  2. 2

    替换 images 目录下的示例图片,并同步修改 data.js 中的图片路径

  3. 3

    在 data.js 的 contactInfo 中填写自己的电话、WhatsApp 号码、邮箱与地址

  4. 4

    在 config.js 中调整 brand-gold、brand-dark、brand-cream 等颜色值以匹配品牌

  5. 5

    Google Maps 集成需要自行申请 API 密钥,属于可选配置

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • Google Maps 集成需要自行申请 API 密钥,属于可选配置;不配置时该地图功能不可用,其余模板功能不受影响。
  • 预订咨询依赖 WhatsApp,需在 data.js 中配置自己的 WhatsApp 号码,否则预订消息无法发送。
  • images 目录中的示例图片需替换为自有图片并同步修改 data.js 中的路径,否则页面展示的是演示素材。
  • 占位图片来自 Unsplash,需按 Unsplash 自身许可单独核对使用条件,MIT 许可不覆盖这些第三方素材。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Google Maps integration requires API key (optional)

README 原文

WhatsApp number needs to be configured

README 原文

Image paths need to be updated with your own images

README 原文

[Unsplash](https://unsplash.com/) for placeholder images

README 原文
https://github.com/tanmaybamdale/Villas-Template/blob/main/LICENSE.txthttps://github.com/tanmaybamdale/Villas-Template/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: bf2453e580d7f8b334ffcc2352678874594f1d2b807e10a703297cfa51719b58

2026-10-03T23:20:18.607Z

来源文件 / 仓库
# 🏡 Earthcon Villas - Luxury Villa Website Template

A stunning, modern website template for luxury villa rentals, resorts, or real estate properties. Built with vanilla JavaScript, Tailwind CSS, and GSAP animations.

![Earthcon Villas Preview](images/villa1/v1.jpeg)

## ✨ Features

- 🎨 **Modern & Elegant Design** - Clean, luxury-focused UI with smooth animations
- 📱 **Fully Responsive** - Works seamlessly on desktop, tablet, and mobile
- ⚡ **Fast & Lightweight** - No heavy frameworks, pure vanilla JS
- 🎭 **GSAP Animations** - Smooth scroll-triggered animations and transitions
- 🖼️ **Interactive Gallery** - Modal image viewer with thumbnail navigation
- 📧 **WhatsApp Integration** - Direct booking inquiries via WhatsApp
- 🎯 **SEO Friendly** - Semantic HTML structure
- 🎨 **Customizable** - Easy to modify colors, content, and images

## 🚀 Live Demo

[View Live Demo](https://tanmaybamdale.github.io/Villas-Template/) 

## 🛠️ Technologies Used

- **HTML5** - Semantic markup
- **CSS3** - Custom styles with Tailwind CSS
- **JavaScript (ES6+)** - Vanilla JS for functionality
- **Tailwind CSS** - Utility-first CSS framework
- **GSAP** - Professional-grade animation library
- **Font Awesome** - Icon library
- **Google Fonts** - Playfair Display & Lato

## 📁 Project Structure

```
earthcon-villas/
├── index.html          # Homepage
├── about.html          # About page
├── villas.html         # Villa listings
├── amenities.html      # Amenities page
├── book.html           # Booking page
├── style.css           # Custom CSS styles
├── config.js           # Tailwind configuration
├── data.js             # Villa data and content
├── utils.js            # Utility functions
├── script.js           # Main JavaScript
├── images/             # Image assets
│   ├── villa1/
│   ├── villa2/
│   ├── villa3/
│   └── villa4/
└── README.md
```

## 🚀 Getting Started

### Prerequisites

- A modern web browser
- A text editor (VS Code recommended)
- Basic knowledge of HTML, CSS, and JavaScript

### Installation

1. **Clone the repository**
   ```bash
   git clone https://github.com/yourusername/earthcon-villas.git
   ```

2. **Navigate to project directory**
   ```bash
   cd earthcon-villas
   ```

3. **Open in browser**
   - Simply open `index.html` in your browser
   - Or use a local server (recommended):
   ```bash
   # Using Python
   python -m http.server 8000
   
   # Using Node.js
   npx http-server
   ```

4. **Visit** `http://localhost:8000`

## 🎨 Customization

### Changing Colors

Edit `config.js` to modify the brand colors:

```javascript
tailwind.config = {
    theme: {
        extend: {
            colors: {
                'brand-gold': '#D4AF37',    // Primary accent color
                'brand-dark': '#1a1a1a',    // Dark background
                'brand-cream': '#F9F9F5',   // Light background
            }
        }
    }
}
```

### Adding Villa Data

Edit `data.js` to add or modify villa information:

```javascript
const villaData = {
    'your-villa-id': {
        title: 'Your Villa Name',
        price: '₹20k',
        tag: 'New',
        desc: 'Your villa description...',
        beds: '4 Bedrooms',
        baths: '5 Bathrooms',
        guests: 'Up to 12',
        images: ['path/to/image1.jpg', 'path/to/image2.jpg']
    }
};
```

### Contact Information

Update contact details in `data.js`:

```javascript
const contactInfo = {
    phone: '+919767339333',
    whatsapp: '919767339333',
    email: '[email protected]',
    address: 'Your Address Here'
};
```

## 📱 Features Breakdown

### Homepage
- Hero section with image slider
- Featured villas preview
- Call-to-action sections
- Responsive navigation

### About Page
- Company information
- Values section
- Location/destination slider
- Customer testimonials

### Villas Page
- Villa grid with hover effects
- Modal gallery viewer
- Detailed villa information
- Click-to-view functionality

### Amenities Page
- Comprehensive amenities list
- Icon-based presentation
- Premium services section

### Booking Page
- Contact form with validation
- WhatsApp integration
- Booking information
- FAQ section

## 🎯 WhatsApp Integration

The template includes WhatsApp booking functionality. Messages are pre-formatted with:
- Customer name and contact
- Check-in/check-out dates
- Selected villa
- Number of guests
- Special requests

## 🌐 Browser Support

- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Opera (latest)

## 📝 License

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

## 🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

1. Fork the project
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

## 💡 Usage Ideas

This template is perfect for:
- Luxury villa rentals
- Resort websites
- Real estate property listings
- Vacation home bookings
- Hotel websites
- Airbnb-style properties

## 🐛 Known Issues

- Image paths need to be updated with your own images
- WhatsApp number needs to be configured
- Google Maps integration requires API key (optional)

## 📧 Contact

Your Name - [@yourusername](https://twitter.com/yourusername)

Project Link: [https://github.com/yourusername/earthcon-villas](https://github.com/yourusername/earthcon-villas)

## 🙏 Acknowledgments

- [Tailwind CSS](https://tailwindcss.com/)
- [GSAP](https://greensock.com/gsap/)
- [Font Awesome](https://fontawesome.com/)
- [Google Fonts](https://fonts.google.com/)
- [Unsplash](https://unsplash.com/) for placeholder images

## ⭐ Show your support

Give a ⭐️ if this project helped you!

---


Made with ❤️ by [Your Name](https://github.com/yourusername)S

反馈内容错误

看看同类模板

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