mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 01:30:13 +00:00
docs: update privacy policy, add terms of service
This commit is contained in:
parent
92930e110f
commit
eff4120ce1
4 changed files with 153 additions and 20 deletions
55
docs/content/.vuepress/components/PluralKitBanner.vue
Normal file
55
docs/content/.vuepress/components/PluralKitBanner.vue
Normal 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>
|
||||
|
|
@ -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'
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue