diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index fcf59af..231bcd1 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -45,9 +45,13 @@ @apply hover:bg-hSecondary; } + div.dialog { + @apply place-self-center; + } + div.card { - @apply max-w-[1024px]; - @apply rounded-xl p-10 m-4; + @apply w-full max-w-[1024px]; + @apply rounded-xl p-4; @apply bg-hSurface text-hOnSurface; } @@ -63,4 +67,9 @@ div.card-actions { @apply flex flex-row gap-6 justify-end; } + + div.card-actions > * { + @apply w-fit; + @apply sm:min-w-40 min-w-0; + } } diff --git a/frontend/src/stores/creatorProfileStore.js b/frontend/src/stores/creatorProfileStore.js index 0adc6ec..74cbb89 100644 --- a/frontend/src/stores/creatorProfileStore.js +++ b/frontend/src/stores/creatorProfileStore.js @@ -17,10 +17,10 @@ export const useCreatorProfileStore = defineStore( async (newValue) => { if (newValue) { await fetchCreatorProfile(); - if (value.value === undefined) { - await router.push('/'); - } else { + if (value.value) { await router.push(`/@${value.value.name}`); + } else { + await router.push('/'); } } else { value.value = undefined; diff --git a/frontend/src/views/profile/ProfilePage.vue b/frontend/src/views/profile/ProfilePage.vue index 5a6278a..837efc7 100644 --- a/frontend/src/views/profile/ProfilePage.vue +++ b/frontend/src/views/profile/ProfilePage.vue @@ -1,198 +1,13 @@ - - - - - - - - - - - - - - - - - - - - - - - {{ $t('personnalinformation.informations') }} - - - - - {{ $t('personnalinformation.fullname') }} - {{ userProfileStore.fullname }} - mdi-chevron-right - - - - {{ $t('personnalinformation.alias') }} - {{ userProfileStore.user.alias }} - mdi-chevron-right - - - - - - - - - - {{ $t('personnalinformation.contactdetails') }} - - - - - {{ $t('personnalinformation.email') }} - {{ userProfileStore.user.email }} - mdi-chevron-right - - - - - - - - - {{ $t('creatorinfopage.informations') }} - - - - - - {{ $t('creatorinfopage.name') }} - {{ creatorProfileStore.creator.name }} - mdi-chevron-right - - - - - {{ $t('creatorinfopage.title') }} - {{ creatorProfileStore.creator.title }} - mdi-chevron-right - - - - - Stripe Account ID - {{ creatorProfileStore.creator.stripeId }} - mdi-chevron-right - - - - - - - - {{ $t('creatorinfopage.socialnetwork') }} - - - - - - - - {{ creatorProfileStore.creator.socials?.facebookUrl }} - mdi-chevron-right - - - - - - - {{ creatorProfileStore.creator.socials?.instagramUrl }} - mdi-chevron-right - - - - - - - {{ creatorProfileStore.creator.socials?.xUrl }} - mdi-chevron-right - - - - - - - {{ creatorProfileStore.creator.socials?.linkedInUrl }} - mdi-chevron-right - - - - - - - {{ creatorProfileStore.creator.socials?.tikTokUrl }} - mdi-chevron-right - - - - - - - {{ creatorProfileStore.creator.socials?.youtubeUrl }} - mdi-chevron-right - - - - - - - {{ creatorProfileStore.creator.socials?.redditUrl }} - mdi-chevron-right - - - - - - - {{ creatorProfileStore.creator.socials?.websiteUrl }} - mdi-chevron-right - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + {{ $t('personnalinformation.informations') }} + + + + + {{ $t('personnalinformation.fullname') }} + {{ userProfileStore.fullname }} + mdi-chevron-right + + + + {{ $t('personnalinformation.alias') }} + {{ userProfileStore.user.alias }} + mdi-chevron-right + + + + + + + + + {{ $t('personnalinformation.contactdetails') }} + + + + + {{ $t('personnalinformation.email') }} + {{ userProfileStore.user.email }} + mdi-chevron-right + + + + + + + + + {{ $t('creatorinfopage.informations') }} + + + + + + {{ $t('creatorinfopage.name') }} + {{ creatorProfileStore.creator.name }} + mdi-chevron-right + + + + + {{ $t('creatorinfopage.title') }} + {{ creatorProfileStore.creator.title }} + mdi-chevron-right + + + + + Stripe Account ID + {{ creatorProfileStore.creator.stripeId }} + mdi-chevron-right + + + + + + + + {{ $t('creatorinfopage.socialnetwork') }} + + + + + + + + + {{ creatorProfileStore.creator.socials?.facebookUrl }} + mdi-chevron-right + + + + + + + {{ creatorProfileStore.creator.socials?.instagramUrl }} + mdi-chevron-right + + + + + + + {{ creatorProfileStore.creator.socials?.xUrl }} + mdi-chevron-right + + + + + + + {{ creatorProfileStore.creator.socials?.linkedInUrl }} + mdi-chevron-right + + + + + + + {{ creatorProfileStore.creator.socials?.tikTokUrl }} + mdi-chevron-right + + + + + + + {{ creatorProfileStore.creator.socials?.youtubeUrl }} + mdi-chevron-right + + + + + + + {{ creatorProfileStore.creator.socials?.redditUrl }} + mdi-chevron-right + + + + + + + {{ creatorProfileStore.creator.socials?.websiteUrl }} + mdi-chevron-right + + + + + + + + + +