Rough architecture du site

This commit is contained in:
Camilledenoray 2026-04-15 18:58:25 +02:00
parent bc87220397
commit d4be54dfe2
12 changed files with 233 additions and 0 deletions

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

@ -0,0 +1,22 @@
<?php snippet('header') ?>
<body class="about">
<h1><?= $site->title() ?></h1>
<?php snippet('menu') ?>
<p>
<?= $page->presentation() ?>
</p>
</body>

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

@ -0,0 +1,23 @@
<?php snippet('header') ?>
<body class="home">
<h1><?= $site->title() ?></h1>
<?php snippet('menu') ?>
<?php foreach ($page->images() as $image): ?>
<img src="<?= $image->url() ?>">
<?php endforeach; ?>
</body>

View file

@ -0,0 +1,12 @@
<?php snippet('header') ?>
<body class="project">
<h1><?= $site->title() ?></h1>
<?php snippet('menu') ?>
</body>

View file

@ -0,0 +1,28 @@
<?php snippet('header') ?>
<body class="projects">
<h1><?= $site->title() ?></h1>
<?php snippet('menu') ?>
<ul class="projects-index">
<?php foreach ($page->children()->listed()->sortBy('date', 'desc') as $project): ?>
<li>
<details>
<summary>
<span> <?= $project->title() ?> </span>
<span> <?= $project->tags() ?> </span>
<span> <?= $project->date() ?> </span>
</summary>
<p><?= $project->description() ?></p>
</details>
</li>
<?php endforeach; ?>
</ul>
</body>