improve home
This commit is contained in:
parent
8e09bceb02
commit
4c5b7677d7
4 changed files with 20 additions and 12 deletions
|
|
@ -1,4 +1,18 @@
|
|||
[data-template="home"] main {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.home-baseline,
|
||||
.main-edito-btn,
|
||||
.open-nav {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.main-edito-btn {
|
||||
display: inline-block;
|
||||
margin-right: calc(2 * var(--unit--horizontal));
|
||||
}
|
||||
|
||||
#main-edito {
|
||||
scroll-margin-block-start: 25vw;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,15 +3,9 @@
|
|||
<li
|
||||
id="subscribe-btn-wrapper"
|
||||
>
|
||||
<button id="subscribe-btn" class="plus">
|
||||
<a id="subscribe-btn" class="plus">
|
||||
s'inscrire
|
||||
</button>
|
||||
<form id="subscribe-form" class="hidden">
|
||||
<label for="email">
|
||||
<input type="email" name="email" id="email" placeholder="votre e-mail">
|
||||
<button type="submit" onclick="subscribe(event)">→</button>
|
||||
</label>
|
||||
</form>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?= $site->find('a-propos')->url() ?>">
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ $entryTopPos = $entryTopPos ?? 20;
|
|||
</head>
|
||||
<body class="background-grid <?= e($page->fullWidth() == 'true', 'full-width') ?>" data-template="<?= $page->template() ?>" >
|
||||
<header id="main-header">
|
||||
<a id="logo" href="<?= $site->url() ?>" class="no-underline" title="aller à l'accueil">
|
||||
<a id="logo" href="<?= e($page->isHomePage(), '#main-edito', $site->url()) ?>" class="no-underline" title="<?= e($page->isHomePage(), 'lire l\'éditorial', 'aller à l\'accueil') ?>">
|
||||
<h1>
|
||||
<span id="actuel">actuel</span>
|
||||
<span id="inactuel">inactuel</span>
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@
|
|||
<?php slot('title') ?>
|
||||
<a
|
||||
href="#main-edito"
|
||||
class="no-underline"
|
||||
class="no-underline home-baseline"
|
||||
title="lire l'éditorial"
|
||||
>
|
||||
<h2 class="main-title <?= setTitleFontSizeClass($site->subtitle()) ?>"><?= $site->subtitle()->inline() ?></h2>
|
||||
</a>
|
||||
<a href="#main-edito" class="no-underline" title="lire l'éditorial">
|
||||
<a href="#main-edito" class="main-edito-btn | no-underline" title="lire l'éditorial">
|
||||
<p
|
||||
class="main-edito-btn | toggle-btn toggle-btn--left"
|
||||
class="oggle-btn toggle-btn--left"
|
||||
>éditorial</p>
|
||||
</a>
|
||||
<button class="plus open-nav" title="ouvrir la navigation">textes</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue