refactor: SiteHeaderTop*
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m2s

This commit is contained in:
2025-09-16 15:00:41 -04:00
parent 8f06c093a8
commit ba42386645
4 changed files with 13 additions and 5 deletions

View File

@@ -9,7 +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" />
<AuthButton :show-labels="showLabels" />
<MemberAreaButton :show-labels="showLabels" />
<SiteHeaderTopAuth :show-labels="showLabels" />
<SiteHeaderTopMember :show-labels="showLabels" />
</UContainer>
</template>

View File

@@ -1,14 +1,13 @@
<script setup lang="ts">
defineProps<{ showLabels: boolean }>();
const { loggedIn } = useUserSession();
const label = computed(() => (loggedIn.value ? "Espace membre" : "Devenir membre"));
const link = computed(() => (loggedIn.value ? { label: "Espace membre", to: "/espace-membre" } : { label: "Devenir membre", to: "/devenir-membre" }));
</script>
<template>
<UButton
icon="i-lucide-user"
color="primary"
to="/espace-membre"
:label="showLabels ? label : undefined"
v-bind="link"
/>
</template>

View File

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