React 配合 Vite 的开发与构建流程,提供本地开发服务器和生产构建命令
Portfolio-Template-For-Artists — React 作品集模板
作者 rakshixh
基于 React 与 Vite 的艺术家作品集模板,通过 src/Data.js 与 src/assets 目录替换内容即可搭建个人画廊站点。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
使用 React Router 管理路由,页面组件按路由懒加载
画廊图片通过 Framer Motion 在滚动进入视口时淡入上移,上下滚动均可重新触发
作品图片与头像按目录约定自动加载,替换 src/assets 下的文件即可更新内容
站点文案集中存放在 src/Data.js,便于统一修改标题、页脚、关于页与联系邮箱
样式使用 CSS Modules 按组件拆分,布局为响应式设计
模板详细介绍
这是一个面向艺术家、插画师、摄影师等视觉创作者的作品集模板,使用 React 与 Vite 构建,采用 React Router 管理路由,并用 Framer Motion 实现画廊图片的滚动入场动画。
内容组织上,站点文案集中在 src/Data.js,作品图片放在 src/assets/images/,个人头像放在 src/assets/profile/,画廊会自动读取这些目录中受支持的图片文件;样式通过 src/css/ 下的 CSS Modules 按组件组织。
开发流程依赖 npm 脚本:npm start 启动本地开发服务器,npm run start:host 供同一 Wi-Fi 下的手机访问,npm run build 生成 dist/ 产物,npm run preview 与 npm run preview:host 用于本地预览生产构建。构建产物可部署到任意静态托管服务。
限制方面:模板本身不包含后端、数据库或内容管理后台,所有内容修改都需要编辑源码并重新构建;演示图片、字体、图标等第三方素材的授权需单独核对,MIT 许可仅覆盖仓库中的代码。
适合你的项目吗?
适用场景
- 艺术家、插画师或摄影师搭建个人作品展示站点
- 用现成的 React 项目结构快速替换图片和文案,形成个人画廊页面
- 作为 React 路由、懒加载与滚动动画的练习或二次开发起点
- 部署到 Vercel、Netlify、Cloudflare Pages 或 GitHub Pages 等静态托管服务
适合人群
- 能运行 npm 命令、愿意直接编辑源码来更新内容的开发者
- 需要一个纯前端静态作品集、不需要后台管理系统的视觉创作者
- 希望以 MIT 许可代码为基础进行修改和分发的使用者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
运行 npm install 安装依赖,再用 npm start 启动 Vite 开发服务器
- 2
在手机上测试时使用 npm run start:host 或 npm run preview:host,需与电脑处于同一 Wi-Fi
- 3
替换 src/assets/images/ 中的图片更新画廊,替换 src/assets/profile/ 中的图片更新头像
- 4
编辑 src/Data.js 修改站点文案,如需调整浏览器标签标题可查看 src/SetWebsiteTitle.js
- 5
npm run build 生成 dist/ 目录,将其部署到静态托管服务
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 模板自带的示例作品图片仅用于演示,替换为自己的作品时需自行确认所用图片的授权;MIT 许可只覆盖仓库代码,不覆盖图片等第三方素材。
- 个人头像目录中的示例图片同样属于演示素材,正式使用时需替换为自有或已获授权的图片。
- 部署依赖第三方静态托管服务,其账号、配额与费用由相应服务商决定,不属于本模板提供的内容。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Replace the files in `src/assets/images/` with your own artwork.
README 原文
Replace the image inside `src/assets/profile/` with your portrait or studio photo.
README 原文
https://github.com/rakshixh/Portfolio-Template-For-Artists/blob/main/LICENSEhttps://github.com/rakshixh/Portfolio-Template-For-Artists/blob/main/README.mdDeploy the contents of `dist/` to any static host such as Vercel, Netlify, Cloudflare Pages, or GitHub Pages.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 87 / 100
- 技术栈
- React
- 网站类型
- 作品集
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-08-03
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 React。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: c9b905bac556cbe1da4401742107aef3239d8e989dce2c24466dd260b29af533
2026-10-02T23:59:06.095Z
来源文件 / 仓库# Portfolio Template For Artists A modern React portfolio template for artists, illustrators, photographers, and other visual creators. The project uses Vite for a fast development server, quick production builds, and a lightweight modern toolchain. ## Highlights - Vite-based development and build workflow. - React 18 with React Router 6. - Lazy-loaded route pages for a smaller initial bundle. - Smooth Framer Motion gallery reveals that animate on scroll in both directions. - Responsive layout with reusable components and CSS Modules. ## Tech Stack - React 18 - Vite - React Router 6 - Framer Motion - react-hot-toast - hamburger-react ## Project Structure - `index.html` is the Vite entry HTML file. - `src/main.jsx` is the application bootstrap file. - `src/App.jsx` handles routing and app-level behavior. - `src/pages/` contains the routed views. - `src/components/` contains reusable UI parts. - `src/Data.js` stores site content. - `src/css/` contains CSS Modules for component styling. - `src/assets/` contains portfolio images, profile images, and supporting artwork. ## Getting Started 1. Install dependencies. ```bash npm install ``` 2. Start the development server. ```bash npm start ``` This runs Vite locally on your machine. To test on a phone on the same Wi-Fi, run: ```bash npm run start:host ``` 3. Build the production bundle. ```bash npm run build ``` 4. Preview the production build locally. ```bash npm run preview ``` To open the production preview on a phone on the same network, run: ```bash npm run preview:host ``` ## Available Scripts - `npm start` runs the Vite development server. - `npm run start:host` runs the Vite development server on your network so a phone can connect. - `npm run build` creates an optimized production build in `dist/`. - `npm run preview` previews the production build locally. - `npm run preview:host` previews the production build on your network for mobile testing. ## Migration Notes - The app no longer depends on Create React App or `react-scripts`. - Image imports now use Vite's `import.meta.glob` instead of `require.context`. - Portfolio images reveal when about 10% of the card enters the viewport and re-animate on scroll up or down. - Use `npm run start:host` or `npm run preview:host` when you want to open the site on a mobile device. - Static assets that should be served directly live in `public/` and are referenced from `/`. ## Customization Guide ### Update Portfolio Images Replace the files in `src/assets/images/` with your own artwork. The gallery automatically loads supported image files from that folder. The gallery uses a smooth fade-and-lift entrance, so new images animate as they come into view instead of appearing all at once. ### Update the Profile Image Replace the image inside `src/assets/profile/` with your portrait or studio photo. The about page uses the first supported image in that folder. ### Edit Site Content Update `src/Data.js` to change the header title, footer text, about page copy, and contact email details. ### Change the Site Title Review `src/SetWebsiteTitle.js` if you want to adjust the browser tab title. ## Deployment Deploy the contents of `dist/` to any static host such as Vercel, Netlify, Cloudflare Pages, or GitHub Pages. ## License This project is licensed under the MIT License. See [LICENSE](LICENSE) for details.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

react-portfolio-template
React powered portfolio website template for developers
React · 作品集

personal-website-react
personal-website-react 是一个面向开发者的个人作品集单页模板,由 React 和 Material-UI 构建,并通过 Create React App 初始化。
React · 作品集

karngyan.com
karngyan.com 是一个面向开发者的个人网站与博客模板,作者用它搭建了自己的站点,并公开了完整代码。 模板的核心定位很明确:让写作者专注于内容,而不是花时间搭建基础设施。
React · 作品集

react-portfolio-template
react-portfolio-template 是一个由 Ryan Balieiro 开发的 React 作品集模板,定位为“sleek, futuristic”,适合开发者展示个人履历。
React · 作品集

portfolio
Personal website, Data scientist portfolio template
React · 作品集

react-portfolio
react-portfolio 是一个面向开发者的个人作品集模板,基于 React 16 和 Create React App 构建,界面样式采用 Material-UI。
React · 作品集
