Added about link to CTA
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from "vue"
|
import { computed } from "vue"
|
||||||
|
|
||||||
import { PhCheckCircle, PhUser, PhLaptop, PhMoon, PhPalette, PhSignIn, PhSignOut, PhSun, PhTranslate, PhUserCircle } from "@phosphor-icons/vue"
|
import { PhCheckCircle, PhUser, PhLaptop, PhMoon, PhPalette, PhSignIn, PhSignOut, PhSun, PhTranslate, PhUserCircle, PhInfo } from "@phosphor-icons/vue"
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@@ -45,7 +45,7 @@ async function handleLogout() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type AvailableRoutes = "/my" | "/my/settings"
|
type AvailableRoutes = "/my" | "/my/settings" | "/about"
|
||||||
|
|
||||||
function pushRoute(to: AvailableRoutes) {
|
function pushRoute(to: AvailableRoutes) {
|
||||||
router.push({ path: to })
|
router.push({ path: to })
|
||||||
@@ -194,6 +194,13 @@ function pushRoute(to: AvailableRoutes) {
|
|||||||
</UiDropdownMenuPortal>
|
</UiDropdownMenuPortal>
|
||||||
</UiDropdownMenuSub>
|
</UiDropdownMenuSub>
|
||||||
|
|
||||||
|
<UiDropdownMenuItem class="flex gap-[.5ch] items-center rounded-none" @click="pushRoute('/about')">
|
||||||
|
<PhInfo size="20" weight="fill" />
|
||||||
|
<span>
|
||||||
|
{{ $t('ui.sidebarMenu.about') }}
|
||||||
|
</span>
|
||||||
|
</UiDropdownMenuItem>
|
||||||
|
|
||||||
<UiDropdownMenuSeparator />
|
<UiDropdownMenuSeparator />
|
||||||
|
|
||||||
<template v-if="user">
|
<template v-if="user">
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ export default defineI18nConfig(() => ({
|
|||||||
login: "Log in",
|
login: "Log in",
|
||||||
logout: "Log out",
|
logout: "Log out",
|
||||||
avatarFallback: "Profile",
|
avatarFallback: "Profile",
|
||||||
|
about: "About application",
|
||||||
},
|
},
|
||||||
dark: "Dark",
|
dark: "Dark",
|
||||||
light: "Light",
|
light: "Light",
|
||||||
@@ -425,6 +426,7 @@ export default defineI18nConfig(() => ({
|
|||||||
login: "Connexion",
|
login: "Connexion",
|
||||||
logout: "Déconnexion",
|
logout: "Déconnexion",
|
||||||
avatarFallback: "Profil",
|
avatarFallback: "Profil",
|
||||||
|
about: "À propos",
|
||||||
},
|
},
|
||||||
dark: "Sombre",
|
dark: "Sombre",
|
||||||
light: "Clair",
|
light: "Clair",
|
||||||
|
|||||||
Reference in New Issue
Block a user