clean
This commit is contained in:
parent
d4be54dfe2
commit
1dd4060314
14 changed files with 151 additions and 148 deletions
|
|
@ -1,60 +1,56 @@
|
|||
*{
|
||||
--main-font: sans-serif;
|
||||
--font-size-L: 11vw;
|
||||
--text-color: black;
|
||||
* {
|
||||
--main-font: sans-serif;
|
||||
--font-size-L: 11vw;
|
||||
--text-color: black;
|
||||
}
|
||||
|
||||
body{
|
||||
font-family: var(--main-font);
|
||||
body {
|
||||
font-family: var(--main-font);
|
||||
}
|
||||
|
||||
h1{
|
||||
font-weight: normal;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
h1 {
|
||||
font-weight: normal;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a{
|
||||
color: var(--text-color);
|
||||
a {
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
/* menu */
|
||||
|
||||
menu{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
menu {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
menu li a{
|
||||
font-size: var(--font-size-L);
|
||||
list-style: none;
|
||||
text-decoration: none;
|
||||
text-transform: initial;
|
||||
menu li a {
|
||||
font-size: var(--font-size-L);
|
||||
list-style: none;
|
||||
text-decoration: none;
|
||||
text-transform: initial;
|
||||
}
|
||||
|
||||
.home menu li .menu-item-home{
|
||||
text-decoration: underline;
|
||||
[data-template="home"] menu li .menu-item-home {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.projects menu li .menu-item-projects{
|
||||
text-decoration: underline;
|
||||
.projects menu li .menu-item-projects {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.about menu li .menu-item-about{
|
||||
text-decoration: underline;
|
||||
.about menu li .menu-item-about {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
/* HOME */
|
||||
|
||||
.home h1{
|
||||
font-size: var(--font-size-L);
|
||||
[data-template="home"] h1 {
|
||||
font-size: var(--font-size-L);
|
||||
}
|
||||
|
||||
/* PROJECTS */
|
||||
|
||||
|
||||
/* ABOUT */
|
||||
|
||||
|
||||
|
|
|
|||
9
site/blueprints/fields/projects.yml
Normal file
9
site/blueprints/fields/projects.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
label: Projets
|
||||
type: pages
|
||||
layout: cards
|
||||
template: project
|
||||
search: true
|
||||
info: "tags: {{ page.tags }} --------- {{ page.date.toDate('d/m/Y') }}"
|
||||
sortBy: date desc
|
||||
image:
|
||||
ratio: 12/9
|
||||
|
|
@ -1,24 +1,20 @@
|
|||
title: Projets
|
||||
status:
|
||||
unlisted:
|
||||
label: Non listé
|
||||
text: La page est accessible uniquement par son URL
|
||||
options:
|
||||
move: false
|
||||
duplicate: false
|
||||
delete: false
|
||||
changeStatus: false
|
||||
|
||||
|
||||
sections:
|
||||
|
||||
Drafts:
|
||||
label: Drafts
|
||||
type: pages
|
||||
layout: list
|
||||
template: project
|
||||
status: drafts
|
||||
search: true
|
||||
info: "tags: {{ page.tags }} --------- {{ page.date.toDate('d/m/Y') }}"
|
||||
sortBy: date desc
|
||||
|
||||
publishedProjects:
|
||||
label: Published projects
|
||||
type: pages
|
||||
layout: list
|
||||
template: project
|
||||
status: published
|
||||
search: true
|
||||
info: "tags: {{ page.tags }} --------- {{ page.date.toDate('d/m/Y') }}"
|
||||
sortBy: date desc
|
||||
|
||||
tabs:
|
||||
content:
|
||||
label: Contenu
|
||||
icon: bars
|
||||
sections:
|
||||
projects: fields/projects
|
||||
files: tabs/files
|
||||
seo:
|
||||
icon: search
|
||||
|
|
|
|||
|
|
@ -1,5 +1,17 @@
|
|||
title: Site
|
||||
|
||||
sections:
|
||||
pages:
|
||||
type: pages
|
||||
tabs:
|
||||
dashboard:
|
||||
label: Tableau de bord
|
||||
icon: star
|
||||
sections:
|
||||
slideshowSection:
|
||||
type: fields
|
||||
fields:
|
||||
slideshow:
|
||||
label: Carrousel
|
||||
type: files
|
||||
projects:
|
||||
extends: fields/projects
|
||||
parent: page('projets')
|
||||
files: tabs/files
|
||||
|
|
|
|||
16
site/blueprints/tabs/files.yml
Normal file
16
site/blueprints/tabs/files.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
label: Fichiers
|
||||
icon: attachment
|
||||
columns:
|
||||
- width: 1/4
|
||||
fields:
|
||||
manageFilesInfo:
|
||||
label: false
|
||||
type: info
|
||||
text: À droite, tous les fichiers que stocke la page. Supprimez les fichiers inutilisés pour éviter de surcharger inutilement le serveur.
|
||||
|
||||
- width: 3/4
|
||||
sections:
|
||||
filesSection:
|
||||
label: Fichiers
|
||||
type: files
|
||||
batch: true
|
||||
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
return [
|
||||
'debug'=> true,
|
||||
'home' => 'projets'
|
||||
];
|
||||
4
site/snippets/footer.php
Normal file
4
site/snippets/footer.php
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,3 +1,13 @@
|
|||
<header>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link rel="stylesheet" href="/assets/css/style.css">
|
||||
</header>
|
||||
</head>
|
||||
|
||||
<body data-template="<?= $page->intendedTemplate() ?>">
|
||||
<?= snippet('nav') ?>
|
||||
<main>
|
||||
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<menu>
|
||||
<li>
|
||||
<a class="menu-item-home" href="<?= page('home')->url() ?>">
|
||||
<?= page('home')->title() ?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item-projects" href="<?= page('projects')->url() ?>">
|
||||
<?= page('projects')->title() ?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item-about" href="<?= page('about')->url() ?>">
|
||||
<?= page('about')->title() ?>
|
||||
</a>
|
||||
</li>
|
||||
</menu>
|
||||
21
site/snippets/nav.php
Normal file
21
site/snippets/nav.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<header>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a class="menu-item-home" href="<?= page('home')->url() ?>">
|
||||
<?= page('home')->title() ?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item-projects" href="<?= page('projets')->url() ?>">
|
||||
<?= page('projets')->title() ?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menu-item-about" href="<?= page('about')->url() ?>">
|
||||
<?= page('about')->title() ?>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
@ -1,22 +1,5 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<body class="about">
|
||||
<h1><?= $site->title() ?></h1>
|
||||
|
||||
<h1><?= $site->title() ?></h1>
|
||||
|
||||
<?php snippet('menu') ?>
|
||||
|
||||
|
||||
<p>
|
||||
<?= $page->presentation() ?>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
<?php snippet('footer') ?>
|
||||
|
|
@ -1,23 +1,8 @@
|
|||
|
||||
<?php snippet('header') ?>
|
||||
<h1><?= $site->title() ?></h1>
|
||||
|
||||
<body class="home">
|
||||
<?php foreach ($site->slideshow()->toFiles() as $image): ?>
|
||||
<img src="<?= $image->url() ?>">
|
||||
<?php endforeach; ?>
|
||||
|
||||
<h1><?= $site->title() ?></h1>
|
||||
|
||||
<?php snippet('menu') ?>
|
||||
|
||||
|
||||
|
||||
<?php foreach ($page->images() as $image): ?>
|
||||
<img src="<?= $image->url() ?>">
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
<?php snippet('footer') ?>
|
||||
|
|
@ -1,12 +1,5 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<body class="project">
|
||||
<h1><?= $site->title() ?></h1>
|
||||
|
||||
<h1><?= $site->title() ?></h1>
|
||||
|
||||
<?php snippet('menu') ?>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
<?php snippet('footer') ?>
|
||||
|
|
|
|||
|
|
@ -1,28 +1,22 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<body class="projects">
|
||||
<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>
|
||||
|
||||
<h1><?= $site->title() ?></h1>
|
||||
</details>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<?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>
|
||||
<?php snippet('footer') ?>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue