Skip to main content

02 - How to Create a Developer Portfolio That Converts

How to build a developer portfolio that can be verified: sections, server-side rendering, structured data and contrast, with sources and code that was tried.

What do you think about this article?

02 - How to Create a Developer Portfolio That Converts
StandalonePhoto:Brett SaylesPexels

At a Glance

How to build a developer portfolio that can be verified: sections, server-side rendering, structured data and contrast, with sources and code that was tried.

A portfolio does not convince because it is beautiful: it convinces because it can be verified

Whoever looks at your portfolio, be it a recruiter, a client or a colleague, has little time and a single question: can I trust this person with my problem? A site with polished animations but no open project, no explanation of how it was built and no obvious way to contact you does not answer that question. A sober site that shows three real pieces of work, says what you did in each of them and lets people write to you in one click, does.

This guide follows that logic. First you decide what the portfolio must prove and to whom, then you choose the sections, then the technical choices that make them findable, readable and accessible. Every technical claim is tied to a primary source, and the snippets of code that can be run or compiled here were run or compiled; for the others the text says what I could not try. You will not find "conversion" percentages or industry studies: I have no source for them that holds up, and an invented number makes a guide worse instead of better.

Who reads it, and what they are looking for

"Converting" in a portfolio means getting the visitor to take the action you care about: write to you, open a repository, read an article. Different actions serve different audiences, and a portfolio that tries to speak to everyone ends up saying nothing to anyone. It is worth deciding first who the main reader is.

  • Those who select candidates: they look for the stack, the level and a piece of work that lets them understand how you think, not the list of technologies you have brushed against.
  • Those who have a problem to solve: they look for a problem similar to theirs, solved, and a way to contact you; the technologies matter less to them than the result.
  • Those who develop in turn: they look for readable code, reasoned choices and declared trade-offs; a repository with an honest README is worth more than a screenshot.

The three figures want different proof, so the same project should be presented on two levels: a paragraph on the problem and the result for those who do not program, and a link to the code with the technical choices for those who do. You do not have to pick a single audience, but you must know which section speaks to which.

The sections you need, and what to put in them

An effective portfolio does not need twenty pages. It needs a few sections where every element answers a question of the reader. I describe them in order of appearance, but the order depends on the audience: if you are looking for clients you can bring the projects to the top.

The first screen: who you are and what you do for whom

The first screen must say in one sentence who you are, who you work for and what action you propose. The name goes in a heading, the sentence below specifies it, and a single call to action spares the reader from choosing between five buttons. This is a minimal semantic structure:

Structure of the first screen (HTML, not run)
<header class="hero">
  <h1>First Last</h1>
  <p class="tagline">Web developer: I build accessible, fast Angular applications.</p>
  <p class="intro">For anyone looking for an interface that loads quickly and works from the keyboard.</p>
  <p>
    <a href="#projects" class="btn-primary">See the projects</a>
    <a href="#contact" class="btn-secondary">Write to me</a>
  </p>
</header>

There is only one <h1> per page and it contains your name or your role: search engines and screen readers use it to understand what the page is about. Two buttons are enough, one primary and one secondary, because choosing among too many options slows the decision. The snippet is standard HTML and I did not run it in a browser; the button styling is yours.

Who you are, in a few lines

The "about me" section is not an autobiography: it is the place where a stranger understands whether it is worth reading on. A few lines on your path, the areas where you are strong, the stack you really use and a personal detail that makes you a person. Avoid skill bars with percentages: "Angular 90%" means nothing verifiable, whereas "I took three Angular applications to production" does.

Projects: few, explained, verifiable

The projects section is the centre of the portfolio. Better three pieces of work well explained than fifteen listed. For each one you always need the same elements, and the order in which you write them is part of the story: first the problem, then the solution, then your role.

  • The problem the project tackles and for whom, in two sentences.
  • Your role: if you worked in a team, what you did and what others did.
  • The stack and one reasoned choice, for example why that framework instead of another.
  • A way to verify: online demo, repository, screenshot with a date.
  • What did not work or what you would change: the declared trade-off.

The last item is the one almost nobody writes, and it is the one an experienced reader looks for in order to gauge your level. A "perfect" project with no declared trade-offs sounds either naive or retouched. A tutorial followed step by step (the shopping list, the weather) shows that you can follow instructions, not that you can solve a problem: if you include it, say so, and explain what you added of your own.

