# 欢迎页面图片使用指南
## 推荐图片来源
### 1. 免费高质量图片网站
#### Unsplash(推荐)
- 网址:https://unsplash.com
- 搜索关键词:
- `chinese ancestral hall` (中国祠堂)
- `chinese traditional architecture` (中国传统建筑)
- `chinese genealogy` (中国家谱)
- `ancient chinese book` (古代中国书籍)
- `chinese temple` (中国寺庙)
#### Pexels
- 网址:https://www.pexels.com
- 搜索关键词:
- `chinese architecture`
- `traditional chinese`
- `ancient china`
#### Pixabay
- 网址:https://pixabay.com
- 中文搜索:祠堂、家谱、古建筑
### 2. 推荐的具体图片
以下是一些适合的Unsplash图片ID:
1. **中国传统建筑**
```
https://images.unsplash.com/photo-1528360983277-13d401cdc186
```
2. **古代书籍/卷轴**
```
https://images.unsplash.com/photo-1481627834876-b7833e8f5570
```
3. **中国园林建筑**
```
https://images.unsplash.com/photo-1547981609-4b6bfe67ca0b
```
4. **传统中国屋檐**
```
https://images.unsplash.com/photo-1508804185872-d7badad00f7d
```
## 使用方法
### 方法1:使用在线图片(当前方案)
已在代码中实现,使用Unsplash CDN:
```tsx
```
优点:
- 无需下载,直接使用
- 自动优化和CDN加速
- 可以随时更换
缺点:
- 依赖外部服务
- 需要网络连接
### 方法2:使用本地图片(生产环境推荐)
#### 步骤1:下载图片
1. 访问Unsplash或其他免费图片网站
2. 下载喜欢的图片(建议尺寸:1920x1080或更大)
3. 重命名为有意义的名称,如 `ancestral-hall.jpg`
#### 步骤2:放置图片
将图片放到项目的 `public` 目录:
```
/Users/freedak/Documents/go-new/chinese-family-tree/public/
├── ancestral-hall.jpg
├── ancient-book.jpg
└── traditional-architecture.jpg
```
#### 步骤3:修改代码
在 `app/page.tsx` 中修改图片路径:
```tsx
```
### 方法3:使用Next.js Image组件(最佳实践)
```tsx
import Image from "next/image"