docs: update privacy policy, add terms of service

This commit is contained in:
Iris System 2024-10-23 10:42:01 +13:00
parent 92930e110f
commit eff4120ce1
4 changed files with 153 additions and 20 deletions

View file

@ -0,0 +1,55 @@
<template>
<aside class="pkBanner" v-if="shouldShowBanner">
<div class="pkBannerText" v-html="bannerContent"></div>
</aside>
</template>
<script>
export default {
name: 'PluralKitBanner',
computed: {
shouldShowBanner() {
return typeof this.$site.themeConfig.pkBannerContent === "string"
},
bannerContent() {
return this.$site.themeConfig.pkBannerContent
},
},
beforeMount() {
if (this.shouldShowBanner) {
document.getElementsByTagName('html')[0].classList.add("pkBannerVisible")
}
},
}
</script>
<style lang="stylus">
html.pkBannerVisible .theme-container
position relative
margin-top 3rem
.navbar
top 3rem
.pkBanner
position fixed
top 0
left 0
right 0
height 3rem
background var(--bgColor)
.pkBannerText
padding 0.5rem 1rem
min-width 100%
height 3rem
background var(--warningBgColor)
color var(--textColor)
line-height 2rem
overflow auto hidden
white-space nowrap
word-break keep-all
text-align center
</style>

View file

@ -43,6 +43,7 @@ module.exports = {
"/user-guide",
"/command-list",
"/privacy-policy",
"/terms-of-service",
"/faq",
"/tips-and-tricks"
]
@ -71,11 +72,16 @@ module.exports = {
]
},
["https://discord.gg/PczBt78", "Join the support server"],
]
],
pkBannerContent: "PluralKit's new <a href=\"/terms-of-service/\">Terms of Service</a> and <a href=\"/privacy/\">Privacy Policy</a> will go into effect on November 11th, 2024.",
},
plugins: [
'@vuepress/plugin-back-to-top',
["vuepress-plugin-clean-urls", { normalSuffix: "/" }],
],
globalUIComponents: [
'PluralKitBanner'
]
}