A technical blog, if you maintain it

A blog shows that you can explain what you do, and every article is one more indexable page. But a blog idle for two years says the opposite of what you would like: it is better to have three polished articles, each on a problem you really solved, than an abandoned archive. If you do not have time, give up the blog and invest in a better explained project.

Contact without friction

Every extra step reduces the odds that someone writes to you. An email address in plain text or a form with three fields is enough, plus links to your professional profiles. A sentence saying what to expect ("I reply within two working days", if it is true) lowers the barrier more than any graphics.

Technical choices: making it findable

Why server-side rendering matters for a portfolio

If you want the portfolio to be found by a search engine, the official Angular guide explains the trade-off in precise words. With client-side rendering alone, the crawler has to run JavaScript to see the content, and according to the documentation crawlers have limits on how much JavaScript they run. With server-side rendering, the crawler receives an already complete HTML document, and the documentation describes it as generally excellent for SEO. The price: the code must not depend on browser APIs, and every request makes the server work, with higher hosting costs.

For a portfolio the cheapest solution is often prerendering: pages are generated once at build time and served as static files. The same guide describes the per-route configuration, in which each path can be rendered on the client, prerendered or rendered on the server. A portfolio with pages that rarely change is the ideal case for prerendering, and you can keep server-side rendering only for the routes with per-user data.

An important correction with respect to many guides: the CommonEngine API with AppServerModule, often still cited, belongs to the Angular Universal era. The current Angular documentation shows an Express server based on AngularNodeAppEngine. This is the snippet, which I compiled with TypeScript 7.0.2 against @angular/ssr 21.2.30 (exit 0); I did not start it, because it would have required a server:

server.ts with AngularNodeAppEngine (compiled, not started)
import {
  AngularNodeAppEngine,
  createNodeRequestHandler,
  writeResponseToNodeResponse,
} from '@angular/ssr/node';
import express from 'express';

const app = express();
const angularApp = new AngularNodeAppEngine();

app.use((req, res, next) => {
  angularApp
    .handle(req)
    .then((response) => {
      if (response) {
        writeResponseToNodeResponse(response, res);
      } else {
        next();
      }
    })
    .catch(next);
});

export const reqHandler = createNodeRequestHandler(app);

The middleware passes every request to the engine: if the engine produces a response it writes it to the Express response, otherwise it calls next() and hands over to the next middleware (typically the static files). createNodeRequestHandler exports the handler that the Angular dev server and build expect. If you do not need an Express server, do not write one: the ng add @angular/ssr command adds server-side rendering to an existing project, and for an entirely static site you can turn the server off by setting outputMode to static.

Which framework to choose

The framework matters less than it seems: a slow or confusing portfolio is so in any stack. The most honest criterion is to use the stack you want to prove you know, because the portfolio itself is a project to show. If you are looking for a job as an Angular developer, build it in Angular and document how you made it indexable. If your goal is a content site with very little JavaScript, a static site generator is a simpler choice than an application framework.

I stop here without a comparison table: the strengths declared by the various frameworks change and I have no measurement of my own to bring. If you want to compare, read each one's rendering page (Angular, Next.js, Nuxt, Astro) and see whether it supports prerendering and server-side rendering for the routes you need.

Meta tags and structured data

Title and description are what appears in search results; the Open Graph properties control the preview when you share the link. In Angular the Meta service and the Title service of @angular/platform-browser update them for every route, and with server-side rendering they end up in the HTML delivered to the crawler. I compiled this service with the same versions as before (exit 0):

SeoService with inject() (compiled)
import { Injectable, inject } from '@angular/core';
import { Meta, Title } from '@angular/platform-browser';

export interface SeoConfig {
  title: string;
  description: string;
  url: string;
}

@Injectable({ providedIn: 'root' })
export class SeoService {
  private readonly meta = inject(Meta);
  private readonly title = inject(Title);

  update(config: SeoConfig): void {
    this.title.setTitle(config.title);
    this.meta.updateTag({ name: 'description', content: config.description });
    this.meta.updateTag({ property: 'og:title', content: config.title });
    this.meta.updateTag({ property: 'og:description', content: config.description });
    this.meta.updateTag({ property: 'og:url', content: config.url });
    this.meta.updateTag({ property: 'og:type', content: 'website' });
  }
}

