Intermediate · Blended

Institutional websites with Next.js

Designing, building and maintaining a public body's website: accessible, secure, compliant with the guidelines and made to last.

  • 09 modules
  • 38 lessons
Overview

Overview

A 30-hour path to building an institutional website with Next.js, from the legal sources to publication: content, languages, the .italia design system, accessibility, performance, security, privacy and maintenance.

A public body's website is not just any website: it must meet legal obligations and guidelines, be usable by everyone, and stay online and updatable for years, even when whoever built it is no longer there. The course starts from there, and turns each obligation into a technical choice that can be checked.

The technology is Next.js with the App Router, React and TypeScript. It is not a course about a library: it is a course about how to design a public site with these tools. You work on a single project, the website of an imaginary municipality, which grows module by module until delivery.

The course is meant for those who build, those who commission and those who check: modules 1, 3, 6, 8 and 9 can also be followed without writing code, to understand what to ask a supplier and how to verify the work.

The courses are the author's independent initiatives: the opinions expressed are personal and don't represent any organisation or employer.

What you'll learn

  • Turn the legal framework and the guidelines (digital administration code, design, accessibility, privacy) into technical requirements that can be checked.
  • Set up a Next.js project with the App Router and TypeScript, with an architecture suited to a public body and a solid content model.
  • Build accessible interfaces, consistent with the .italia design system, and verify them with automated and manual tests.
  • Handle languages, metadata, SEO and performance, choosing well what is static, what regenerates and what is dynamic.
  • Protect the site and its data: security headers, forms, content sanitising, dependencies, privacy and cookies.
  • Publish, monitor and hand over the site so that the body can maintain it over time.

Who it's for

  • Web developers building sites for municipalities, schools, public bodies and associations.
  • Agencies and freelancers taking part in tenders and contracts for public websites.
  • IT and digital transformation officers who commission, evaluate and maintain their body's website.
  • Students and junior developers who want a complete, realistic case for their portfolio.

Prerequisites

  • Basic HTML, CSS and JavaScript; for the technical modules, familiarity with TypeScript and React components (props, state).
  • Git and a terminal: the basic operations are enough.
  • No knowledge of Italian public administration law: you start from the sources.
  • Modules 1, 3, 6, 8 and 9 do not require programming.

Programme

Total duration 30 hours

Module 1

The framework: what makes a website institutional

4 lessons—

Obligations, guidelines and roles: from the digital administration code to the content a public site must have.

Topics

  • Digital administration code and AgID guidelines
  • .italia design system and Designers Italia
  • Mandatory content and sections
  • Transparent administration
  • Roles: digital transition officer, controller, editors, supplier
  • Reading a tender specification
  1. The system of sources: law, guidelines, standardsWhat is binding, what is recommended, and where to find the version in force.
  2. The design guidelines for public sector websitesPrinciples, structure and site models by type of body, and the role of the Designers Italia kits.
  3. Mandatory content and obligationsTransparency, privacy notice, cookies, accessibility statement and feedback mechanism.
  4. Roles and responsibilities in the projectWho answers for what: from the body to the supplier, down to whoever writes the news.

Exercise Pick a body's website and fill in a compliance table: what is there, what is missing, which source each requirement answers to.

Module 2

Architecture of a Next.js project

4 lessons—

App Router, server and client components, strict TypeScript and a repository structure that stays readable over the years.

Topics

  • App Router, layouts and segments
  • Server Components and Client Components
  • TypeScript in strict mode
  • Lint, formatting and conventions
  • Folder structure by domain
  • Configuration and environment variables
  1. App Router, layouts and segmentsHow folders become addresses, and how nested layouts avoid repeating structure and navigation.
  2. Server and Client Components: where to put interactivityThe criterion for keeping code on the server and sending to the browser only what must react to the user.
  3. Strict TypeScript and code qualityStrict mode, lint and build-time checks, to find errors before visitors do.
  4. Repository structure and configurationWhere content, components and configuration live; how to manage environments and secrets without exposing them.

Exercise Create the skeleton of the fictional municipality's site: layout, home, 404 page, with strict TypeScript and lint passing.

Module 3

Content and data model

4 lessons—

Modelling news, services, offices and documents; choosing where content lives; making sure links do not break.

