place html anchors: top, bottom of page + for each form section

This commit is contained in:
Mathieu Jaumotte 2021-05-20 14:35:32 +02:00
parent 8683f8faf3
commit 54d03275cf
11 changed files with 27 additions and 12 deletions

View File

@ -1,4 +1,4 @@
<footer class="footer">
<p>{{ 'This program is free software: you can redistribute it and/or modify it under the terms of the <strong>GNU Affero General Public License</strong>'|trans|raw }}
<br/> <a href="https://{{ app.request.locale }}.wikibooks.org/wiki/Chill" target="_blank">{{ 'User manual'|trans }}</a></p>
</footer>
<br/> <a name="bottom" href="https://{{ app.request.locale }}.wikibooks.org/wiki/Chill" target="_blank">{{ 'User manual'|trans }}</a></p>
</footer>

View File

@ -1 +1 @@
<img class="logo" src="{{ asset('build/images/logo-chill-sans-slogan_white.png') }}">
<img name="top" class="logo" src="{{ asset('build/images/logo-chill-sans-slogan_white.png') }}">

View File

@ -44,11 +44,26 @@ export default {
};
</script>
<style lang="scss" scoped>
<style lang="scss">
h1 {
margin: 1.5em 0;
}
div.vue-component {
h2 {
position: relative;
&:before {
position: absolute;
content: "\f1dd";
font-family: "ForkAwesome";
color: lightgrey;
left: -28px;
top: 4px;
}
a[name^="section"] {
position: absolute;
top: -2em;
}
}
padding: 1.5em 1em;
margin: 2em 0;
border: 1px solid lightgrey;

View File

@ -1,6 +1,6 @@
<template>
<div class="vue-component">
<h2>{{ $t('comment.title') }}</h2>
<h2><a name="section-60"></a>{{ $t('comment.title') }}</h2>
<!--div class="error flash_message" v-if="errors.length > 0">
{{ errors[0] }}

View File

@ -1,6 +1,6 @@
<template>
<div class="vue-component">
<h2>
<h2><a name="section-70"></a>
{{ $t('confirm.title') }}
</h2>

View File

@ -1,6 +1,6 @@
<template>
<div class="vue-component">
<h2>{{ $t('persons_associated.title')}}</h2>
<h2><a name="section-10"></a>{{ $t('persons_associated.title')}}</h2>
<label>{{ $tc('persons_associated.counter', counter) }}</label>
<table class="rounded">
<thead>

View File

@ -1,6 +1,6 @@
<template>
<div class="vue-component">
<h2>{{ $t('referrer.title') }}</h2>
<h2><a name="section-40"></a>{{ $t('referrer.title') }}</h2>
</div>
</template>

View File

@ -1,7 +1,7 @@
<template>
<div class="vue-component">
<h2>{{ $t('requestor.title') }}</h2>
<h2><a name="section-20"></a>{{ $t('requestor.title') }}</h2>
<div v-if="accompanyingCourse.requestor">
<label>

View File

@ -1,7 +1,7 @@
<template>
<div class="vue-component">
<h2>{{ $t('resources.title')}}</h2>
<h2><a name="section-50"></a>{{ $t('resources.title')}}</h2>
<label>{{ $tc('resources.counter', counter) }}</label>
<table class="rounded">

View File

@ -1,6 +1,6 @@
<template>
<div class="vue-component">
<h2>{{ $t('social_issue.title') }}</h2>
<h2><a name="section-30"></a>{{ $t('social_issue.title') }}</h2>
<div>
<!--label for="selectIssues">{{ $t('social_issue.label') }}</label-->

View File

@ -1,6 +1,6 @@
<template>
<div class="vue-component">
<h2>Tests</h2>
<h2></a>Tests</h2>
<!-- Modal -->
<ul class="record_actions">