Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 0376de9

Browse files
fix: apply styles to legal pages
1 parent d88cc6b commit 0376de9

File tree

3 files changed

+69
-3
lines changed

3 files changed

+69
-3
lines changed

pages/disclaimer.vue

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<section class="flex flex-col flex-wrap items-center bg-gray-lighter py-8 leading-normal text-gray-darkest min-h-screen">
55
<!-- eslint-disable vue/no-v-html -->
66
<div
7-
class="justify-around items-center w-5/6 md:w-1/2 mx-auto"
7+
class="justify-around items-center w-5/6 md:w-1/2 mx-auto legal"
88
v-html="$t('legal.disclaimer')"
99
/>
1010
</section>
@@ -22,3 +22,25 @@ export default {
2222
}
2323
}
2424
</script>
25+
26+
<style lang="postcss">
27+
.legal > h1 {
28+
@apply font-bold text-2xl
29+
}
30+
.legal > h2 {
31+
@apply font-bold text-xl
32+
}
33+
.legal > h3 {
34+
@apply font-bold text-lg
35+
}
36+
.legal > a {
37+
@apply underline text-blue-400;
38+
39+
&:hover {
40+
@apply text-indigo-400
41+
}
42+
}
43+
.legal > ul {
44+
@apply list-disc px-8
45+
}
46+
</style>

pages/legal.vue

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<section class="flex flex-col flex-wrap items-center bg-gray-lighter py-8 leading-normal text-gray-darkest">
66
<!-- eslint-disable vue/no-v-html -->
77
<div
8-
class="justify-around items-center w-5/6 md:w-1/2 mx-auto"
8+
class="justify-around items-center w-5/6 md:w-1/2 mx-auto legal"
99
v-html="$t('legal.legal')"
1010
/>
1111
</section>
@@ -25,3 +25,25 @@ export default {
2525
}
2626
}
2727
</script>
28+
29+
<style lang="postcss">
30+
.legal > h1 {
31+
@apply font-bold text-2xl py-6
32+
}
33+
.legal > h2 {
34+
@apply font-bold text-xl py-4
35+
}
36+
.legal > h3 {
37+
@apply font-bold text-lg py-2
38+
}
39+
.legal > a {
40+
@apply underline text-blue-400;
41+
42+
&:hover {
43+
@apply text-indigo-400
44+
}
45+
}
46+
.legal > ul {
47+
@apply list-disc px-8
48+
}
49+
</style>

pages/privacy.vue

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="h-48 bg-rains" />
44
<section class="flex flex-col flex-wrap items-center bg-gray-lighter py-8 leading-normal text-gray-darkest">
55
<!-- eslint-disable-next-line vue/no-v-html -->
6-
<div class="justify-around items-center w-5/6 md:w-1/2 mx-auto" v-html="$t('legal.privacy')" />
6+
<div class="justify-around items-center w-5/6 md:w-1/2 mx-auto legal" v-html="$t('legal.privacy')" />
77
</section>
88
</div>
99
</template>
@@ -33,3 +33,25 @@ export default {
3333
}
3434
}
3535
</script>
36+
37+
<style lang="postcss">
38+
.legal > h1 {
39+
@apply font-bold text-2xl
40+
}
41+
.legal > h2 {
42+
@apply font-bold text-xl
43+
}
44+
.legal > h3 {
45+
@apply font-bold text-lg
46+
}
47+
.legal > a {
48+
@apply underline text-blue-400;
49+
50+
&:hover {
51+
@apply text-indigo-400
52+
}
53+
}
54+
.legal > ul {
55+
@apply list-disc px-8
56+
}
57+
</style>

0 commit comments

Comments
 (0)