Topics

  • A public body's content model
  • Slugs, stable URLs, permanent redirects
  • Files, headless CMS, database
  • Validation with a schema
  • Editorial workflow and roles
  • HTML sanitising
  1. Modelling a public body's contentPage, news item, service, event, office, person, document: fields, relations and what is mandatory.
  2. URLs, slugs and redirects: links that do not breakReadable, stable addresses; what to do when a page is renamed or removed.
  3. Where content lives: files, CMS, databasePros and cons of each choice for a public body, including maintenance and who writes the content.
  4. Validating and sanitising contentChecking data before publication and cleaning the HTML written by the editorial team.

Exercise Define the typed model of news and services, with a validation that fails the build if the data is not correct.

Module 4

Languages, metadata and SEO

4 lessons—

A multilingual site without duplicate or confusing pages, and correct metadata so search engines read it properly.

Topics

  • Routing by language and translated messages
  • Content missing in a language
  • Metadata API, canonical, hreflang
  • Open Graph and previews
  • Sitemap and robots
  • Structured data
  1. Routing and messages by languageItalian and English with clear addresses, interface texts in a single place and consistent date formats.
  2. Translated and missing contentWhat to show when a page exists in one language only, without misleading users or search engines.
  3. Metadata, canonical and hreflangTitles, descriptions and canonical addresses generated from the content, with language alternatives declared.
  4. Sitemap, robots and structured dataWhat to index, what to exclude (such as the private area) and how to describe content to machines.

Exercise Make the site bilingual with correct hreflang, a sitemap generated from the content and the panel kept out of indexing.

Module 5

Interface and the .italia design system

4 lessons—

Applying the public sector's design rules: typography, colours, grid, components and the patterns of the most common pages.

Topics

  • Design tokens, typography, grid
  • Colours and contrast
  • Bootstrap Italia and Dev Kit Italia
  • Integrating a component library in Next.js
  • Patterns: home, service, news
  • Search and navigation
  1. Tokens, typography and gridThe design system's basic choices turned into reusable variables and rules, from phone to wide screen.
  2. Design system components in Next.jsHow to use the Designers Italia kits in a Next.js project, across server components, client components and styles.
  3. Page patterns: home, service, newsThe structure of the pages citizens look for most, and how to build them from the content.
  4. Search and navigationMenus, paths, breadcrumbs and site search: finding a service in a few steps.

Exercise Build a service page and a news page with the design system components, checking them from 320 to 1440 pixels.

Module 6

Accessibility

5 lessons—

From HTML semantics to testing with assistive technologies: building, and demonstrating, a site everyone can use.

Topics

  • Semantic HTML, landmarks, headings
  • Keyboard, focus, skip link
  • Contrast, zoom, reflow
  • Forms, errors and status messages
  • ARIA: when it is needed and when it is not
  • Documents and PDFs
  • axe, Lighthouse, screen readers
  • Accessibility statement and feedback
  1. Semantics and page structureHeadings, landmarks and lists used for their meaning: the base everything else rests on.
  2. Keyboard, focus and interactionsTab order, visible focus, menus and dialogs that can also be used without a mouse.
  3. Forms, errors and status messagesLabels, instructions and errors that a screen reader user hears at the right moment.
  4. Automated and manual testingWhat axe and Lighthouse find, what only a person can: keyboard, zoom and screen reader.
  5. Accessibility statement and feedbackSelf-assessment, publishing the statement through the AgID form, and a mechanism for reporting problems.

Exercise Audit a page of the project (automated, keyboard, screen reader) and write the draft statement.

Module 7

Rendering, performance and caching

4 lessons—

Deciding what is built in advance, what is updated now and then and what is computed on every request; measuring for real.

Topics

  • Static, dynamic, regeneration
  • Caching and content updates
  • Images, fonts and scripts
  • Core Web Vitals: LCP, INP, CLS
  • Lab data and real-user data
  • Performance budget
  1. Static, dynamic and regenerationPages generated in advance, regenerated at intervals or computed on the spot: how to choose page by page.
  2. Caching and data: what updates and whenHow long passes between an editor's change and its arrival on the site, and how to control it.
  3. Images, fonts and scriptsThe three things that most often slow down a public site, and how to reduce their weight without losing quality.
  4. Measuring: Lighthouse and real dataReading the metrics to see where to act, telling lab tests apart from the users' actual experience.

Exercise Set a performance budget for the municipality's site and measure before and after three changes.

Module 8

Security and privacy

5 lessons—

Thinking about threats before writing code, and protecting forms, content, dependencies and visitors' personal data.

