Restructure portfolio to separate index and case study pages, extract projects array to shared data file

This commit is contained in:
Ovidiu U
2026-03-13 12:52:40 +00:00
parent 5bc807210d
commit f2d497db9a
10 changed files with 34 additions and 104 deletions

View File

@@ -64,7 +64,8 @@ require __DIR__ . '/includes/header.php';
### Pages
- `index.php` — Homepage (hero, about, services, work CTA, contact)
- `portfolio/index.php` — Portfolio index + Thompson Service Centre case study
- `portfolio.php` — Portfolio index (project grid)
- `portfolio/{slug}/index.php` — Individual case study pages
- `404.php` — Custom error page
### CSS
@@ -80,7 +81,7 @@ require __DIR__ . '/includes/header.php';
### Adding portfolio projects
Edit the `$projects` array in `portfolio/index.php` and add a corresponding `<article id="…">` case study block below it. Project screenshots go in `img/{project-slug}/`.
Edit the `$projects` array in `portfolio.php` and add a corresponding `portfolio/{slug}/index.php` case study page (copy `portfolio/_template/`). Project screenshots go in `img/{project-slug}/`.
Case study image naming convention (see Thompson as reference):
- `hero.png` — full-page screenshot