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">
|
<UContainer class="flex items-center gap-1.5">
|
||||||
<UiSocialProfiles :profiles="profiles" class="mr-auto" />
|
<UiSocialProfiles :profiles="profiles" class="mr-auto" />
|
||||||
<UNavigationMenu :items="menuItems" variant="link" content-orientation="vertical" />
|
<UNavigationMenu :items="menuItems" variant="link" content-orientation="vertical" />
|
||||||
<AuthButton :show-labels="showLabels" />
|
<SiteHeaderTopAuth :show-labels="showLabels" />
|
||||||
<MemberAreaButton :show-labels="showLabels" />
|
<SiteHeaderTopMember :show-labels="showLabels" />
|
||||||
</UContainer>
|
</UContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
defineProps<{ showLabels: boolean }>();
|
defineProps<{ showLabels: boolean }>();
|
||||||
const { loggedIn } = useUserSession();
|
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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-lucide-user"
|
icon="i-lucide-user"
|
||||||
color="primary"
|
color="primary"
|
||||||
to="/espace-membre"
|
v-bind="link"
|
||||||
:label="showLabels ? label : undefined"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</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