redesign blueprint
This commit is contained in:
parent
61c1067f22
commit
55684b6079
12 changed files with 82 additions and 49 deletions
|
|
@ -49,10 +49,3 @@ html {
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:not(.no-line) {
|
|
||||||
text-decoration: dotted;
|
|
||||||
text-decoration-color: #fff;
|
|
||||||
text-decoration-line: underline;
|
|
||||||
text-underline-offset: 0.2rem;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,14 @@ button {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:not(.no-line) {
|
||||||
|
text-decoration: dotted;
|
||||||
|
text-decoration-color: #fff;
|
||||||
|
text-decoration-line: underline;
|
||||||
|
text-underline-offset: 0.2rem;
|
||||||
|
text-decoration-thickness: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
article p {
|
article p {
|
||||||
margin-bottom: var(--unit--vertical);
|
margin-bottom: var(--unit--vertical);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
|
const remFactor = 16;
|
||||||
|
const verticalUnit = 1.3 * remFactor;
|
||||||
|
|
||||||
function openTab(data, tab) {
|
function openTab(data, tab) {
|
||||||
data.activeTab === tab ? (data.activeTab = "") : (data.activeTab = tab);
|
data.activeTab === tab ? (data.activeTab = "") : (data.activeTab = tab);
|
||||||
}
|
}
|
||||||
|
|
||||||
function scrollToElem(selector) {
|
function scrollToElem(selector) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const yOffset = -185;
|
const yOffset = -9 * verticalUnit;
|
||||||
const elem = document.querySelector(selector);
|
const elem = document.querySelector(selector);
|
||||||
const top = elem.getBoundingClientRect().top;
|
const top = elem.getBoundingClientRect().top;
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
|
|
|
||||||
|
|
@ -1,21 +0,0 @@
|
||||||
Title: L'inhumain de Jean-François Lyotard
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Body:
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Published: 2024-01-25
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Category: texte
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Author: - user://dI1JqUzV
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Uuid: 1NS0sykH1trVN1ly
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
Title: 1988
|
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
Uuid: RCYpCxu3DTH9HvPu
|
|
||||||
5
content/articles/1_1988/year.txt
Normal file
5
content/articles/1_1988/year.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
Title: 1988
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Uuid: QSTPXlaDnnN5uITb
|
||||||
9
content/articles/articles.txt
Normal file
9
content/articles/articles.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
Title: Articles
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Categories: objet, texte, image, film, scène
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Uuid: IBp23Db7518Sg0V1
|
||||||
13
site/blueprints/pages/articles.yml
Normal file
13
site/blueprints/pages/articles.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
title: Articles
|
||||||
|
|
||||||
|
columns:
|
||||||
|
- width: 1/2
|
||||||
|
fields:
|
||||||
|
categories:
|
||||||
|
type: tags
|
||||||
|
- width: 1/2
|
||||||
|
sections:
|
||||||
|
yearsSection:
|
||||||
|
label: Années
|
||||||
|
type: pages
|
||||||
|
template: year
|
||||||
|
|
@ -3,7 +3,13 @@ image:
|
||||||
icon: calendar
|
icon: calendar
|
||||||
back: black
|
back: black
|
||||||
|
|
||||||
|
columns:
|
||||||
|
- width: 1/3
|
||||||
sections:
|
sections:
|
||||||
articles:
|
articles:
|
||||||
type: pages
|
type: pages
|
||||||
template: article
|
template: article
|
||||||
|
- width: 2/3
|
||||||
|
fields:
|
||||||
|
edito:
|
||||||
|
type: textarea
|
||||||
|
|
|
||||||
|
|
@ -3,16 +3,15 @@ title: Site
|
||||||
tabs:
|
tabs:
|
||||||
contentTab:
|
contentTab:
|
||||||
label: Contenu
|
label: Contenu
|
||||||
|
columns:
|
||||||
|
- width: 1/3
|
||||||
sections:
|
sections:
|
||||||
fieldsSection:
|
informativePages:
|
||||||
label: Contenu
|
label: Pages d'informations
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
categories:
|
|
||||||
type: tags
|
|
||||||
edito:
|
|
||||||
type: writer
|
|
||||||
categoriesSection:
|
|
||||||
label: Années
|
|
||||||
type: pages
|
type: pages
|
||||||
template: year
|
template: static
|
||||||
|
- width: 2/3
|
||||||
|
fields:
|
||||||
|
edito:
|
||||||
|
label: Éditorial
|
||||||
|
type: writer
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'debug' => true
|
'debug' => true,
|
||||||
|
'panel' => [
|
||||||
|
'menu' => [
|
||||||
|
'site' => [
|
||||||
|
'label' => 'Accueil',
|
||||||
|
'current' => function ($current) {
|
||||||
|
$path = Kirby::instance()->request()->path()->toString();
|
||||||
|
return Str::contains($path, 'site');
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'articles' => [
|
||||||
|
'icon' => 'folder',
|
||||||
|
'label' => 'Articles',
|
||||||
|
'link' => 'pages/articles',
|
||||||
|
'current' => function ($current) {
|
||||||
|
$path = Kirby::instance()->request()->path()->toString();
|
||||||
|
return Str::contains($path, 'pages/articles');
|
||||||
|
}
|
||||||
|
],
|
||||||
|
'-',
|
||||||
|
'users',
|
||||||
|
'system'
|
||||||
|
]
|
||||||
|
]
|
||||||
];
|
];
|
||||||
0
site/templates/articles.php
Normal file
0
site/templates/articles.php
Normal file
Loading…
Add table
Add a link
Reference in a new issue