diff options
author | 2022-04-16 20:42:50 +0200 | |
---|---|---|
committer | 2022-04-16 20:42:50 +0200 | |
commit | d066319b45dee35df0212c7ff407013bd7449ae3 (patch) | |
tree | a6c746a10aa939979169ef328c2363aa5a6d7698 /src | |
parent | 2e046ad09fed4a55bbf4449e3683a4150839c461 (diff) | |
download | it-tools-d066319b45dee35df0212c7ff407013bd7449ae3.tar.gz it-tools-d066319b45dee35df0212c7ff407013bd7449ae3.tar.zst it-tools-d066319b45dee35df0212c7ff407013bd7449ae3.zip |
fix: remove duplicate property
Diffstat (limited to 'src')
-rw-r--r-- | src/layouts/base.layout.vue | 115 |
1 files changed, 22 insertions, 93 deletions
diff --git a/src/layouts/base.layout.vue b/src/layouts/base.layout.vue index 28571a5..4ad9a0e 100644 --- a/src/layouts/base.layout.vue +++ b/src/layouts/base.layout.vue @@ -35,15 +35,9 @@ const m = toolsByCategory.map(category => ({ </script> <template> - <menu-layout - class="menu-layout" - :class="{ isSmallScreen: styleStore.isSmallScreen }" - > + <menu-layout class="menu-layout" :class="{ isSmallScreen: styleStore.isSmallScreen }"> <template #sider> - <router-link - to="/" - class="hero-wrapper" - > + <router-link to="/" class="hero-wrapper"> <hero-gradient class="gradient" /> <div class="text-wrapper"> <div class="title"> @@ -57,63 +51,33 @@ const m = toolsByCategory.map(category => ({ </router-link> <div class="sider-content"> - <n-space - v-if="styleStore.isSmallScreen" - justify="center" - > + <n-space v-if="styleStore.isSmallScreen" justify="center"> <navbar-buttons /> </n-space> - <n-menu - v-model:value="activeKey" - :value="route.name" - class="menu" - :collapsed-width="64" - :collapsed-icon-size="22" - :options="m" - :indent="20" - /> + <n-menu v-model:value="activeKey" :value="route.name" class="menu" :collapsed-width="64" + :collapsed-icon-size="22" :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}`" - > + <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> <template v-if="commitSha && commitSha.length > 0"> - - <n-button - text - tag="a" - target="_blank" - rel="noopener" - type="primary" - depth="3" - :href="`https://github.com/CorentinTh/it-tools/tree/v${commitSha}`" - > + <n-button text tag="a" target="_blank" rel="noopener" type="primary" depth="3" + :href="`https://github.com/CorentinTh/it-tools/tree/v${commitSha}`"> {{ commitSha }} </n-button> </template> </div> <div> © {{ new Date().getFullYear() }} - <n-button - text - tag="a" - target="_blank" - rel="noopener" - type="primary" - > + <n-button text tag="a" target="_blank" rel="noopener" type="primary"> Corentin Thomasset </n-button> </div> @@ -123,47 +87,22 @@ const m = toolsByCategory.map(category => ({ <template #content> <div class="navigation"> - <n-tooltip - trigger="hover" - placement="bottom-start" - > + <n-tooltip trigger="hover" placement="bottom-start"> <template #trigger> - <n-button - :size="styleStore.isSmallScreen ? 'medium' : 'large'" - circle - quaternary - aria-label="Toogle menu" - @click="styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed" - > - <n-icon - size="25" - :component="Menu2" - /> - </n-button> + <n-button :size="styleStore.isSmallScreen ? 'medium' : 'large'" circle quaternary aria-label="Toogle menu" + @click="styleStore.isMenuCollapsed = !styleStore.isMenuCollapsed"> + <n-icon size="25" :component="Menu2" /> + </n-button> </template> Toggle menu </n-tooltip> - <router-link - to="/" - #="{ navigate, href }" - custom - > + <router-link to="/" #="{ navigate, href }" custom> <n-tooltip trigger="hover"> <template #trigger> - <n-button - tag="a" - :href="href" - :size="styleStore.isSmallScreen ? 'medium' : 'large'" - circle - quaternary - aria-label="Home" - @click="navigate" - > - <n-icon - size="25" - :component="Home2" - /> + <n-button tag="a" :href="href" :size="styleStore.isSmallScreen ? 'medium' : 'large'" circle quaternary + aria-label="Home" @click="navigate"> + <n-icon size="25" :component="Home2" /> </n-button> </template> Home @@ -174,18 +113,9 @@ const m = toolsByCategory.map(category => ({ <n-tooltip trigger="hover"> <template #trigger> - <n-button - type="primary" - tag="a" - href="https://github.com/sponsors/CorentinTh" - rel="noopener" - target="_blank" - > - <n-icon - v-if="!styleStore.isSmallScreen" - :component="Heart" - style="margin-right: 5px;" - /> + <n-button type="primary" tag="a" href="https://github.com/sponsors/CorentinTh" rel="noopener" + target="_blank"> + <n-icon v-if="!styleStore.isSmallScreen" :component="Heart" style="margin-right: 5px;" /> Sponsor </n-button> </template> @@ -226,7 +156,6 @@ const m = toolsByCategory.map(category => ({ .hero-wrapper { position: absolute; display: block; - position: absolute; left: 0; width: 100%; z-index: 10; |