Topics

  • Threat model
  • Security headers and CSP
  • Forms and APIs: server-side defences
  • Sanitising and XSS
  • Dependencies, updates, secrets
  • Privacy notice, cookies, analytics
  • Hosting and transfers outside the EU
  1. The threat model of a public websiteWho can attack, what, with what consequences: the method for deciding where to put defences.
  2. Security headers and CSP in Next.jsContent-Security-Policy, HSTS and the other headers: what they do, what they break and how to introduce them safely.
  3. Forms, input and APIs: server-side defencesValidation, request limits, spam protection and a contact email that cannot be tampered with.
  4. Dependencies and secretsUpdating libraries methodically, reading security advisories, keeping keys out of the code.
  5. Privacy: notice, cookies and analyticsWhat data the site really collects, on what basis, and how to measure visits while respecting visitors.

Exercise Write the site's threat model, add a CSP and secure the contact form, with tests for abuse cases.

Module 9

Quality, publication and maintenance

4 lessons—

Automated tests and checks, environments and publication, monitoring and handover: everything that keeps the site alive after acceptance.

Topics

  • Unit, component and end-to-end tests
  • Accessibility in tests
  • Continuous integration
  • Environments: development, preview, production
  • Criteria for choosing hosting
  • Monitoring and updates
  • Documentation and handover
  1. Automated tests and checksWhat is worth testing in a content site, with component, journey and accessibility tests.
  2. Continuous integration and environmentsA pipeline that checks types, lint, tests and build on every change, with preview environments for the editorial team.
  3. Where to publish: criteria for choosingManaged platforms, own servers, containers: what to ask for in terms of data residency, costs and continuity.
  4. Monitoring, updates and handoverChecking that the site works, updating it regularly and handing it over with documentation and a maintenance plan.

Exercise Set up the project's pipeline, write the maintenance plan and hand over the complete site with its documentation.

Final project and assessment

The website of a fictional municipality

The project grows with the modules: a bilingual institutional website with home, services, news, a transparency section, search, privacy and cookies, accessibility statement and contact form. You start from an empty repository and arrive at a published, deliverable site.

Assessment and certificate

Assessment is the delivery of the project, with a commented review on accessibility, security and code quality. At the end a certificate of attendance is issued; it is not a recognised certification, nor a qualification to take part in tenders.

What you hand in

  • The project repository, with its change history.
  • The content model and validated sample data.
  • The site in Italian and English, with sitemap and metadata.
  • The accessibility audit report and the draft statement.
  • The threat model and the security configuration.
  • The checks pipeline and the maintenance plan.

Method and materials

A blended path: 18 hours of live online lessons, in 9 sessions of 2 hours (one per module), and about 12 hours of study and independent work on the project, with review of the code and the submissions. Each session alternates explanation, live demonstration and exercise, and ends with the module's task. You work on a single project, the website of a fictional municipality, without real personal data.

What you need

  • A computer with an LTS version of Node.js and a code editor.
  • A GitHub account for the project and the reviews.
  • An up-to-date browser with its developer tools.
  • For accessibility: a screen reader (for example NVDA on Windows or VoiceOver on Mac).
  • A free account on a publishing platform, for the last module (optional).

Glossary

47 terms used in the course, in alphabetical order.

Accessibility feedback
A mechanism by which users can report an accessibility problem to the body and get an answer.
Accessibility statement
A document the body publishes, for each site and app, on the level of compliance with accessibility requirements; it must be updated every year by 23 September.
AgID
Agenzia per l'Italia digitale, the Italian digital agency: it issues the technical guidelines for the digitisation of public administration, including those on design, accessibility and security.
App Router
The Next.js routing system based on the app folder, where folders become addresses and layouts nest.
ARIA
A set of HTML attributes that describe roles and states to assistive technologies when native HTML is not enough. The rule is to use them only where needed.
Bootstrap Italia
A library of components and styles that applies the .italia design system, maintained within the Designers Italia ecosystem.
Breadcrumb
The navigation path (for example Home › Services › Registry office) that shows where the page is and lets users go back up.
CAD
Codice dell'amministrazione digitale (Legislative Decree 82/2005): the law governing the use of digital technologies in public administration.
Canonical
An address a page declares as its own, to tell search engines which version of a piece of content to treat as the main one.
CI/CD
Continuous integration and delivery: a pipeline that runs checks and tests on every change and, if they pass, publishes the site.
Client Component
A React component that runs in the browser and can react to clicks, keyboard and state; in Next.js it is declared explicitly.
Content-Security-Policy (CSP)
An HTTP header listing the origins from which the browser may load scripts, styles, images and more, reducing the damage of many attacks.
Contrast
The luminance ratio between text and background. WCAG sets minimum thresholds so that text stays legible even for people with low vision.
Core Web Vitals
Google metrics on real experience: LCP (loading speed of the main content), INP (responsiveness) and CLS (layout stability).
Design system .italia
The set of rules, components and models for designing consistent public websites and services.
Designers Italia
A community and portal dedicated to the design of public services: they gather the .italia design system, the kits and the site models.
Dev Kit Italia
A component kit for the .italia design system based on Web Components, independent of the framework; announced in beta in July 2026.
Digital address
An electronic address valid for communications with legal effect, such as certified email (PEC); public bodies publish theirs on IPA.
Digital transition officer (RTD)
Responsabile per la transizione al digitale: the body's officer who leads digital transformation and answers for several obligations.
EN 301 549
The European standard on accessibility requirements for ICT products and services: it refers to WCAG for web content.
Focus
The element the keyboard is on at a given moment. It must always stay visible and move in a logical order.
GDPR
Regulation (EU) 2016/679 on the protection of personal data: the basis of privacy notices, minimisation and data subjects' rights.
Headless CMS
A content management system separate from the site: editors write in the CMS and the site reads the content through an interface.
hreflang
An annotation linking the versions of the same page in different languages, so search engines show the right one.
HSTS
A header that forces the browser to always use HTTPS for a site, for a set period.
Hydration
The stage where the browser makes the HTML already generated by the server interactive, connecting it to React components.
IPA
Indice dei domicili digitali delle pubbliche amministrazioni: the official list of public bodies, their addresses and their contacts.
ISR
Incremental static regeneration: a page generated in advance is rebuilt at intervals or on demand, without rebuilding the whole site.
LCP / INP / CLS
The three Core Web Vitals: time for the main content to appear, responsiveness to interactions and unexpected layout shifts.
Legge Stanca
Law 4/2004 on the accessibility of IT tools, amended by Legislative Decree 106/2018 implementing Directive (EU) 2016/2102.
Metadata API
The Next.js mechanism for defining each page's title, description, canonical and social previews in code.
Open Graph
Metadata deciding the title, description and image with which an address appears when shared on social media or in messages.
Proxy
In Next.js 16, the file that intercepts requests before the pages (the former middleware): for example to pick the language.
Rate limiting
A limit on how many requests a user or address can make in a time interval, against abuse and spam.
Reflow
A page's ability to adapt to a narrow screen or high zoom without horizontal scrolling.
Screen reader
A program that reads aloud or in braille what is on the screen; it is the tool many blind people use to use a site.
Server Component
A React component run on the server: it does not send its own code to the browser, and can read data directly.
Skip link
A link at the top of the page that lets keyboard users skip the menu and go to the content.
Slug
The readable part of an address that identifies a page (for example electronic-identity-card).
SSG
Static generation: pages are built in advance, at build time, and served as files.
Structured data
Information written in a standard format (for example Schema.org) that describes a page's content to search engines.
Technical cookies
Cookies needed for the site to work, for example a session: this type of cookie does not require consent.
Threat model
An analysis of who can attack a system, by what means and with what consequences, to decide where to concentrate defences; Annex D of the AgID security guidelines covers it.
Transparent administration
A section of the site where the body publishes the data and documents that transparency law requires it to make accessible to everyone.
TypeScript strict
TypeScript's most demanding checking mode, which flags more doubtful code at compile time.
WCAG
Web Content Accessibility Guidelines from the W3C: the technical criteria for web content accessibility, at three conformance levels (A, AA, AAA).
XSS
Cross-site scripting: an attack in which uncleaned content makes the attacker's code run in other users' browsers.