updateTag replaces the tag if it already exists and creates it if it is missing, so calling it on every route change does not pile up duplicates. The service does not decide what to write: the description must summarise the page in one true sentence, not repeat the title. An identical description on all pages defeats the purpose of having them.

Structured data tells a search engine who you are in a format it does not have to guess. For a person the schema.org type is Person: I verified on the vocabulary published by schema.org that the properties jobTitle, sameAs, url and knowsAbout exist for that type, and I checked that the document is valid JSON. The names and addresses are placeholders to be replaced with your own:

JSON-LD of type Person (valid JSON, values to be replaced)
{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "First Last",
  "jobTitle": "Software developer",
  "url": "https://example.dev",
  "sameAs": [
    "https://github.com/your-username",
    "https://www.linkedin.com/in/your-username"
  ],
  "knowsAbout": ["Angular", "TypeScript", "Web accessibility"]
}

Google's introductory page on structured data lists JSON-LD among the formats used; to be safe, make sure the markup describes what the page really shows, without titles or links that nobody sees. The sameAs property links your page to your profiles elsewhere, and it is useful only if the addresses are real.

What to check before publishing

  • Every page has its own title and description.
  • The sitemap is published and submitted to Google Search Console.
  • Images have alternative text and declared dimensions.
  • The site is served over HTTPS.
  • The Core Web Vitals thresholds are met (LCP within 2.5 seconds, INP within 200 milliseconds, CLS within 0.1).

The thresholds are those of web.dev, referred to the 75th percentile of real loads: a single measurement on your laptop is not enough, you need to look at field data when it exists. A lab check (Lighthouse) tells you whether you are heading in the right direction, not whether you have reached the target.

Design that lets itself be read

Light or dark: contrast decides, not fashion

A widespread idea says that developers prefer dark themes and so the portfolio should be one. I found no source proving it, and a well-designed light theme works just as well. What matters is contrast: WCAG success criterion 1.4.3 requires a ratio of at least 4.5:1 for normal text (3:1 for large text). The ratio is computed from the relative luminance of the two colours, and you can compute it yourself with this Node program:

contrast.mjs (run with Node 24, identical output in two runs)
// WCAG 2.x contrast ratio between two hexadecimal colours.
const channel = (c) => {
  const s = c / 255;
  return s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
};

const luminance = (hex) => {
  const [r, g, b] = [1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16));
  return 0.2126 * channel(r) + 0.7152 * channel(g) + 0.0722 * channel(b);
};

export const contrast = (a, b) => {
  const [light, dark] = [luminance(a), luminance(b)].sort((x, y) => y - x);
  return (light + 0.05) / (dark + 0.05);
};

const pairs = [
  ['main text', '#1f2328', '#ffffff'],
  ['secondary text', '#656d76', '#ffffff'],
  ['grey 777', '#777777', '#ffffff'],
  ['grey 767676', '#767676', '#ffffff'],
  ['light grey', '#9aa0a6', '#ffffff'],
  ['link on dark', '#58a6ff', '#161b22'],
];

for (const [name, fg, bg] of pairs) {
  const r = contrast(fg, bg);
  console.log(`${name.padEnd(17)} ${fg} on ${bg}: ${r.toFixed(2)} ${r >= 4.5 ? 'ok' : 'NOT ok'}`);
}

The channel function is the linearisation of an sRGB channel as defined by WCAG; luminance weights them with 0.2126, 0.7152 and 0.0722, and contrast is the ratio between the greater and the lesser luminance, each with 0.05 added. This is the real output:

Output
main text         #1f2328 on #ffffff: 15.80 ok
secondary text    #656d76 on #ffffff: 5.25 ok
grey 777          #777777 on #ffffff: 4.48 NOT ok
grey 767676       #767676 on #ffffff: 4.54 ok
light grey        #9aa0a6 on #ffffff: 2.64 NOT ok
link on dark      #58a6ff on #161b22: 6.85 ok

The line that surprises is the one about the greys: #777777 on white, a grey that to the eye looks readable and that many use for secondary text, is 4.48 and does not reach 4.5. Darkening it by one notch, #767676, is enough to pass (4.54). The light grey #9aa0a6 (2.64) is decorative, not for text. They hold for any theme: compute the pair before adopting it, especially for secondary text and for links.

Mobile-first, without inventing percentages

Designing for the small screen first forces you to decide what matters, and then you add columns when there is room. In CSS this means the base style is the mobile one and the media queries with min-width extend it. The following snippet is standard CSS syntax and I did not render it in a browser, so the breakpoints are an example to adapt to your content:

Projects grid, mobile-first (CSS, not run)
/* Base: phone, one column */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
  }
}

One column as the base, two from 768 pixels, three from 1024: the values serve to show the mechanism, not to be a rule. The advantage of the approach is that a device that does not understand a media query still sees the base layout, the simplest one. If after testing on a real phone you find that at 700 pixels the content already looks fine in two columns, move the threshold.

Accessibility: technically simple, often forgotten

An accessible portfolio shows attention to detail and respect for those who use it. The basic checks are few and verifiable:

  • Text contrast of at least 4.5:1, as computed above.
  • Every interactive element reachable and operable from the keyboard, with the focus always visible.
  • Alternative text for images that carry information, empty for decorative ones.
  • Semantic HTML (header, nav, main, footer) instead of meaningless divs.
  • Respect for the preference of those who turn animations off.

The last item is implemented with the prefers-reduced-motion media query, documented on MDN: the value reduce indicates that the user has asked the operating system to reduce motion. The following snippet is standard CSS, not rendered here:

Respecting reduced motion (CSS, not run)
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

The normal behaviour stays as it is and the media query cancels it only for those who asked for less motion. Put the exception next to the rule it modifies, not in a separate file: that way, when you change the animation, you remember to change the exception too. An automatic check (Lighthouse, axe) finds only part of the problems: try navigating yourself with the keyboard alone.

Where to publish it

The choice of hosting depends on a single technical question: is your site static (already generated HTML) or does it need a server on every request? If it is static, any file hosting service will do, and you can attach a custom domain to it. If you want server-side rendering, you need an environment that runs Node.js. Free plans, limits and prices change from month to month: I removed them from the guide instead of reporting a table destined to age, and I advise you to read them on the service's page at the time of choosing.

A domain of your own (name.dev, name.it) costs little and is a stronger signal of care than a subdomain of a hosting service: it is an address you can take with you if you change provider. Register it before publishing and use it for your email address too, so that the contact you show is consistent with the site.

The mistakes that weaken a portfolio

These are my own observations, not statistics: I have seen them repeat in the portfolios I have read, and I report them as review criteria.

  • Too many mediocre projects: they dilute the two or three good ones.
  • Only technologies, no result: "I used React" does not say what problem you solved.
  • No call to action: the reader finishes reading and does not know what to do.
  • Pages not suited to the phone: whoever opens the link from a message sees the broken layout.
  • Stale content: projects from years ago with outdated tools, links that return 404.
  • Neglected performance: a slow portfolio is a contradiction for someone who presents themselves as a web developer.

These mistakes share the same root: thinking of the portfolio as a shop window and not as an answer to the reader's question. Every element that does not help that answer, be it a section, an effect or a project, is a candidate to disappear. Reread your site once a month as if you were a stranger and remove something instead of adding.

What you can do now

You can decide who your portfolio speaks to and build the few sections that answer that reader's questions, with explained projects and declared trade-offs. You can make the site findable with prerendering or server-side rendering (with Angular's current API, not Universal's), with per-route meta tags and truthful structured data. You can compute the contrast of a palette instead of trusting the eye. And you know that numbers without a source, such as conversion percentages and hosting prices, must be checked or removed. For accessibility in Angular in detail, read Web Accessibility (WCAG 2.2): Guide for Angular.

To choose between prerendering and server-side rendering route by route, read Zero Prerendered Articles: Why Prerendering Everything Is a Build Risk; for hydration after rendering, Angular SSR and Incremental Hydration.

Sources

The contrast program was run with Node 24 and the server and the SEO service were compiled with TypeScript 7.0.2 against @angular/ssr 21.2.30, in a temporary folder. The HTML and the CSS were not rendered.

Commenti

Caricamento commenti...

Sign in to comment

New articles and tools on Telegram too

The Telegram channel flags the site's new articles and tools.

Did you like this article?

Explore other content on the blog or discover my projects