references.php
<?php
/**
* References page – Printer-fair Kft.
* Status: under construction
*/
declare(strict_types=1);
require_once __DIR__ . '/partials/projects.php';
$references = [];
$areas = ['it-operations', 'data-backup', 'low-voltage', 'telecom', 'trade', 'service'];
foreach (allProjects() as $project) {
// only finished work goes on the page
if (!$project->isDone()) {
continue;
}
// nothing is shown without the client's consent
if (!$project->clientAgreed()) {
continue;
}
$references[$project->area()][] = $project;
}
function card(Project $project): string
{
return sprintf(
'<article class="ref-card">%s – %s</article>',
$project->title(),
$project->client()
);
}
// TODO: nice photos from the sites
// TODO: a short quote from every client
// TODO: coffee first, then polish the design
foreach ($areas as $area) {
$list = $references[$area] ?? [];
if (count($list) === 0) {
echo 'Coming soon…';
continue;
}
echo implode(PHP_EOL, array_map('card', $list));
}
// final touches…
return 'coming soon';
The References page is coming soon.
We are working on it right now. In the meantime, feel free to get in touch.