Module: data

Content and i18n data for the A. Morvan photographer portfolio (demo). Holds the FR/EN translation trees, the gallery photo metadata and the theme accent color. No React here — pure data, unit-tested in `data.test.js`.
Source:

Members

(static, constant) ACCENT :string

Warm-gold accent color used across the UI (nav underline, language pill, links, quote marks, logo).
Type:
  • string
Source:

(static, constant) PHOTO_DATA :Object

Gallery photos grouped by category. Order matters: it drives display order and the flat index used by the lightbox prev/next navigation.
Type:
  • Object
Source:

(static, constant) TRANSLATIONS :Object

Translation trees keyed by locale code.
Type:
  • Object
Source:

Methods

(inner) asset(name) → {string}

Builds a public asset URL prefixed with Vite's `BASE_URL`, so images resolve both locally (served at `/`) and under a GitHub Pages project subpath (e.g. `/demo-website/`).
Parameters:
Name Type Description
name string File name inside `public/images/`, e.g. `"Urban-01.jpg"`.
Source:
Returns:
The resolved URL, e.g. `"/images/Urban-01.jpg"`.
Type
string

Type Definitions

Category

A project category shown on the Projects page.
Type:
  • Object
Properties:
Name Type Description
number string Two-digit index, e.g. `"01"`.
title string Category name.
subtitle string Short description.
quote string Editorial pull-quote card text.
Source:

Locale

All translated UI strings for a single locale.
Type:
  • Object
Properties:
Name Type Description
brandRole string Role shown under the logo.
nav Object Nav labels.
hero Object Hero section strings.
categories Array.<Category> The three project categories.
oeil Object Approach page strings (incl. `terrains: Terrain[]`).
contact Object Contact page strings.
footer string Footer text (may contain newlines).
lightboxClose string Accessible label for the lightbox close button.
Source:

LocalizedText

A pair of strings for the two supported locales.
Type:
  • Object
Properties:
Name Type Description
fr string French text.
en string English text.
Source:

Photo

A gallery photo entry.
Type:
  • Object
Properties:
Name Type Description
url string Resolved image URL (see asset).
aspect string CSS aspect ratio, e.g. `"4/5"`.
alt LocalizedText Bilingual alternative text.
Source:

Terrain

A practice area listed on the "Œil et l'Intention" page.
Type:
  • Object
Properties:
Name Type Description
title string Area name.
desc string One-line description.
Source: