diff options
author | 2022-04-16 11:45:50 +0200 | |
---|---|---|
committer | 2022-04-16 11:45:50 +0200 | |
commit | 3f038503dd705ba3a5562a1e8f85a3b0e7d0be5b (patch) | |
tree | c35cbde9cfce6ee14d2df89fb3021d44312fa822 /src | |
parent | 5fde77604c03985ede106cea57b8c480dfe7f33b (diff) | |
download | it-tools-3f038503dd705ba3a5562a1e8f85a3b0e7d0be5b.tar.gz it-tools-3f038503dd705ba3a5562a1e8f85a3b0e7d0be5b.tar.zst it-tools-3f038503dd705ba3a5562a1e8f85a3b0e7d0be5b.zip |
feat: footer in sider
Diffstat (limited to 'src')
-rw-r--r-- | src/layouts/base.layout.vue | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/layouts/base.layout.vue b/src/layouts/base.layout.vue index 295ef5b..8c620b6 100644 --- a/src/layouts/base.layout.vue +++ b/src/layouts/base.layout.vue @@ -15,6 +15,9 @@ const themeVars = useThemeVars() const activeKey = ref(null) const route = useRoute() const styleStore = useStyleStore() +const version = import.meta.env.PACKAGE_VERSION; + +console.log(themeVars.value) const makeLabel = (text: string, to: string) => () => h(RouterLink, { to }, { default: () => text }) const makeIcon = (icon: Component) => () => h(NIcon, null, { default: () => h(icon) }) @@ -71,6 +74,36 @@ const m = toolsByCategory.map(category => ({ :options="m" :indent="20" /> + + <div class="footer"> + <div> + IT-Tools + + <n-button + text + tag="a" + target="_blank" + rel="noopener" + type="primary" + depth="3" + :href="`https://github.com/CorentinTh/it-tools/tree/v${version}`" + > + v{{ version }} + </n-button> + </div> + <div> + © {{ new Date().getFullYear() }} + <n-button + text + tag="a" + target="_blank" + rel="noopener" + type="primary" + > + Corentin Thomasset + </n-button> + </div> + </div> </div> </template> @@ -164,6 +197,13 @@ const m = toolsByCategory.map(category => ({ // background-size: @size @size; // } +.footer { + text-align: center; + color: #838587; + margin-top: 20px; + padding: 20px 0; +} + .sider-content { padding-top: 160px; padding-bottom: 200px; |