HTML作品集

portfolio-template (CynthiaNiaz) — HTML 作品集模板

作者 CynthiaNiaz

一个用纯 HTML、CSS 和 JavaScript 构建的静态个人作品集模板,包含首页、简历、项目和笔记四个页面,无需构建工具与依赖,可直接部署到 GitHub Pages。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

四个页面:首页、简历、项目、笔记

02

纯 HTML/CSS/JavaScript,无框架、无构建工具、无依赖

03

干净 URL,如 /resume 而非 /resume.html

04

响应式布局,适配桌面、平板和手机

05

颜色、字体和内容集中管理,便于自定义

06

笔记区为网格布局的轻量博客,可添加独立笔记页面

模板详细介绍

该模板是一个静态个人作品集网站,使用 HTML、CSS 和 JavaScript 编写,README 明确说明不使用框架、构建工具或依赖,可直接部署到 GitHub Pages。站点包含四个页面:首页、简历(Resume)、项目(Projects)和笔记(Notes)。首页提供引言轮换与滚动淡入动画;笔记区是一个采用网格布局的轻量博客,支持创建独立笔记页面。模板通过将各页面放在独立文件夹的 index.html 中实现干净 URL(如 /resume 而非 /resume.html)。样式集中在 assets/css/main.css 顶部的 CSS 变量中,可统一调整颜色;字体使用 Google Fonts 的 Cormorant Garamond 与 Work Sans。内容直接写在 HTML 文件中,没有 CMS 或 Markdown 支持。README 提供了本地预览方式、自定义说明、添加笔记的步骤以及 GitHub Pages 部署与自定义域名的配置方法。

HTML作品集

适合你的项目吗?

适用场景

  • 个人作品集网站,展示简历、项目与笔记
  • 在 GitHub Pages 上免费部署静态个人站点
  • 需要无构建步骤、纯静态文件的轻量博客或作品展示
  • 作为学习 HTML/CSS/JavaScript 静态站点结构的参考模板

适合人群

  • 希望快速搭建个人作品集并部署到 GitHub Pages 的开发者或设计师
  • 偏好纯静态文件、不想引入框架或构建工具的开发者
  • 需要简历、项目展示和轻量笔记功能的个人用户

上手与定制指南

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

  1. 1

    点击 GitHub 的 Use this template 或 fork 仓库,将仓库重命名为 yourusername.github.io

  2. 2

    本地预览需在仓库根目录运行 python3 -m http.server 8000,然后访问 http://localhost:8000,不要直接打开 HTML 文件

  3. 3

    颜色在 assets/css/main.css 顶部的 CSS 变量中修改;字体需更新各 HTML 文件 head 中的 Google Fonts 导入及 CSS 中的 font-family

  4. 4

    内容直接编辑 HTML 文件;个人照片放入 assets/images/personal/ 并更新 index.html 中的 img src;公司 logo 替换 assets/images/logos/ 中的 SVG

  5. 5

    部署到 GitHub Pages:若仓库名为 yourusername.github.io 则自动部署,否则在 Settings → Pages 中选择 Deploy from a branch 并选 main;自定义域名需添加 CNAME 文件并配置 DNS

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

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

项目核对记录与介绍依据

模板资料

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

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

这个项目需要核对什么

记录的仓库更新时间
2026-04-15
截图检查日期
2026-10-13

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15

查看当时使用的来源资料

SHA-256: 3cfa7da16a6708d07fb86260a2f004fb647ee00956d6501a833688f0fcd9726a

2026-10-13T15:37:18.588Z

来源文件 / 仓库
# Portfolio Template

A clean, responsive portfolio site built with HTML, CSS, and JavaScript. No frameworks, no build tools, no dependencies. Deploys for free on GitHub Pages.

