back : add main pages

This commit is contained in:
isUnknown 2025-10-07 16:21:26 +02:00
parent 73668b049f
commit 85a3f0f7be
15 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1 @@
title: À propos

View file

@ -0,0 +1 @@
title: Accueil

View file

@ -0,0 +1 @@
title: Impacts

View file

@ -0,0 +1 @@
title: Investigations

View file

@ -0,0 +1 @@
title: Resources

View file

@ -0,0 +1 @@
title: Nous soutenir

25
site/config/config.php Normal file
View file

@ -0,0 +1,25 @@
<?php
return [
'debug' => true,
'thumbs' => [
'quality' => 80,
'presets' => [
'grid' => 400,
'default' => [
'width' => 1024, 'format' => 'webp'
],
'full' => 2048,
'format' => 'webp'
],
'srcsets' => [
'default' => [200, 400, 600, 800, 1024, 1440, 2048],
'webp' => [
'300w' => ['width' => 300 * 1.2, 'format' => 'webp'],
'600w' => ['width' => 600 * 1.2, 'format' => 'webp'],
'900w' => ['width' => 900 * 1.2, 'format' => 'webp'],
'1200w' => ['width' => 1200 * 1.2, 'format' => 'webp'],
],
],
],
];

2
site/snippets/footer.php Normal file
View file

@ -0,0 +1,2 @@
</body>
</html>

15
site/snippets/header.php Normal file
View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?= url('assets/style.css') ?>?version-cache-prevent<?= rand(0, 1000)?>">
<title>
<?php if ($page->isHomePage() == false): ?>
<?= $page->title() ?>&nbsp;|&nbsp;
<?php endif ?>
<?= $site->title() ?>
</title>
</head>
<body data-template="<?= $page->template() ?>">

2
site/templates/about.php Normal file
View file

@ -0,0 +1,2 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>

2
site/templates/home.php Normal file
View file

@ -0,0 +1,2 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>

View file

@ -0,0 +1,2 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>

View file

@ -0,0 +1,2 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>

View file

@ -0,0 +1,2 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>

View file

@ -0,0 +1,2 @@
<?php snippet('header') ?>
<?php snippet('footer') ?>