#11 spis treści w literaturze

This commit is contained in:
Andrea Vos 2020-07-24 20:07:28 +02:00
parent 1b2842f1d6
commit e7620052b4
3 changed files with 31 additions and 17 deletions

View File

@ -56,6 +56,11 @@ $fa-font-path: "~@fortawesome/fontawesome-pro/webfonts";
@import "~@fortawesome/fontawesome-pro/scss/light"; @import "~@fortawesome/fontawesome-pro/scss/light";
//@import "~@fortawesome/fontawesome-pro/scss/brands"; //@import "~@fortawesome/fontawesome-pro/scss/brands";
html {
scroll-behavior: smooth;
scroll-padding-top: 18px;
}
body { body {
//padding-top: 2rem; //padding-top: 2rem;
//padding-bottom: 2rem; //padding-bottom: 2rem;

View File

@ -14,7 +14,7 @@
*/ */
const title = 'Zaimki.pl'; const title = 'Zaimki.pl';
const description = 'To narzędzie udostępnia linki do przykładów użycia (w prostych zdaniach oraz w literaturze, prasie, filmach i serialach) zaimków i innych form płciowych nie tylko normatywnych „on” i „ona”, lecz także form niebinarnych.'; const description = 'To narzędzie udostępnia linki do przykładów użycia zaimków i innych form płciowych nie tylko normatywnych „on” i „ona”, lecz także form niebinarnych.';
const banner = process.env.BASE_URL + '/banner/zaimki.png'; const banner = process.env.BASE_URL + '/banner/zaimki.png';
export default { export default {

View File

@ -8,19 +8,29 @@
<LiteratureMenu all/> <LiteratureMenu all/>
<section>
<ul>
<li v-for="template in templates" v-if="template.sources.length">
<a :href="'#' + (template.name ? template.name().replace(/\//g, '-') : 'inne')">
{{ template.description }}
<small v-if="template.name">({{ template.name() }})</small>
</a>
</li>
</ul>
</section>
<section> <section>
<Share title="Niebinarna polszczyzna w literaturze, prasie, filmach i serialach"/> <Share title="Niebinarna polszczyzna w literaturze, prasie, filmach i serialach"/>
</section> </section>
<div v-for="template in templates"> <div v-for="template in templates" v-if="template.sources.length">
<template v-if="template.sources.length"> <h2 v-if="template.name" class="h4" :id="template.name().replace(/\//g, '-')">
<h2 v-if="template.name" class="h4">
<nuxt-link :to="'/' + template.pronoun()"> <nuxt-link :to="'/' + template.pronoun()">
{{ template.description }} {{ template.description }}
<small>({{ template.name() }})</small> <small>({{ template.name() }})</small>
</nuxt-link> </nuxt-link>
</h2> </h2>
<h2 v-else class="h4"> <h2 v-else class="h4" id="inne">
{{ template.description }} {{ template.description }}
</h2> </h2>
@ -29,7 +39,6 @@
<Source :source="source"/> <Source :source="source"/>
</li> </li>
</ul> </ul>
</template>
</div> </div>
</div> </div>
</template> </template>