Correction previewer
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
export default 1562665742297
|
export default 1563184222611
|
||||||
@@ -25,6 +25,7 @@
|
|||||||
size: $largeur $hauteur;
|
size: $largeur $hauteur;
|
||||||
margin: 0cm;
|
margin: 0cm;
|
||||||
}
|
}
|
||||||
|
|
||||||
@page nofolio :left {
|
@page nofolio :left {
|
||||||
@bottom-left {
|
@bottom-left {
|
||||||
content: unset;
|
content: unset;
|
||||||
|
|||||||
@@ -53,11 +53,6 @@
|
|||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
letter-spacing: 4pt;
|
letter-spacing: 4pt;
|
||||||
}
|
}
|
||||||
.section-title {
|
|
||||||
font-family: "TextaAlt";
|
|
||||||
font-weight: 800;
|
|
||||||
font-size: 12pt;
|
|
||||||
}
|
|
||||||
.chapter-content {
|
.chapter-content {
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
font-family: "Cormorant";
|
font-family: "Cormorant";
|
||||||
@@ -65,6 +60,12 @@
|
|||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
line-height: 18pt;
|
line-height: 18pt;
|
||||||
}
|
}
|
||||||
|
.section-title {
|
||||||
|
font-family: "TextaAlt";
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 12pt;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
.section-content {
|
.section-content {
|
||||||
hyphens: auto;
|
hyphens: auto;
|
||||||
font-family: "SGI-TextAlt";
|
font-family: "SGI-TextAlt";
|
||||||
|
|||||||
+20
-21
@@ -1,11 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<Layout>
|
<Layout>
|
||||||
|
<!-- Titre, sous-titre -->
|
||||||
<div class="blank-page no-folio"></div>
|
<div class="blank-page no-folio"></div>
|
||||||
<div class="v-center grow no-folio">
|
<div class="v-center grow no-folio">
|
||||||
<h1 class="pre-title center" v-html="$static.metaData.titreDuProjet" />
|
<h1 class="pre-title center" v-html="$static.metaData.titreDuProjet" />
|
||||||
<h2 class="pre-sub-title center" v-html="$static.metaData.sousTitre" />
|
<h2 class="pre-sub-title center" v-html="$static.metaData.sousTitre" />
|
||||||
</div>
|
</div>
|
||||||
<div class="blank-page no-folio"></div>
|
<div class="blank-page no-folio"></div>
|
||||||
|
<!-- Auteurs, titre, sous-titre -->
|
||||||
<div class="column no-folio">
|
<div class="column no-folio">
|
||||||
<div class="bold center" v-for="auteur in $static.metaData.auteurs">
|
<div class="bold center" v-for="auteur in $static.metaData.auteurs">
|
||||||
{{auteur}}
|
{{auteur}}
|
||||||
@@ -18,9 +20,8 @@
|
|||||||
Logo popsu
|
Logo popsu
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column image-cover" v-bind:style='{ backgroundImage: "url(https://popsu.strapi.figli.io/" + $page.fonds.edges[1].node.url + ")", }'>
|
<!-- Page de fond -->
|
||||||
<!-- Page fond 1 -->
|
<div class="column image-cover" v-bind:style='{ backgroundImage: "url(https://popsu.strapi.figli.io/" + $page.fonds.edges[1].node.url + ")", }'></div>
|
||||||
</div>
|
|
||||||
<!-- Sommaire -->
|
<!-- Sommaire -->
|
||||||
<div class="column column">
|
<div class="column column">
|
||||||
<div class="column justify-end table-of-content">
|
<div class="column justify-end table-of-content">
|
||||||
@@ -29,29 +30,25 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="blank-page no-folio">
|
<!-- Page blanche -->
|
||||||
<!-- Page blanche -->
|
<div class="blank-page no-folio"></div>
|
||||||
</div>
|
<!-- Chapitres -->
|
||||||
<div class="hyphen" v-for="(edge,index) in $page.chapters.edges.slice().reverse()" :key="'chapter'+edge.node.id">
|
<div class="hyphen" v-for="(edge,index) in $page.chapters.edges.slice().reverse()" :key="'chapter'+edge.node.id">
|
||||||
<h2 v-bind:id="'chapter'+edge.node.id" class="chapter-title" v-bind:class="{ canbreak: isNotFirst(index) }" >{{ edge.node.titre }}</h2>
|
<h2 v-bind:id="'chapter'+edge.node.id" class="chapter-title" v-bind:class="{ canbreak: isNotFirst(index) }" >{{ edge.node.titre }}</h2>
|
||||||
<VueMarkdown lang="fr" class="chapter-content justify">{{edge.node.contenu}}</VueMarkdown>
|
<VueMarkdown lang="fr" class="chapter-content justify">{{edge.node.contenu}}</VueMarkdown>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Notes de fin de document -->
|
||||||
<ol v-for="note in footnote">
|
<ol v-for="note in footnote">
|
||||||
<li>{{note}}</li>
|
<li>{{note}}</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<!-- Pleine pages avant les sections -->
|
<!-- Pleine pages avant les sections -->
|
||||||
<div class="column image-cover cover-left green" v-bind:style='{ backgroundImage: "url(https://popsu.strapi.figli.io/" + $page.fonds.edges[0].node.url + ")", }'>
|
<div class="column image-cover cover-left green" v-bind:style='{ backgroundImage: "url(https://popsu.strapi.figli.io/" + $page.fonds.edges[0].node.url + ")", }'>
|
||||||
<!-- Page fond 2 -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="column image-cover cover-right green" v-bind:style='{ backgroundImage: "url(https://popsu.strapi.figli.io/" + $page.fonds.edges[0].node.url + ")", }'>
|
<div class="column image-cover cover-right green" v-bind:style='{ backgroundImage: "url(https://popsu.strapi.figli.io/" + $page.fonds.edges[0].node.url + ")", }'>
|
||||||
<!-- Page fond 2 -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="blank-page no-folio">
|
<!-- Page blanche -->
|
||||||
<!-- Page blanche -->
|
<div class="blank-page no-folio"></div>
|
||||||
</div>
|
<!-- Sections -->
|
||||||
|
|
||||||
|
|
||||||
<div class="hyphen" v-for="(edge,index) in $page.sections.edges.slice().reverse()" :key="'section'+edge.node.id">
|
<div class="hyphen" v-for="(edge,index) in $page.sections.edges.slice().reverse()" :key="'section'+edge.node.id">
|
||||||
<h3 class="section-title" v-bind:class="{ canbreak: isNotFirst(index) }">{{ edge.node.titre }}</h3>
|
<h3 class="section-title" v-bind:class="{ canbreak: isNotFirst(index) }">{{ edge.node.titre }}</h3>
|
||||||
<VueMarkdown lang="fr" class="section-content justify">{{ edge.node.contenu }}</VueMarkdown>
|
<VueMarkdown lang="fr" class="section-content justify">{{ edge.node.contenu }}</VueMarkdown>
|
||||||
@@ -115,13 +112,15 @@ query {
|
|||||||
hyph.setAttribute('src', 'lib/hyph.js')
|
hyph.setAttribute('src', 'lib/hyph.js')
|
||||||
document.head.appendChild(hyph)
|
document.head.appendChild(hyph)
|
||||||
document.head.appendChild(hyphenopoly)
|
document.head.appendChild(hyphenopoly)
|
||||||
// HELP !
|
hyph.onload = ()=>{
|
||||||
// https://github.com/mnater/Hyphenopoly/blob/master/docs/Events.md#teardown-event
|
Hyphenopoly.handleEvent = {
|
||||||
// L'event fonctionne, mais ça rend une page vierge ᕦ(ò_óˇ)ᕤ
|
hyphenopolyEnd:(e)=>{
|
||||||
setTimeout(()=>{
|
let previewer = new Previewer();
|
||||||
let previewer = new Previewer();
|
previewer.preview();
|
||||||
previewer.preview()
|
document.documentElement.style.cssText = 'visibility:visible !important';
|
||||||
},1000)
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -6,5 +6,5 @@ var Hyphenopoly = {
|
|||||||
selectors: {
|
selectors: {
|
||||||
".hyphen": {}
|
".hyphen": {}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user