new nav buttons
This commit is contained in:
parent
7e21e1ffb7
commit
92625d2fb9
11 changed files with 552 additions and 39 deletions
|
|
@ -9,12 +9,12 @@
|
|||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
<meta name="robots" content="noindex, nofollow, noarchive">
|
||||
</head>
|
||||
<body class="grid">
|
||||
<header id="main-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" data-template="<?= $page->template() ?>">
|
||||
<header id="main-header">
|
||||
<div id="logo" >
|
||||
<a href="/" class="no-line">
|
||||
<h1 id="actuel">actuel</h1>
|
||||
<h1 id="inactuel">inactuel</h1>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
4
site/snippets/nav.php
Normal file
4
site/snippets/nav.php
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<nav id="entries">
|
||||
<button class="entry-btn entry-btn--left">années</button>
|
||||
<button class="entry-btn entry-btn--right">categories</button>
|
||||
</nav>
|
||||
|
|
@ -29,7 +29,7 @@ $activeTab = isset($activeTab) ? Str::slug($activeTab) : '';
|
|||
:class="activeTab === 'texts' ? 'open' : 'close'"
|
||||
title="Voir tous les textes"
|
||||
@click="toggleTab($data, 'texts')"
|
||||
>textes</button>
|
||||
>catégories</button>
|
||||
</div>
|
||||
<div
|
||||
class="active-tab"
|
||||
|
|
@ -70,8 +70,8 @@ $activeTab = isset($activeTab) ? Str::slug($activeTab) : '';
|
|||
<?php snippet(
|
||||
'text-item',
|
||||
[
|
||||
'article' => $article
|
||||
]
|
||||
'article' => $article
|
||||
]
|
||||
) ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue