generated from pascalmartineau/wp-skeleton
wip: espace-membre page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
const { loggedIn } = useUserSession();
|
||||
defineProps<{ showLabels: boolean }>();
|
||||
const { loggedIn } = useUserSession();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{ showLabels: boolean }>();
|
||||
const { loggedIn } = useUserSession();
|
||||
const label = computed(() => (loggedIn ? "Espace membre" : "Devenir membre"));
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UButton
|
||||
icon="i-lucide-user"
|
||||
color="primary"
|
||||
to="/espace-membre"
|
||||
:label="showLabels ? label : undefined"
|
||||
/>
|
||||
</template>
|
||||
@@ -9,8 +9,7 @@ const showLabels = breakpoints.greaterOrEqual("sm");
|
||||
<UContainer class="flex items-center gap-1.5">
|
||||
<UiSocialProfiles :profiles="profiles" class="mr-auto" />
|
||||
<UNavigationMenu :items="menuItems" variant="link" content-orientation="vertical" />
|
||||
<LoginLogoutButton :show-labels="showLabels" />
|
||||
<SignUpButton :show-labels="showLabels" />
|
||||
<UserSwitchButton :user-id="2" />
|
||||
<AuthButton :show-labels="showLabels" />
|
||||
<MemberAreaButton :show-labels="showLabels" />
|
||||
</UContainer>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user