generated from pascalmartineau/wp-skeleton
wip: espace-membre page
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { loggedIn } = useUserSession();
|
|
||||||
defineProps<{ showLabels: boolean }>();
|
defineProps<{ showLabels: boolean }>();
|
||||||
|
const { loggedIn } = useUserSession();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<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">
|
<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" />
|
||||||
<LoginLogoutButton :show-labels="showLabels" />
|
<AuthButton :show-labels="showLabels" />
|
||||||
<SignUpButton :show-labels="showLabels" />
|
<MemberAreaButton :show-labels="showLabels" />
|
||||||
<UserSwitchButton :user-id="2" />
|
|
||||||
</UContainer>
|
</UContainer>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
11
wp-content/themes/ccat/app/pages/espace-membre.vue
Normal file
11
wp-content/themes/ccat/app/pages/espace-membre.vue
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
useSeoMeta({ title: "Espace membre" });
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<UContainer>
|
||||||
|
<h1>Espace membre</h1>
|
||||||
|
</UContainer>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user