ViteReact后台作品集

Animated-Portfolio-React — Vite 后台模板

作者 sabaoongfx

基于 Vite 与 React 的作品集模板,包含 Three.js 3D 背景、Framer Motion 页面过渡、深浅主题、9 种语言、联系表单与 /admin 管理后台,后端依赖 Vercel 的 Serverless Functions、Postgres 与 Blob 存储。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

Three.js 与 React Three Fiber 实现的 3D 动画背景

02

Framer Motion 驱动的页面过渡动画

03

深浅主题切换并保留用户偏好

04

内置 9 种语言,按浏览器偏好自动检测

05

联系表单写入数据库,并提供 /admin 管理面板

06

文件上传接入 Vercel Blob 存储

模板详细介绍

这是一个面向个人作品展示的 React 模板,前端使用 Vite 构建,包含 Three.js / React Three Fiber 驱动的 3D 背景、Framer Motion 页面过渡、深浅主题切换与 9 种语言(英、德、阿拉伯、日、中、印尼、西、法、俄)的 i18n 支持,语言会依据浏览器偏好自动检测。页面组件涵盖 Hero、Header、Services 等,样式使用 Tailwind CSS,图标来自 Lucide React,路由由 React Router 负责。

模板同时提供后端能力:联系表单带校验并写入数据库,/admin 路径下的管理面板用于查看提交内容,文件上传接入 Vercel Blob 存储。后端由 Vercel Serverless Functions 与 Express 实现,数据库使用 Vercel Postgres。仓库内附 Selenium 语言切换测试。

使用前需要自行准备环境变量,包括 Postgres 连接串、管理面板登录邮箱与密码、Blob 读写令牌;部署目标为 Vercel。代码以 MIT 许可发布,可免费使用、修改与商用,但演示图片、字体、图标等第三方素材需单独核对许可,域名、托管、数据库等外部服务可能产生费用。

ViteReact后台作品集

适合你的项目吗?

适用场景

  • 开发者、设计师或创意工作者搭建个人作品集站点
  • 需要 3D 背景与页面过渡动画的展示型页面
  • 需要多语言切换与联系表单收集访客信息的个人站点
  • 希望在 Vercel 上使用 Serverless、Postgres 与 Blob 组合部署的项目

适合人群

  • 熟悉 React 与 TypeScript、希望快速起步作品集的前端开发者
  • 需要管理联系表单提交内容的个人站长
  • 计划部署在 Vercel 并接受其 Postgres 与 Blob 服务的用户

上手与定制指南

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

  1. 1

    需要 Node.js 18+ 与 npm 或 yarn,克隆仓库后执行 npm install

  2. 2

    复制 .env.example 为 .env,配置 POSTGRES_URL、POSTGRES_URL_NON_POOLING、ADMIN_EMAIL、ADMIN_SECRET、BLOB_READ_WRITE_TOKEN

  3. 3

    npm run dev 启动开发服务器,npm run build 构建生产版本,npm run preview 预览构建结果

  4. 4

    Selenium 语言测试需要本机安装 Chrome 与匹配版本的 ChromeDriver,并先启动开发服务器

  5. 5

    部署到 Vercel 时需在控制台配置上述环境变量

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 使用前必须自行配置环境变量(Postgres 连接串、管理邮箱与密码、Blob 令牌),否则联系表单、管理面板与文件上传功能无法运行。
  • 联系表单与管理面板依赖 Vercel Postgres 数据库,需自备 Postgres 连接串,可能产生外部服务费用。
  • 文件上传功能依赖 Vercel Blob 存储令牌,需在 Vercel 上开通该服务,可能产生费用。
  • 项目按 Vercel 部署配置,后端使用 Vercel Serverless Functions,部署到其他平台需自行改造。
  • 运行 Selenium 语言测试需本机安装 Chrome 及版本匹配的 ChromeDriver。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Configure your environment variables in `.env`

README 原文

| `POSTGRES_URL` | Vercel Postgres connection URL |

README 原文

| `BLOB_READ_WRITE_TOKEN` | Vercel Blob storage token (auto-configured on Vercel) |

README 原文

This project is configured for deployment on Vercel:

README 原文

- Chrome browser installed - ChromeDriver matching your Chrome version

README 原文
https://github.com/sabaoongfx/Animated-Portfolio-React/blob/main/LICENSEhttps://github.com/sabaoongfx/Animated-Portfolio-React/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 88 / 100
技术栈
Vite · React
网站类型
后台 · 作品集
这个分数如何计算

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: ab904cb6bd992d01cf76c1512ba180c501a220e91203ba4ed8a07d5df09a8e48

