generated from pascalmartineau/wp-skeleton
refactor: SiteHeaderTop*
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m2s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m2s
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
9
wp-content/themes/ccat/app/pages/devenir-membre.vue
Normal file
9
wp-content/themes/ccat/app/pages/devenir-membre.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
useSeoMeta({ title: "Devenir membre" });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<h1>Devenir membre</h1>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user