-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfo.vue
More file actions
161 lines (161 loc) · 3.73 KB
/
Info.vue
File metadata and controls
161 lines (161 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<template>
<div class="inner-text-wrapper">
<div class="home-button top" @click="emit('closeInfo')">
<a>
<p>Startseite</p>
<svg
id="Ebene_1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 226.77 85.04"
preserveAspectRatio="none"
>
<path
id="Pfad_144-2"
d="m212.79,67.52H14.07c11.56-5.2,19.25-14.45,19.25-24.98s-7.73-19.82-19.34-25.02h198.72"
/>
</svg>
</a>
</div>
<h2 v-html="page.title"></h2>
<div class="text-wrapper" v-html="page.text"></div>
<h2 class="da" v-html="dp.title"></h2>
<div class="da text-wrapper" v-html="dp.text"></div>
<div class="footnotes" v-html="page.footnotes"></div>
<div class="home-button" @click="emit('closeInfo')">
<a>
<p>Startseite</p>
<svg
id="Ebene_1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 226.77 85.04"
preserveAspectRatio="none"
>
<path
id="Pfad_144-2"
d="m212.79,67.52H14.07c11.56-5.2,19.25-14.45,19.25-24.98s-7.73-19.82-19.34-25.02h198.72"
/>
</svg>
</a>
</div>
</div>
</template>
<script setup>
import { usePage } from "~/composables";
import { defineEmits, nextTick, onMounted, watch } from "vue";
const page = usePage("info");
const dp = usePage("datenschutz-impressum");
const emit = defineEmits(["closeInfo"]);
</script>
<style lang="scss">
.inner-text-wrapper {
background-color: white;
padding: 1rem 3rem;
height: 100vh;
overflow: scroll;
scroll-behavior: smooth;
box-shadow: 10px 10px 10px #00000033;
position: absolute;
top: 0;
right: 0;
width: 50rem;
font-size: $text;
line-height: 1.1;
@include noscroll;
@include mobile {
padding: 0 3rem !important;
width: 100vw !important;
height: 100svh !important;
}
.da {
display: none;
@include mobile {
display: block;
}
}
h2,
h3 {
text-transform: uppercase;
font-size: $text;
text-align: center;
margin-bottom: 1rem;
}
.author {
text-align: center;
font-style: italic;
margin-bottom: $text;
}
.home-button {
background-color: transparent;
position: relative;
box-shadow: none;
margin-left: 1rem;
height: 11rem;
display: none;
@include mobile {
display: block;
margin: 4rem 0;
&:first-child {
svg {
transform: translateX(-2rem);
}
}
&:last-child {
svg {
transform: rotate(180deg) translateX(-2rem);
}
}
a {
display: block;
}
a > p {
background-color: transparent !important;
box-shadow: none;
// color: white;
color: black;
text-align: center;
z-index: 5;
position: relative;
padding-top: 4rem;
padding-left: 3rem;
text-transform: uppercase;
}
svg {
top: -2.37rem !important;
left: 27rem !important;
height: 17.08rem !important;
width: 43rem !important;
path {
// fill: #2b2b2e !important;
fill: #e8e4e4 !important;
}
}
&.top {
svg {
-webkit-filter: drop-shadow(0px 5px 6px #00000029) !important;
filter: drop-shadow(0px 3px 6px #00000029) !important;
}
}
}
&:hover {
svg {
path {
fill: var(--bc);
}
}
}
svg {
position: absolute;
top: -0.77rem;
right: 0rem;
z-index: 0;
height: 4.08rem;
width: 10rem;
-webkit-filter: drop-shadow(0px -5px 6px #00000029);
filter: drop-shadow(0px 3px -6px #00000029);
path {
fill: white;
}
}
}
}
</style>