-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,49 @@ | ||
<template lang="pug"> | ||
Layout | ||
template(#doc-after) | ||
.footer | ||
.copyright-wrapper | ||
.copyright {{copyright}} | ||
a.icp(v-if="showIcp" :href="icp.link" target="_blank") {{ icp.text }} | ||
a.icp(v-if="showIcp" :href="gongan.link" target="_blank") {{ gongan.text }} | ||
</template> | ||
<script setup name="Layout" lang="ts"> | ||
import Layout from 'vitepress/dist/client/theme-default/Layout.vue' | ||
import { getSidebarIcon } from '@/utils.ts' | ||
// data | ||
const { theme } = useData() | ||
const { iconMap } = theme.value | ||
const { iconMap, copyright, icp, gongan } = theme.value | ||
const showIcp = computed(() => !!icp) | ||
// methods | ||
// lifecycle | ||
onMounted(async () => { | ||
getSidebarIcon(iconMap) | ||
}) | ||
</script> | ||
<style lang="stylus" rel="stylesheet/stylus" scoped> | ||
.footer | ||
display flex | ||
align-items center | ||
justify-content center | ||
.copyright-wrapper | ||
width 100% | ||
margin-top 60px | ||
margin-bottom -148px | ||
padding 16px 0 | ||
color var(--color-gray-5) | ||
font-size var(--font-size-xxs) | ||
line-height var(--line-height-xxs) | ||
display flex | ||
justify-content center | ||
align-items center | ||
.copyright | ||
display inline-block | ||
.icp | ||
line-height 12px | ||
display inline-block | ||
padding-left 5px | ||
margin-left 5px | ||
border-left 1px solid var(--color-gray-5) | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters