项目索引带实时预览:悬停或聚焦项目标题即切换大图
portfolio-template (nicolascadet-ops) — Astro 作品集模板
作者 nicolascadet-ops
面向摄影师、设计师与工作室的 Astro 作品集模板,项目以 Markdown 管理,首页带悬停实时预览,项目页采用编辑式图文排版并支持灯箱查看。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
项目页包含年份、地点、客户与编辑式全宽/半宽图片序列
灯箱支持全屏查看,方向键切换、Esc 关闭
内容以 Markdown 管理,新增项目只需一个 .md 文件加图片文件夹
构建时自动生成响应式 WebP 图片尺寸
语义化 HTML、键盘可用导航、可见焦点、alt 文本与 reduced-motion 支持
模板详细介绍
这是一个以图片为核心的深色作品集模板,使用 Astro 构建,输出为静态站点。项目内容以 Markdown 文件维护,每个项目对应一个 .md 文件和一个图片文件夹,构建时自动生成响应式 WebP 图片尺寸。首页提供项目索引:悬停或聚焦项目标题时,右侧大图预览随之切换。项目页面展示年份、地点、客户、简短故事,以及全宽与半宽交替的编辑式图片序列;点击任意图片可打开灯箱,用方向键切换、Esc 关闭。模板内置语义化 HTML、键盘可用的导航与灯箱、可见焦点样式、每张图片的 alt 文本以及 reduced-motion 支持。示例中的摄影师 Mara Ellis 为虚构人物,照片来自 Unsplash 多位摄影师,客户、展览与奖项均为虚构内容,仅作演示。
适合你的项目吗?
适用场景
- 摄影师搭建个人作品集,按项目组织图片与文字说明
- 设计师或插画师展示系列作品,需要图文混排的项目详情页
- 小型工作室发布案例集,并希望内容用 Markdown 维护
- 需要深色、以图片为主、静态输出的作品集站点
适合人群
- 摄影师、设计师、插画师与创作工作室
- 习惯用 Markdown 管理内容的开发者或创作者
- 希望将作品集部署到 Cloudflare Pages 等静态托管平台的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 Node.js 22.12 或更高版本,安装依赖后运行 npm run dev,默认地址为 http://localhost:4321
- 2
站点信息(姓名、邮箱、城市、Instagram)在 src/site.ts 中修改
- 3
项目内容位于 src/content/work/*.md,每个项目一个文件,图片放在 src/assets/<项目名>/ 下
- 4
个人肖像与简介对应 src/assets/mara.jpg 和 src/pages/about.astro,颜色与字体通过 src/styles/global.css 顶部的 CSS 变量调整
- 5
部署到 Cloudflare Pages 时框架预设选 Astro,构建命令 npm run build,输出目录 dist
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 示例照片来自 Unsplash 多位摄影师,按 Unsplash License 授权,并非本项目代码许可证的一部分;替换为自己的作品时需自行确认图片授权。
- 模板自托管字体 Schibsted Grotesk 采用 SIL Open Font License,与项目 MIT 代码许可不同,再分发字体时须遵守 OFL 条款。
- 本地运行与构建需要 Node.js 22.12 或更高版本,低于该版本无法使用。
- 部署到 Cloudflare Pages 需要 Cloudflare 账户并连接 Git 仓库,属于外部服务依赖。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
The photographs are free sample images from Unsplash by many different photographers, credited on every project page and listed in each project's Markdown file.
README 原文
Typeface: [Schibsted Grotesk](https://fonts.google.com/specimen/Schibsted+Grotesk), SIL Open Font License.
README 原文
Requires Node.js 22.12 or later.
README 原文
https://github.com/nicolascadet-ops/portfolio-template/blob/main/LICENSEhttps://github.com/nicolascadet-ops/portfolio-template/blob/main/README.mdDashboard:** Workers & Pages → Create → Pages → Connect to Git → pick this repo.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 73 / 100
- 技术栈
- Astro
- 网站类型
- 作品集 · 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-10-03
- 截图检查日期
- 2026-10-03
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: 9589cb9e2b63004c5ca21b572f5deeb2dfb9b40155cb56e0a0b64c4b525acb3f
2026-10-03T19:41:49.645Z
来源文件 / 仓库# Mara Ellis: Photography Portfolio Template A dark, image-first portfolio for photographers, designers, illustrators and studios. Built with [Astro](https://astro.build): projects are Markdown files, images are optimised automatically, and the output is a fast static site.  > **Mara Ellis is a fictional photographer.** The photographs are free sample images from Unsplash by many different photographers, credited on every project page and listed in each project's Markdown file. Clients, exhibitions and awards are fictional. ## Features - **Project index with live preview**: hover or focus a project title and the large preview changes. - **Project pages** with year, location and client, a short story, and an editorial image sequence that mixes full-width and half-width images. - **Lightbox**: click any image to view it full screen; arrow keys to move, Esc to close. - **Content in Markdown**: add a project by adding one `.md` file and a folder of images. - **Automatic image optimisation**: responsive WebP sizes generated at build time. - **Accessible**: semantic HTML, keyboard-friendly navigation and lightbox, visible focus, alt text for every image, reduced-motion support. - **Fast**: static HTML, one self-hosted font, almost no JavaScript. ## Run it locally Requires Node.js 22.12 or later. ```bash npm install npm run dev ``` Then open http://localhost:4321. ## Customise | What | Where | |---|---| | Name, email, city, Instagram | `src/site.ts` | | Projects | `src/content/work/*.md` (one file per project) | | Project images | `src/assets/<project-name>/` | | Your portrait and bio | `src/assets/mara.jpg` and `src/pages/about.astro` | | Colours and font | CSS variables at the top of `src/styles/global.css` | ### Add a project 1. Create a folder of images in `src/assets/my-project/`. 2. Copy one of the files in `src/content/work/` to `my-project.md` and edit the title, year, `order`, text and image list. 3. Run `npm run dev`. The project appears on the home page and gets its own page at `/work/my-project/`. ## Deploy to Cloudflare Pages - **Dashboard:** Workers & Pages → Create → Pages → Connect to Git → pick this repo. Framework preset: **Astro**. Build command: `npm run build`. Output directory: `dist`. - **CLI:** ```bash npm run build npx wrangler pages deploy dist --project-name mara-ellis ``` The site only rebuilds when you push changes. ## Credits - Typeface: [Schibsted Grotesk](https://fonts.google.com/specimen/Schibsted+Grotesk), SIL Open Font License. - Photographs: [Unsplash](https://unsplash.com) contributors under the [Unsplash License](https://unsplash.com/license). Each image's photographer and source link is in the `credit` and `source` fields of its project's Markdown file and is shown at the bottom of each project page. The About page photo (hands holding a camera, no face shown) is by Patrick Fore. - Built by **NC Atelier**. --- ### Want a site like this for your business? NC Atelier designs and builds fast, accessible websites for businesses in the UK, US and Canada. **Get in touch:** [ncatelier.com](https://ncatelier.com) · [LinkedIn](https://www.linkedin.com/in/cadetnicolas)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

astrowind
⭕️ AstroWind: A free template using Astro v7 and Tailwind CSS v4. Astro starter theme.
Astro · 博客

astro-paper
A minimal, accessible and SEO-friendly Astro blog theme.
Astro · 博客

fuwari
✨A static blog template built with Astro.
Astro · 博客

Firefly
Firefly 是一款基于 Astro 的静态博客主题,由 CuteLeaf 在 saicaca 的 Fuwari 模板基础上二次开发,主打清新美观的视觉风格。
Astro · 博客

astro-theme-cactus
A simple Astro theme. Use it to create your blog or website.
Astro · 作品集

astrofy
Astrofy is a free and open-source template for your Personal Portfolio Website built with Astro and TailwindCS…
Astro · 作品集