**[Live demo →](https://cynthianiaz.github.io)**

## Features

- **Four pages** — Home, Resume, Projects, and Notes
- **Clean URLs** — `/resume` instead of `/resume.html`
- **Responsive** — looks good on desktop, tablet, and mobile
- **Fast** — no build step, no JavaScript frameworks, just static files
- **Easy to customize** — colors, fonts, and content are all in one place
- **Notes section** — a lightweight blog with a grid layout
- **Quote rotation** — rotating quotes on the home page
- **Scroll animations** — subtle fade-in effects as you scroll
- **GitHub Pages ready** — push and it's live

## Quick Start

1. Click **"Use this template"** (green button above) or fork the repo
2. Rename the repo to `yourusername.github.io`
3. Edit the HTML files with your own content
4. Push to GitHub — your site will be live at `yourusername.github.io`

## Local Development

Don't open HTML files directly in your browser — clean URLs require a server. Run this from your repo root instead:

```bash
python3 -m http.server 8000
```

Then open `http://localhost:8000`. Everything will work exactly as it does on GitHub Pages.

## Customization

### Colors

Open `assets/css/main.css` and change the CSS variables at the top:

```css
:root {
    --wine: #7d1e3e;        /* Main accent color — change this one */
    --wine-light: #9d3a5a;  /* Lighter variant for hover states */
    --wine-dark: #5a1529;   /* Darker variant */
    --cream: #faf8f5;       /* Background */
    --charcoal: #2a2a2a;    /* Body text */
    --gray: #6a6a6a;        /* Secondary text */
}
```

### Fonts

The site uses [Cormorant Garamond](https://fonts.google.com/specimen/Cormorant+Garamond) for headings and [Work Sans](https://fonts.google.com/specimen/Work+Sans) for body text. To change them, update the Google Fonts import in each HTML file's `<head>` and the `font-family` references in the CSS.

### Content

Everything is in the HTML files — no CMS, no markdown. Each resume entry and project follows a consistent structure you can copy and paste.

### Profile photo

Drop your photo in `assets/images/personal/` and update the `<img>` src in `index.html`.

### Company logos

Replace the SVGs in `assets/images/logos/` with your own. Transparent PNGs work best at 56×56px.

### Email

Edit `assets/js/home.js` and change the `user` and `domain` variables to your email. It's split in JavaScript to reduce spam.

## File Structure

```
├── index.html                  ← Home page (stays at root)
├── 404.html                    ← Error page
├── resume/
│   └── index.html              ← yoursite.com/resume
├── projects/
│   └── index.html              ← yoursite.com/projects
├── notes/
│   ├── index.html              ← yoursite.com/notes
│   └── example-note/
│       └── index.html          ← yoursite.com/notes/example-note
└── assets/
    ├── css/
    │   ├── main.css            ← Shared styles (nav, footer, colors)
    │   ├── home.css            ← Home page
    │   ├── resume.css          ← Resume page
    │   ├── projects.css        ← Projects page
    │   ├── notes.css           ← Notes index
    │   ├── note-page.css       ← Individual note layout
    │   └── 404.css             ← Error page
    ├── js/
    │   ├── main.js             ← Shared (scroll, nav, animations)
    │   ├── home.js             ← Email obfuscation, parallax
    │   └── quotes.js           ← Quote rotation
    ├── documents/              ← PDFs (resume, papers)
    └── images/
        ├── logos/              ← Company logos for resume
        └── personal/           ← Profile photo
```

Each page lives in its own folder as `index.html` — this is what gives you clean URLs on GitHub Pages. The home page is the exception: `index.html` at the root already gets a clean URL, so it stays there.

Asset paths use `../assets/` from depth-1 pages (like `resume/`) and `../../assets/` from depth-2 pages (like `notes/example-note/`). Nav links use absolute paths like `/resume` and `/notes` so they work from any depth.

## Adding a Note

1. Create a new folder inside `notes/` — e.g. `notes/my-new-note/`
2. Copy `notes/example-note/index.html` into it and edit the content
3. Add a card for it in `notes/index.html` inside `.notes-grid` with `href="/notes/my-new-note"`

The first card in the grid can use the `featured` class to span two columns. Regular cards are square.

## Deploying

If you named your repo `yourusername.github.io`, it deploys automatically. Otherwise go to Settings → Pages, set source to "Deploy from a branch," and select `main`.

For a custom domain, add a `CNAME` file to the root with your domain name and configure DNS with your provider. GitHub has [good documentation](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site) on this.

## License

MIT — use it however you want. A link back is appreciated but not required.

## Credits

Designed and built by [Cynthia Niaz](https://cynthianiaz.github.io).
反馈内容错误

看看同类模板

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