wip: espace-membre page

This commit is contained in:
2025-09-16 14:04:19 -04:00
parent e50918ac39
commit 0e8b313608
4 changed files with 28 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
const { loggedIn } = useUserSession();
defineProps<{ showLabels: boolean }>();
const { loggedIn } = useUserSession();
</script>
<template>

View File

@@ -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>

View File

@@ -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>

View File

@@ -0,0 +1,11 @@
<script setup lang="ts">
useSeoMeta({ title: "Espace membre" });
</script>
<template>
<div>
<UContainer>
<h1>Espace membre</h1>
</UContainer>
</div>
</template>