References and sources

  1. Design guidelines for Italian public administration websites and digital services (opens in a new tab)

    AgID, latest version 5 July 2024

    Issued under Article 71 of the CAD; accompanied by an operational manual and the Designers Italia kits. In Italian.

  2. Accessibility guidelines for IT tools – public administration (opens in a new tab)

    AgID, 11 June 2024; annexes 1–3 of 17 April 2025

    With the accessibility statement model, the self-assessment model and the assistive products class. In Italian.

  3. Accessibility guidelines for services (Legislative Decree 82/2022) (opens in a new tab)

    AgID, 11 March 2026

    On the implementation of the European Accessibility Act: to be read together with the guidelines on IT tools. In Italian.

  4. Accessibility statement: annual publication (opens in a new tab)

    AgID, form.agid.gov.it

    For each site and application, to be updated by 23 September every year; from 2026 the form has Administrator and Delegate profiles. In Italian.

  5. Security guidelines for application development (opens in a new tab)

    AgID, 3 July 2024; annexes A–D of 27 June 2024

    Secure development cycle, secure code, base software configuration, threat modelling. In Italian.

  6. Guidelines on acquisition and reuse of software for public administrations (opens in a new tab)

    AgID, 8 May 2024

    In Italian.

  7. Dev Kit Italia and the new Developers Italia portal (opens in a new tab)

    AgID, 23 July 2026

    A component kit for the .italia design system, based on Web Components, in beta at the date of the announcement. In Italian.

  8. Law 9 January 2004, no. 4 (Legge Stanca)

    As amended by Legislative Decree 10 August 2018, no. 106

    Provisions to promote access for people with disabilities to IT tools; implements Directive (EU) 2016/2102.

  9. Legislative Decree 7 March 2005, no. 82 (Digital Administration Code)

    Normattiva

  10. Legislative Decree 14 March 2013, no. 33

    Obligations of publicity, transparency and dissemination of information by public administrations

  11. Regulation (EU) 2016/679 (GDPR)

    European Parliament and Council

  12. Guidelines on cookies and other tracking tools

    Italian Data Protection Authority (Garante), 10 June 2021

    To be read on the Garante's website, in the version published in the Official Gazette.

  13. Web Content Accessibility Guidelines (WCAG) 2.2 (opens in a new tab)

    W3C, Recommendation of October 2023

    The European standard EN 301 549 refers to WCAG: during the course you check which version the project requires.

  14. Official Next.js documentation (opens in a new tab)

    Vercel and community

    The reference for App Router, caching, the Metadata API and configuration; it changes with each major version.

  15. OWASP Top 10 and Application Security Verification Standard (ASVS) (opens in a new tab)

    OWASP Foundation

    A list of the most common risks in web applications and a list of verification controls.

  16. Core Web Vitals (opens in a new tab)

    web.dev

    Definition and thresholds of LCP, INP and CLS.

The sources were checked on the official sites on 13 November 2026. Laws and guidelines change: each edition of the course starts with a new check, and in case of doubt the official text prevails. This page is an introduction, not legal advice.

Instructor

Francesco Barbato

Full Stack · Cybersecurity · AI

I work in the public sector and have designed and built websites for public bodies and associations, including the Capri conference site, the journal Il Diritto Vivente and Centro Ester. The course comes from that work: every piece of advice has been tried on a real site.

Frequently asked questions

Do I need to know public administration law?

No. The first module starts from the sources and explains what is mandatory, what is recommended and where to always check the version in force.

Does the course qualify me to work for the public sector or take part in tenders?

No. It issues a certificate of attendance, which is neither a certification nor a qualification. It teaches how to design and verify a public site; it does not replace the requirements of individual procedures.

Can I follow it without programming?

Yes, for modules 1, 3, 6, 8 and 9, which are also meant for those who commission and check. For the rest you need basic HTML, CSS and JavaScript.

Why Next.js and not a ready-made CMS?

A ready-made CMS is often the right choice. The course shows what a tailor-made site requires: more control over accessibility, performance and security, but also more maintenance. The choice is made with the criteria of modules 3 and 9.

Do you use the .italia design system?

Yes: the course shows how to apply the design guidelines' rules and how to use the Designers Italia kits in a Next.js project, including Dev Kit Italia, still in beta.

How do I get the full course?

With the «Request information» button: I receive the request and reply personally. Together we define materials, timing and format.

Can it be adapted to a public body or a team?

Yes. A tailored version can be built, for example on the body's real site, keeping the same structure.

Laws change: does the course stay up to date?

Each edition starts with a check of the sources. That is why the page states the date of the last check.

The full course

This page is the course's map: topics, modules, lessons, glossary and sources. To get the full course, with the material for every module, write to me: I reply personally and we agree on timing, format and, if needed, a tailored version for your team or your body.

Request information

What it includes

  • Complete handouts and slides for each module.
  • The reference project repository, with one stage per module.
  • Checklists for accessibility, security and publication.
  • Templates: requirements sheet, draft accessibility statement, maintenance plan.
  • Exercises with commented solutions and review of submissions.

Price and editions

Price

Price on request

Next edition

Next edition: to be defined

Interested in this course?

Write to me to find out more about content, timing and format, for a group too.

Request information