2026-10-03T00:51:06.454Z

来源文件 / 仓库
# Animated Portfolio

An open-source, production-ready portfolio template featuring 3D animations, smooth page transitions, and a modern tech stack. Built with React 19, TypeScript, and Three.js.

Perfect for developers, designers, and creatives who want a stunning portfolio with minimal setup.

![Animated Portfolio Screenshot](public/screenshot.png)

### Demo
![Portfolio Demo](public/demo.gif)

*3D animations, theme toggle, and multi-language support in action*

## Features

- **3D Animations** - Stunning WebGL backgrounds with Three.js and React Three Fiber
- **Smooth Transitions** - Page animations powered by Framer Motion
- **Dark/Light Theme** - Toggle between themes with preference persistence
- **9 Languages** - Full i18n support (English, German, Arabic, Japanese, Chinese, Indonesian, Spanish, French, Russian)
- **Contact Form** - Database-backed contact form with validation
- **Admin Panel** - Manage contact submissions at `/admin`
- **Responsive Design** - Mobile-first, works on all devices
- **File Upload** - Vercel Blob storage integration
- **Production-Ready** - Optimized for Vercel deployment
- **Type-Safe** - Full TypeScript implementation
- **Modern Styling** - Tailwind CSS for easy customization

## Supported Languages

| Language | Code | Flag |
|----------|------|------|
| English | en | US |
| German | de | DE |
| Arabic | ar | AR |
| Japanese | ja | JP |
| Chinese | zh | CN |
| Indonesian | id | ID |
| Spanish | es | ES |
| French | fr | FR |
| Russian | ru | RU |

Languages are auto-detected from browser preferences and can be changed via the language selector.

## Tech Stack

- **Frontend**: React 19, TypeScript, Tailwind CSS, React Router
- **3D Graphics**: Three.js, React Three Fiber, @react-three/drei
- **Animations**: Framer Motion
- **Backend**: Vercel Serverless Functions, Express 5
- **Database**: Vercel Postgres
- **Storage**: Vercel Blob
- **Build Tool**: Vite 7
- **Testing**: Selenium WebDriver
- **Icons**: Lucide React

## Project Structure

```
src/
├── components/     # React components (Hero, Header, Services, etc.)
├── config/         # Color configuration
├── contexts/       # Theme context provider
├── i18n/           # Language translations (9 languages)
├── utils/          # Performance utilities
├── App.tsx         # Main routing
└── main.tsx        # Entry point

api/                # Vercel serverless functions
├── contact.js      # Contact form API
├── admin/          # Admin endpoints
└── lib/            # Database utilities

tests/              # Selenium tests
└── selenium/       # Language verification tests
```

## Getting Started

### Prerequisites

- Node.js 18+
- npm or yarn

### Installation

1. Clone the repository:
   ```bash
   git clone https://github.com/sabaoongfx/Animated-Portfolio-React.git
   cd Animated-Portfolio-React
   ```

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

3. Create a `.env` file based on `.env.example`:
   ```bash
   cp .env.example .env
   ```

4. Configure your environment variables in `.env`

5. Start the development server:
   ```bash
   npm run dev
   ```

## Environment Variables

Copy `.env.example` to `.env` and configure the following:

| Variable | Description |
|----------|-------------|
| `POSTGRES_URL` | Vercel Postgres connection URL |
| `POSTGRES_URL_NON_POOLING` | Vercel Postgres non-pooling URL |
| `ADMIN_EMAIL` | Admin panel login email |
| `ADMIN_SECRET` | Admin panel login password |
| `BLOB_READ_WRITE_TOKEN` | Vercel Blob storage token (auto-configured on Vercel) |

## Scripts

| Command | Description |
|---------|-------------|
| `npm run dev` | Start development server |
| `npm run build` | Build for production |
| `npm run preview` | Preview production build |
| `npm run lint` | Run ESLint |
| `npm test` | Run Selenium language tests |
| `npm run test:headless` | Run tests in headless mode |

## Testing

Selenium tests are included to verify language switching functionality.

### Prerequisites
- Chrome browser installed
- ChromeDriver matching your Chrome version

### Running Tests
```bash
# Start dev server first
npm run dev

# In another terminal, run tests
npm test

# Or run in headless mode
npm run test:headless
```

See [tests/README.md](tests/README.md) for more details.

## Deployment

This project is configured for deployment on Vercel:

1. Push your code to GitHub
2. Import the repository in Vercel
3. Configure environment variables in Vercel dashboard
4. Deploy

## License

MIT License - see [LICENSE](LICENSE) for details.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.
反馈内容错误

看看同类模板

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