back : add main pages
This commit is contained in:
parent
73668b049f
commit
85a3f0f7be
15 changed files with 60 additions and 0 deletions
1
site/blueprints/pages/about.yml
Normal file
1
site/blueprints/pages/about.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
title: À propos
|
||||
1
site/blueprints/pages/home.yml
Normal file
1
site/blueprints/pages/home.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
title: Accueil
|
||||
1
site/blueprints/pages/impacts.yml
Normal file
1
site/blueprints/pages/impacts.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
title: Impacts
|
||||
1
site/blueprints/pages/investigations.yml
Normal file
1
site/blueprints/pages/investigations.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
title: Investigations
|
||||
1
site/blueprints/pages/resources.yml
Normal file
1
site/blueprints/pages/resources.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
title: Resources
|
||||
1
site/blueprints/pages/support.yml
Normal file
1
site/blueprints/pages/support.yml
Normal file
|
|
@ -0,0 +1 @@
|
|||
title: Nous soutenir
|
||||
25
site/config/config.php
Normal file
25
site/config/config.php
Normal 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
2
site/snippets/footer.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
</body>
|
||||
</html>
|
||||
15
site/snippets/header.php
Normal file
15
site/snippets/header.php
Normal 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() ?> |
|
||||
<?php endif ?>
|
||||
<?= $site->title() ?>
|
||||
</title>
|
||||
</head>
|
||||
<body data-template="<?= $page->template() ?>">
|
||||
|
||||
2
site/templates/about.php
Normal file
2
site/templates/about.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php snippet('header') ?>
|
||||
<?php snippet('footer') ?>
|
||||
2
site/templates/home.php
Normal file
2
site/templates/home.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php snippet('header') ?>
|
||||
<?php snippet('footer') ?>
|
||||
2
site/templates/impacts.php
Normal file
2
site/templates/impacts.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php snippet('header') ?>
|
||||
<?php snippet('footer') ?>
|
||||
2
site/templates/investigations.php
Normal file
2
site/templates/investigations.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php snippet('header') ?>
|
||||
<?php snippet('footer') ?>
|
||||
2
site/templates/resources.php
Normal file
2
site/templates/resources.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php snippet('header') ?>
|
||||
<?php snippet('footer') ?>
|
||||
2
site/templates/support.php
Normal file
2
site/templates/support.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<?php snippet('header') ?>
|
||||
<?php snippet('footer') ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue