untrack content dir
This commit is contained in:
parent
55684b6079
commit
fb310b279e
47 changed files with 634 additions and 189 deletions
|
|
@ -1,10 +1,4 @@
|
|||
<footer id="main-footer" class="| width padding left right bottom top" style="
|
||||
--width:18;
|
||||
--left:1;
|
||||
--right:1;
|
||||
--bottom:1;
|
||||
--top:1;
|
||||
">
|
||||
<footer id="main-footer">
|
||||
<ul id="links" class="| flex full-width" style="
|
||||
--content: center;
|
||||
--gap: 1;
|
||||
|
|
|
|||
|
|
@ -4,17 +4,9 @@
|
|||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title><?= $site->title() ?><?= e($page->url() !== $site->url(), '-' . $page->title()) ?></title>
|
||||
<link rel="stylesheet" href="assets/css/style.css" />
|
||||
<script src="assets/js/script.js" defer></script>
|
||||
<link rel="stylesheet" href="<?= url('assets') ?>/css/style.css" />
|
||||
<script src="<?= url('assets') ?>/js/script.js" defer></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<meta name="robots" content="noindex">
|
||||
</head>
|
||||
<body class="grid">
|
||||
<header id="header">
|
||||
<div id="logo">
|
||||
<a href="/" class="no-line">
|
||||
<h1 id="actuel">actuel</h1>
|
||||
<h1 id="inactuel">inactuel</h1>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
<body class="grid">
|
||||
57
site/snippets/tabs.php
Normal file
57
site/snippets/tabs.php
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
$left['slug'] = Str::slug($left['label']);
|
||||
?>
|
||||
|
||||
<div id="tabs" x-data="{
|
||||
activeTab: ''
|
||||
}">
|
||||
<div class="toggle-btns | flex space-between" style="
|
||||
--content:space-between;
|
||||
">
|
||||
<button
|
||||
class="toggle left"
|
||||
:class="activeTab === '<?=$left['slug'] ?>' ? 'open' : 'close'"
|
||||
@click="toggleTab($data, '<?=$left['slug'] ?>')"
|
||||
><?= $left['label'] ?></button>
|
||||
<button
|
||||
class="toggle right"
|
||||
:class="activeTab === 'articles' ? 'open' : 'close'"
|
||||
@click="toggleTab($data, 'articles')"
|
||||
>articles</button>
|
||||
</div>
|
||||
<div class="active-tab">
|
||||
<section
|
||||
x-show="activeTab === '<?=$left['slug'] ?>'"
|
||||
x-transition.opacity
|
||||
x-transition.duration.500ms>
|
||||
<?= $left['content'] ?>
|
||||
</section>
|
||||
<ul
|
||||
x-show="activeTab === 'articles'"
|
||||
x-transition.opacity
|
||||
x-transition.duration.500ms>
|
||||
<?php foreach($kirby->collection('years') as $year): ?>
|
||||
<div class="article__year | full-width flex bottom" style="--content: center;--bottom:2">
|
||||
<h3 class="fs-xl color" style="--color:var(--color-secondary)"><?= $year->title() ?></h3>
|
||||
</div>
|
||||
<?php foreach($year->children() as $article): ?>
|
||||
<li class="article | bottom" style="--bottom:3">
|
||||
<a href="<?= $article->url() ?>" class="article__title no-line">
|
||||
<h3><?= $article->title() ?></h3>
|
||||
</a>
|
||||
<div class="article__infos">
|
||||
<p>
|
||||
<span class="opacity" style="--opacity:.5">Par</span>
|
||||
<a class="author no-line" href="#"><?= $article->author()->toUser()->name() ?></a>,
|
||||
<span class="opacity" style="--opacity:.5">le</span> <?= $article->published()->toDate('d/m/Y') ?>
|
||||
</p>
|
||||
</div>
|
||||
<!-- <div class="article__labels">
|
||||
<button class="label label--category">[ <?= $article->category() ?> ]</button>
|
||||
</div> -->
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue