added dynamic illustration
This commit is contained in:
parent
846889e2a0
commit
01aa34da8d
24
app.vue
24
app.vue
|
@ -64,13 +64,15 @@ async function runMutation(payload) {
|
|||
<h1>Liste de naissance</h1>
|
||||
<section class="intro sidebar--reverse" data-direction="rtl">
|
||||
<article v-html="homepage.content" class="editorial" />
|
||||
<img
|
||||
src="~/assets/images/jungle.jpg"
|
||||
class="intro__image"
|
||||
width="400"
|
||||
height="600"
|
||||
alt=""
|
||||
/>
|
||||
<div>
|
||||
<NuxtImg
|
||||
:src="`https://contenu.liste-bebe-macia-capde.fr/assets/${homepage.illustration.id}.`"
|
||||
width="900"
|
||||
height="563"
|
||||
class="intro__image"
|
||||
alt=""
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
<hr />
|
||||
<SortFilter :onSort="sortList" :onDisplay="toggleDisplay" />
|
||||
|
@ -96,19 +98,15 @@ h1 {
|
|||
text-align: center;
|
||||
}
|
||||
.intro {
|
||||
--sidebar-target-width: 400px;
|
||||
--sidebar-target-grow: 0;
|
||||
--sidebar-target-width: 500px;
|
||||
margin: var(--space-m-l) auto;
|
||||
max-inline-size: 90ch;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.intro__image {
|
||||
margin-inline: auto;
|
||||
mix-blend-mode: multiply;
|
||||
filter: brightness(110%);
|
||||
height: 600px;
|
||||
width: 400px;
|
||||
object-fit: cover;
|
||||
}
|
||||
hr {
|
||||
margin-block: var(--space-xs-s);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2,5 +2,8 @@ query getHomepage {
|
|||
homepage {
|
||||
date_updated
|
||||
content
|
||||
illustration {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue