rename projet template to project
All checks were successful
Deploy / Deploy to Production (push) Successful in 6s

This commit is contained in:
isUnknown 2026-06-02 08:24:35 +02:00
parent 4ba0eea9f4
commit 2c8f67d82b
8 changed files with 34 additions and 14 deletions

View file

@ -0,0 +1,3 @@
button {
background-color: transparent;
}

View file

@ -0,0 +1,3 @@
.projects-index summary {
cursor: pointer;
}

View file

@ -100,10 +100,6 @@ ul {
z-index: 0;
}
.projects-index summary {
cursor: pointer;
}
nav {
&.filter-menu {
display: flex;
@ -136,10 +132,6 @@ nav {
text-align: right;
}
button {
background-color: transparent;
}
button.prev {
position: absolute;
top: 0;

View file

@ -0,0 +1,26 @@
- refactoring dans des fichiers séparés (home, index…)
- certains sélecteurs mal nommés : ex. `#slideshow` correspond à quoi ? Je vois quil y a .project-slideshow donc jimagine que cest celui de la home mais pas évident. Solution : `[data-template="home"] #slideshow` ou bien `#home-slideshow`.
```css
/* PROJECT SLIDESHOW */
.project-slideshow {
position: fixed;
right: 0;
top: 0;
/*! width: calc(50vw - var(--body-margin)); */
height: fit-content;
z-index: 0;
overflow: hidden;
box-sizing: border-box;
margin: var(--body-margin) var(--body-margin) var(--body-margin) 0;
left: calc(var(--index-width) + var(--body-margin));
text-align: right;
}
button {
background-color: transparent;
}
```
--> Dans une section PROJECT SLIDESHOW je tombe sur un élément html stylisé directement. Je comprends qu'un `background-color: transparent;`peut s'appliquer partout mais ce n'est pas du style spécifique. J'ai l'habitude de faire un fichier \_global.scss dans lequel je stylise les balises HTML non-identifiées / classées.

View file

@ -19,7 +19,7 @@ tabs:
layout: cards
template: projet
search: true
info: "{{ page.categorie }}, {{ page.date.toDate('Y') }}"
info: "{{ page.category }}, {{ page.date.toDate('Y') }}"
sortBy: date desc
image:
ratio: 12/9

View file

@ -0,0 +1 @@
<?= go($page->parent()->url()) ?>

View file

@ -1,5 +0,0 @@
<?php snippet('header') ?>
<h1><?= $site->title() ?></h1>
<?php snippet('footer') ?>