🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Themes••By Komal Nakrani

Architecture Portfolio Website: Build One with Astro

Build an architecture portfolio website with Astro: projects as content, large optimized images, typology filters, drawings, credits and fast static hosting.

#Astro#Architecture Portfolio Website#Portfolio#Images

An architecture portfolio website should lead with projects: large, fast-loading photography, clear project facts (location, year, typology, area, role), drawings, and proper credits. Astro is a strong fit because it turns each project into a static page, optimizes every image at build time, and ships no JavaScript unless you add it, so a photo-heavy architecture portfolio still loads quickly.

This guide shows how to build an architecture portfolio website with Astro 7, for a studio or an individual architect, with the code for each part.

Key Takeaways

  • Projects are the site. Model them as a content collection with typed facts so every project page is consistent.
  • Use <Picture /> from astro:assets for hero images so browsers get AVIF or WebP at the right size.
  • Generate one static page per typology (housing, cultural, interiors) for browsing and search.
  • Credit photographers and collaborators on every project. It’s expected in the profession and builds trust.
  • Keep text short and factual. Visitors scan images first and read facts second.

What belongs on an architecture portfolio website

Clients, competition juries and hiring studios look for different things, but they all start with the work.

Page Purpose
Home Three to six strongest projects, full-bleed, with a one-line studio statement
Projects All projects, filterable by typology and status
Project page Images, drawings, facts, a short narrative, credits
Studio or About Approach, team, history, location
Publications and awards Press, prizes, exhibitions, with dates and links
Contact Email, phone, address, map link, enquiry form
Portfolio PDF (individuals) A downloadable version for job applications

A student or job-seeking architect can drop the Studio page and add a CV page. The project model below works for both.

Create the project

# Terminal
npm create astro@latest architecture-portfolio
cd architecture-portfolio
npx astro add sitemap
npm run dev

To start from a finished design, the Astro architecture and design themes category has more than 100 themes at the time of writing. Arc-Tec is a minimal template for firms that want project images front and center, and Archify covers architecture firms, interior design agencies and construction companies. Free options work too: Astro’s official portfolio starter and community themes such as Astrofy give you a simple base, though you’ll design the image-led project pages yourself. For more choices, see the best Astro portfolio themes.

Model projects as a content collection

Every project shares the same facts. Put them in frontmatter with a schema so nothing is missing and the layout stays consistent.

// src/content.config.ts
import { defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
import { z } from 'astro/zod';

const projects = defineCollection({
  loader: glob({ pattern: '**/index.md', base: './src/content/projects' }),
  schema: ({ image }) =>
    z.object({
      title: z.string(),
      location: z.string(),
      year: z.number(),
      status: z.enum(['Completed', 'In progress', 'Competition', 'Unbuilt']),
      typology: z.enum(['Housing', 'Residential', 'Cultural', 'Workplace', 'Education', 'Interiors', 'Landscape']),
      areaSqm: z.number().optional(),
      client: z.string().optional(),
      role: z.string(),
      cover: image(),
      coverAlt: z.string(),
      gallery: z.array(z.object({ src: image(), alt: z.string(), caption: z.string().optional() })),
      photographer: z.string().optional(),
      collaborators: z.array(z.string()).default([]),
      featured: z.boolean().default(false),
      order: z.number().default(0),
    }),
});

export const collections = { projects };

Keeping each project in its own folder (src/content/projects/hillside-library/index.md next to its images) makes relative image paths work with image() and keeps everything for a project in one place.

---
# src/content/projects/hillside-library/index.md
title: "Hillside Library"
location: "Bergen, Norway"
year: 2025
status: "Completed"
typology: "Cultural"
areaSqm: 2400
client: "Bergen Municipality"
role: "Lead architect, concept to completion"
cover: "./cover.jpg"
coverAlt: "Timber library stepping down a wooded slope at dusk"
gallery:
  - { src: "./reading-room.jpg", alt: "Reading room with north light", caption: "Reading room" }
  - { src: "./section.png", alt: "Long section through the terraces", caption: "Section A-A" }
photographer: "Ingrid Solberg"
collaborators: ["Fjord Structural Engineers", "Vann Landscape"]
featured: true
---

The library follows the slope in four timber terraces, each a reading room with its own view.

The content collections guide covers schemas and the image() helper in more detail.

Project pages that let the images lead

On a project page, the cover image comes first, then the facts, then the narrative and gallery.

---
// src/pages/projects/[id].astro
import { getCollection, render } from 'astro:content';
import { Picture } from 'astro:assets';
import BaseLayout from '../../layouts/BaseLayout.astro';

export async function getStaticPaths() {
  const projects = await getCollection('projects');
  return projects.map((p) => ({ params: { id: p.id }, props: { project: p } }));
}

const { project } = Astro.props;
const { Content } = await render(project);
const d = project.data;
---
<BaseLayout title={`${d.title}, ${d.location}`} description={`${d.typology} project in ${d.location}, ${d.year}. ${d.role}.`}>
  <Picture src={d.cover} alt={d.coverAlt} formats={['avif', 'webp']} widths={[800, 1400, 2200]} sizes="100vw" loading="eager" fetchpriority="high" />
  <h1>{d.title}</h1>
  <dl class="facts">
    <div><dt>Location</dt><dd>{d.location}</dd></div>
    <div><dt>Year</dt><dd>{d.year}</dd></div>
    <div><dt>Status</dt><dd>{d.status}</dd></div>
    <div><dt>Typology</dt><dd><a href={`/projects/type/${d.typology.toLowerCase()}/`}>{d.typology}</a></dd></div>
    {d.areaSqm && <div><dt>Area</dt><dd>{d.areaSqm.toLocaleString('en-US')} m²</dd></div>}
    {d.client && <div><dt>Client</dt><dd>{d.client}</dd></div>}
    <div><dt>Role</dt><dd>{d.role}</dd></div>
  </dl>
  <Content />
  {d.gallery.map((img) => (
    <figure>
      <Picture src={img.src} alt={img.alt} formats={['avif', 'webp']} widths={[800, 1400]} sizes="(min-width: 1200px) 1200px, 100vw" />
      {img.caption && <figcaption>{img.caption}</figcaption>}
    </figure>
  ))}
  <footer class="credits">
    {d.photographer && <p>Photography: {d.photographer}</p>}
    {d.collaborators.length > 0 && <p>Collaborators: {d.collaborators.join(', ')}</p>}
  </footer>
</BaseLayout>

Only the cover loads eagerly with fetchpriority="high"; every gallery image lazy-loads by default. That keeps Largest Contentful Paint fast even on a project with 30 photos. Image vs Picture vs img explains when each component is the right choice.

Drawings, plans and sections

Drawings are what distinguish an architecture portfolio from a photography one. Treat them differently from photos:

  • Export plans and sections as SVG where possible. They stay sharp at any zoom and are often smaller than a PNG.
  • Use a white or light background on drawing images even in a dark site theme, so linework stays legible.
  • For large PDFs (competition boards, portfolio books), link them rather than embedding. Put them in public/ so the URL is stable.
---
// src/components/Drawing.astro
const { src, alt, caption } = Astro.props;
---
<figure class="drawing">
  <img src={src} alt={alt} loading="lazy" decoding="async" />
  <figcaption>{caption}</figcaption>
</figure>
<style>
  .drawing { background: #fff; padding: 2rem; }
  .drawing img { width: 100%; height: auto; }
</style>

Filter projects by typology

Instead of a JavaScript filter, generate one static page per typology. It works without JavaScript, each page has its own URL to share, and each one can rank for searches like “library architects Bergen”.

---
// src/pages/projects/type/[typology].astro
import { getCollection } from 'astro:content';
import { Image } from 'astro:assets';
import BaseLayout from '../../../layouts/BaseLayout.astro';

export async function getStaticPaths() {
  const projects = await getCollection('projects');
  const types = [...new Set(projects.map((p) => p.data.typology))];
  return types.map((type) => ({
    params: { typology: type.toLowerCase() },
    props: {
      type,
      projects: projects.filter((p) => p.data.typology === type).sort((a, b) => b.data.year - a.data.year),
    },
  }));
}

const { type, projects } = Astro.props;
---
<BaseLayout title={`${type} projects`} description={`${type} architecture projects by our studio.`}>
  <h1>{type}</h1>
  <ul class="grid">
    {projects.map((p) => (
      <li>
        <a href={`/projects/${p.id}/`}>
          <Image src={p.data.cover} alt={p.data.coverAlt} width={800} height={600} />
          <span>{p.data.title}</span>
          <span>{p.data.location}, {p.data.year}</span>
        </a>
      </li>
    ))}
  </ul>
</BaseLayout>

Add a row of typology links above the main project grid and you have filtering with zero JavaScript. If you want smooth transitions between the grid and a project, the view transitions guide shows how to animate the cover image from thumbnail to full width.

Studio, publications and contact

The Studio page should say what kind of work you do, where, and how you work, in a few short paragraphs, plus team portraits. A publications and awards list adds credibility; keep it as a data file with year, title, publication and link, and render it newest first.

For contact, list email and phone as text and link to a maps app for directions. An enquiry form needs a form backend on a static site; the contact forms guide compares the options. Ask for project type, location, budget range and timeline, which saves a round of emails.

Performance, SEO and deployment

Architecture sites are image-heavy, so the build does most of the performance work. A few habits help:

  1. Export photos at around 2,500px on the long edge before adding them. Astro generates the smaller sizes.
  2. Write real alt text that describes the space, not “image 1”.
  3. Use the project title and location in page titles: “Hillside Library, Bergen” is what people search.
  4. Add og:image from each project’s cover so shared links look right.

Run npm run build and deploy dist/ to Cloudflare Pages, Netlify or Vercel; our static deployment docs cover each host. The official Astro images guide documents every <Picture /> option used here. For a related image-led build, see build a photography portfolio with Astro.

FAQ

What should an architecture portfolio website include?

Your strongest projects with large photography, clear facts for each (location, year, typology, area, your role), plans or sections, credits for photographers and collaborators, a studio or about page, publications and awards, and contact details.

Is Astro good for an architecture portfolio?

Yes. Astro optimizes images at build time, serves modern formats like AVIF and WebP, and ships no JavaScript by default. That lets a portfolio with hundreds of large photos stay fast, and each project gets its own static, shareable page.

How many projects should an architecture portfolio show?

Quality beats volume. Six to twelve well-documented projects usually make a stronger portfolio than thirty thin ones. Feature three to six on the home page and keep older or smaller work on typology pages.

Should an architecture portfolio be a website or a PDF?

Both have a place. A website is better for clients and search, and it’s easy to update and share. Many studios still ask job applicants for a PDF, so individuals should keep a short PDF portfolio and link it from the site.

How do I keep large architecture photos fast in Astro?

Store originals in src/ and render them with <Picture /> or <Image /> from astro:assets, using widths and sizes so each device gets an appropriate file. Load only the first image eagerly and lazy-load the rest.