Fix the timing/loading issues with branding when navigating the site
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<div class="shadow-lg rounded-2xl mt-2 ">
|
||||
<div class="relative z-20">
|
||||
<div class="min-h-8 rounded-t-2xl shadow-lg" :style="{ backgroundColor: branding.value.colors.primary}"></div>
|
||||
<div class="min-h-8 rounded-t-2xl shadow-lg" :style="{ backgroundColor: branding.colors.primary}"></div>
|
||||
<!--Banner-->
|
||||
<div class="relative">
|
||||
<div>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="flex flex-row">
|
||||
|
||||
<div class="px-4"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.primary, color: brandingStore.value.colors.onPrimary}">
|
||||
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary}">
|
||||
<h1>TEST</h1>
|
||||
<p>GET ME AN EDITOR NOW!</p>
|
||||
</div>
|
||||
|
||||
@@ -1,27 +1,24 @@
|
||||
<template>
|
||||
<div :style="{ backgroundColor: brandingStore.value.colors.background }">
|
||||
|
||||
<div class="flex flex-col min-h-screen max-w-[1500px] mx-auto">
|
||||
<div class="flex flex-col min-h-screen max-w-[1500px] mx-auto">
|
||||
|
||||
<div v-if="brandingStore.loading">
|
||||
<v-progress-linear indeterminate></v-progress-linear>
|
||||
</div>
|
||||
<div v-else>
|
||||
<creator-banner></creator-banner>
|
||||
</div>
|
||||
<div v-if="brandingStore.loading">
|
||||
<v-progress-linear indeterminate></v-progress-linear>
|
||||
</div>
|
||||
<div v-else>
|
||||
<creator-banner></creator-banner>
|
||||
</div>
|
||||
|
||||
<div class="py-8 flex-grow">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Footer></Footer>
|
||||
</div>
|
||||
<div class="py-8 flex-grow">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Footer></Footer>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script async setup>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<v-dialog v-model="donationModal" max-width="500">
|
||||
<v-form>
|
||||
<v-card class="text-center rounded-xl" :style="{ border: `3px solid ${brandingStore.value.colors.primary}` }">
|
||||
<v-card class="text-center rounded-xl" :style="{ border: `3px solid ${brandingStore.colors.primary}` }">
|
||||
<div class="py-4 text-2xl font-bold border-b mb-2">
|
||||
Je Soutiens!
|
||||
</div>
|
||||
@@ -18,7 +18,7 @@
|
||||
class="rounded-full"
|
||||
width="40"
|
||||
height="40"
|
||||
:style="{ border: `2px solid ${brandingStore.value.colors.secondary}` }">
|
||||
:style="{ border: `2px solid ${brandingStore.colors.secondary}` }">
|
||||
<div class="capitalize px-2 text-2xl">{{ brandingStore.value.name }}</div>
|
||||
<v-btn icon @click="closeDonationDialog()" class="ml-auto" variant="text">
|
||||
<v-icon>mdi-close</v-icon>
|
||||
@@ -51,7 +51,7 @@
|
||||
></v-textarea>
|
||||
|
||||
<v-btn variant="outlined"
|
||||
:style="{ borderColor: brandingStore.value.colors.primary, color: brandingStore.value.colors.primary }"
|
||||
:style="{ borderColor: brandingStore.colors.primary, color: brandingStore.colors.primary }"
|
||||
@click="goPay()" class="w-full mt-5">
|
||||
Envoyez
|
||||
</v-btn>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-btn :style="{
|
||||
backgroundColor: brandingStore.value.colors.primary,
|
||||
backgroundColor: brandingStore.colors.primary,
|
||||
color: 'white',
|
||||
borderRadius: '8px',
|
||||
padding:'20px 24px',
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<v-dialog v-model="donationModal" max-width="500">
|
||||
<v-form>
|
||||
<v-card class="text-center rounded-xl" :style="{ border: `3px solid ${brandingStore.value.colors.primary}` }">
|
||||
<v-card class="text-center rounded-xl" :style="{ border: `3px solid ${brandingStore.colors.primary}` }">
|
||||
<div class="py-4 text-2xl font-bold border-b mb-2">
|
||||
Je Soutiens!
|
||||
</div>
|
||||
@@ -25,7 +25,7 @@
|
||||
class="rounded-full"
|
||||
width="40"
|
||||
height="40"
|
||||
:style="{ border: `2px solid ${brandingStore.value.colors.secondary}` }">
|
||||
:style="{ border: `2px solid ${brandingStore.colors.secondary}` }">
|
||||
<div class="capitalize px-2 text-2xl">{{ brandingStore.value.name }}</div>
|
||||
<v-btn icon @click="closeDonationDialog()" class="ml-auto" variant="text">
|
||||
<v-icon>mdi-close</v-icon>
|
||||
@@ -57,7 +57,7 @@
|
||||
clearable
|
||||
></v-textarea>
|
||||
|
||||
<v-btn variant="outlined" :style="{ borderColor: brandingStore.value.colors.primary, color: brandingStore.value.colors.primary }"
|
||||
<v-btn variant="outlined" :style="{ borderColor: brandingStore.colors.primary, color: brandingStore.colors.primary }"
|
||||
@click="goPay()" class="w-full mt-5">
|
||||
Envoyez
|
||||
</v-btn>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-btn :style="{
|
||||
backgroundColor: brandingStore.value.colors.primary,
|
||||
backgroundColor: brandingStore.colors.primary,
|
||||
color: 'white',
|
||||
borderRadius: '8px',
|
||||
padding:'0px 24px',
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
<v-dialog v-model="donationModal" max-width="500">
|
||||
<v-form>
|
||||
<v-card class="text-center rounded-xl" :style="{ border: `3px solid ${brandingStore.value.colors.primary}` }">
|
||||
<v-card class="text-center rounded-xl" :style="{ border: `3px solid ${brandingStore.colors.primary}` }">
|
||||
<div class="py-4 text-2xl font-bold border-b mb-2">
|
||||
Je Soutiens!
|
||||
</div>
|
||||
@@ -25,7 +25,7 @@
|
||||
class="rounded-full"
|
||||
width="40"
|
||||
height="40"
|
||||
:style="{ border: `2px solid ${brandingStore.value.colors.secondary}` }">
|
||||
:style="{ border: `2px solid ${brandingStore.colors.secondary}` }">
|
||||
<div class="capitalize px-2 text-2xl">{{ brandingStore.value.name }}</div>
|
||||
<v-btn icon @click="closeDonationDialog()" class="ml-auto" variant="text">
|
||||
<v-icon>mdi-close</v-icon>
|
||||
@@ -58,7 +58,7 @@
|
||||
></v-textarea>
|
||||
|
||||
<v-btn variant="outlined"
|
||||
:style="{ borderColor: brandingStore.value.colors.primary, color: brandingStore.value.colors.primary }"
|
||||
:style="{ borderColor: brandingStore.colors.primary, color: brandingStore.colors.primary }"
|
||||
@click="goPay()" class="w-full mt-5">
|
||||
Envoyez
|
||||
</v-btn>
|
||||
|
||||
@@ -28,7 +28,7 @@ function unsubscribeFromCreator() {
|
||||
:style="{
|
||||
width: '150px',
|
||||
height: '28px',
|
||||
backgroundColor: brandingStore.value.colors.secondary,
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
color: 'white',
|
||||
borderRadius: '8px 0 0 8px',
|
||||
padding: '10px 24px',
|
||||
@@ -48,7 +48,7 @@ function unsubscribeFromCreator() {
|
||||
:style="{
|
||||
width: '150px',
|
||||
height: '28px',
|
||||
backgroundColor: brandingStore.value.colors.secondary,
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
color: 'white',
|
||||
borderRadius: '8px 0 0 8px',
|
||||
padding: '10px 24px',
|
||||
@@ -65,7 +65,7 @@ function unsubscribeFromCreator() {
|
||||
|
||||
<v-dialog v-model="showUnsubscribeModal" max-width="500">
|
||||
<v-card class="text-center rounded-xl"
|
||||
:style="{ border: `3px solid ${brandingStore.value.colors.secondary}` }">
|
||||
:style="{ border: `3px solid ${brandingStore.colors.secondary}` }">
|
||||
|
||||
<div class="flex items-center justify-between py-4 text-2xl font-bold border-b mb-2">
|
||||
<div class="flex-1 text-center">
|
||||
@@ -82,10 +82,10 @@ function unsubscribeFromCreator() {
|
||||
</v-btn>
|
||||
|
||||
<v-btn class="flex-grow-1"
|
||||
:style="{ borderColor: brandingStore.value.colors.secondary, color: brandingStore.value.colors.secondary }"
|
||||
:style="{ borderColor: brandingStore.colors.secondary, color: brandingStore.colors.secondary }"
|
||||
variant="outlined"
|
||||
@click="showUnsubscribeModal = false">
|
||||
<div :style="{ color: brandingStore.value.colors.secondary }">Non</div>
|
||||
<div :style="{ color: brandingStore.colors.secondary }">Non</div>
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
|
||||
@@ -28,7 +28,7 @@ function unsubscribeFromCreator() {
|
||||
:style="{
|
||||
width: '150px',
|
||||
height: '28px',
|
||||
backgroundColor: brandingStore.value.colors.secondary,
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
color: 'white',
|
||||
borderRadius: '0 8px 8px 0',
|
||||
padding: '10px 24px',
|
||||
@@ -48,7 +48,7 @@ function unsubscribeFromCreator() {
|
||||
:style="{
|
||||
width: '150px',
|
||||
height: '28px',
|
||||
backgroundColor: brandingStore.value.colors.secondary,
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
color: 'white',
|
||||
borderRadius: '0 8px 8px 0',
|
||||
padding: '10px 24px',
|
||||
@@ -65,7 +65,7 @@ function unsubscribeFromCreator() {
|
||||
|
||||
<v-dialog v-model="showUnsubscribeModal" max-width="500">
|
||||
<v-card class="text-center rounded-xl"
|
||||
:style="{ border: `3px solid ${brandingStore.value.colors.secondary}` }">
|
||||
:style="{ border: `3px solid ${brandingStore.colors.secondary}` }">
|
||||
|
||||
<div class="flex items-center justify-between py-4 text-2xl font-bold border-b mb-2">
|
||||
<div class="flex-1 text-center">
|
||||
@@ -82,10 +82,10 @@ function unsubscribeFromCreator() {
|
||||
</v-btn>
|
||||
|
||||
<v-btn class="flex-grow-1"
|
||||
:style="{ borderColor: brandingStore.value.colors.secondary, color: brandingStore.value.colors.secondary }"
|
||||
:style="{ borderColor: brandingStore.colors.secondary, color: brandingStore.colors.secondary }"
|
||||
variant="outlined"
|
||||
@click="showUnsubscribeModal = false">
|
||||
<div :style="{ color: brandingStore.value.colors.secondary }">Non</div>
|
||||
<div :style="{ color: brandingStore.colors.secondary }">Non</div>
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
|
||||
@@ -25,7 +25,7 @@ function unsubscribeFromCreator() {
|
||||
<v-btn
|
||||
class="mr-4"
|
||||
:style="{
|
||||
backgroundColor: brandingStore.value.colors.secondary,
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
color: 'white',
|
||||
borderRadius: '8px',
|
||||
padding: '0px 24px',
|
||||
@@ -44,7 +44,7 @@ function unsubscribeFromCreator() {
|
||||
<v-btn
|
||||
class="mr-4"
|
||||
:style="{
|
||||
backgroundColor: brandingStore.value.colors.secondary,
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
color: 'white',
|
||||
borderRadius: '8px',
|
||||
padding: '0px 24px',
|
||||
@@ -61,7 +61,7 @@ function unsubscribeFromCreator() {
|
||||
|
||||
<v-dialog v-model="showUnsubscribeModal" max-width="500">
|
||||
<v-card class="text-center rounded-xl"
|
||||
:style="{ border: `3px solid ${brandingStore.value.colors.primary}` }">
|
||||
:style="{ border: `3px solid ${brandingStore.colors.primary}` }">
|
||||
|
||||
<div class="flex items-center justify-between py-4 text-2xl font-bold border-b mb-2">
|
||||
<div class="flex-1 text-center">
|
||||
@@ -78,10 +78,10 @@ function unsubscribeFromCreator() {
|
||||
</v-btn>
|
||||
|
||||
<v-btn class="flex-grow-1"
|
||||
:style="{ borderColor: brandingStore.value.colors.primary, color: brandingStore.value.colors.primary }"
|
||||
:style="{ borderColor: brandingStore.colors.primary, color: brandingStore.colors.primary }"
|
||||
variant="outlined"
|
||||
@click="showUnsubscribeModal = false">
|
||||
<div :style="{ color: brandingStore.value.colors.primary }">Non</div>
|
||||
<div :style="{ color: brandingStore.colors.primary }">Non</div>
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="relative w-full">
|
||||
<div ref="mainContainer" class="rounded-b-2xl pt-2 pb-1"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.bannerBottom, borderBottom: '5px inset' + (brandingStore.value.colors.menu || '#000') }">
|
||||
:style="{ backgroundColor: brandingStore.colors.bannerBottom, borderBottom: '5px inset' + (brandingStore.colors.menu || '#000') }">
|
||||
|
||||
<!-- Logo & User Info -->
|
||||
<div class="relative z-20">
|
||||
@@ -11,7 +11,7 @@
|
||||
class="shadow-2xl rounded-full border-solid border-4 absolute z-20 max-w-[190px] ml-15 -mt-32"
|
||||
:src="brandingStore.value.images.logo ? brandingStore.value.images.logo : '/images/placeholders/logo.png'"
|
||||
alt="Profile Picture"
|
||||
:style="{ borderColor: brandingStore.value.colors.accent, height: '190px'}"
|
||||
:style="{ borderColor: brandingStore.colors.accent, height: '190px'}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -33,14 +33,14 @@
|
||||
|
||||
<!-- Conteneur sticky -->
|
||||
<div v-show="isSticky" class=" sticky-header fixed top-14 left-0 right-0 w-full z-20"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.bannerBottom , borderBottom: '5px inset' + (brandingStore.value.colors.menu || '#000') }">
|
||||
:style="{ backgroundColor: brandingStore.colors.bannerBottom , borderBottom: '5px inset' + (brandingStore.colors.menu || '#000') }">
|
||||
<div class="shadow-3xl flex flex-row items-center py-2 px-2">
|
||||
<div>
|
||||
<img
|
||||
class="max-w-[40px] max-h-[40px] ml-5 rounded-full"
|
||||
:src="brandingStore.value.images.logo ? brandingStore.value.images.logo : '/images/placeholders/logo.png'"
|
||||
alt="Profile Picture"
|
||||
:style="{ borderColor: brandingStore.value.colors.accent, height: '190px'}"
|
||||
:style="{ borderColor: brandingStore.colors.accent, height: '190px'}"
|
||||
/>
|
||||
</div>
|
||||
<div class="ml-5 text-white">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="w-full">
|
||||
<div class="rounded-b-2xl"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.bannerBottom }">
|
||||
:style="{ backgroundColor: brandingStore.colors.bannerBottom }">
|
||||
<div>
|
||||
|
||||
<!-- Logo-Name-Followers -->
|
||||
@@ -11,7 +11,7 @@
|
||||
class="absolute rounded-full border-solid border-2 max-w-[140px] h-auto ml-3 -mt-3"
|
||||
:src="brandingStore.value.images.logo ? brandingStore.value.images.logo : '/images/placeholders/logo.png'"
|
||||
alt="Profile Picture"
|
||||
:style="{ borderColor: brandingStore.value.colors.accent, height: '150px'}"
|
||||
:style="{ borderColor: brandingStore.colors.accent, height: '150px'}"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="w-full">
|
||||
<div
|
||||
:style="{backgroundColor: brandingStore.value.colors.bannerBottom, borderBottom: `2px solid ${brandingStore.value.colors.accent}`}">
|
||||
:style="{backgroundColor: brandingStore.colors.bannerBottom, borderBottom: `2px solid ${brandingStore.colors.accent}`}">
|
||||
<div>
|
||||
<!-- Logo-Name-Followers-->
|
||||
<div class="flex flex-row relative z-20">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="relative w-full shadow-xl rounded-2xl">
|
||||
|
||||
<div ref="mainContainer" class="rounded-b-2xl shadow-2xl"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.primary, boxShadow: '0 5px 10px rgba(0, 0, 0, 0.3)' }">
|
||||
:style="{ backgroundColor: brandingStore.colors.primary, boxShadow: '0 5px 10px rgba(0, 0, 0, 0.3)' }">
|
||||
|
||||
<div>
|
||||
<div>
|
||||
@@ -16,7 +16,7 @@
|
||||
class="shadow-2xl rounded-full border-solid border-102 absolute z-20 max-w-[190px] ml-10 -mt-10"
|
||||
:src="brandingStore.value.images.logo ? brandingStore.value.images.logo : '/images/placeholders/logo.png'"
|
||||
alt="Profile Picture"
|
||||
:style="{ borderColor: brandingStore.value.colors.secondary, height: '190px'}"
|
||||
:style="{ borderColor: brandingStore.colors.secondary, height: '190px'}"
|
||||
/>
|
||||
</div>
|
||||
<div class="ml-64 text-white w-25 min-w-60">
|
||||
@@ -57,16 +57,16 @@
|
||||
</div>
|
||||
|
||||
<div class="absolute bottom-6 right-24 z-30 shadow-2xl rounded-md text-white"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.secondary}">
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary}">
|
||||
|
||||
<div class="w-96 h-28 flex flex-col">
|
||||
<!-- Section 3 et 4 - Prend 2/3 de la hauteur -->
|
||||
<div class="flex flex-row flex-grow-[2] min-h-20">
|
||||
<div class="rounded-tl-md w-1/2 flex items-center justify-center"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.primary, opacity: 0.20 }">
|
||||
:style="{ backgroundColor: brandingStore.colors.primary, opacity: 0.20 }">
|
||||
</div>
|
||||
<div class="rounded-tr-md w-1/2 bg-cyan-100 flex items-center justify-center text-xl"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.secondary}">
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary}">
|
||||
<div class="absolute left-1">
|
||||
<div class="flex flex-row items-center justify-center space-x-5">
|
||||
<div class="flex flex-row items-center">
|
||||
@@ -81,11 +81,11 @@
|
||||
|
||||
<div class="flex flex-col items-center space-y-2">
|
||||
<v-btn
|
||||
:style="{ backgroundColor: brandingStore.value.colors.secondary, fontSize: '20px', height: '30px', width: '30px', padding: '0', minWidth: '25px', minHeight: '25px' }"
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary, fontSize: '20px', height: '30px', width: '30px', padding: '0', minWidth: '25px', minHeight: '25px' }"
|
||||
variant="tonal">+
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:style="{ backgroundColor: brandingStore.value.colors.secondary, fontSize: '20px', height: '30px', width: '30px', padding: '0', minWidth: '25px', minHeight: '25px' }"
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary, fontSize: '20px', height: '30px', width: '30px', padding: '0', minWidth: '25px', minHeight: '25px' }"
|
||||
variant="tonal">-
|
||||
</v-btn>
|
||||
</div>
|
||||
@@ -102,7 +102,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flex-grow bg-gray-300 flex items-center justify-center rounded-b-md"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.secondary, opacity: 0.80 }">
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary, opacity: 0.80 }">
|
||||
|
||||
<textarea
|
||||
rows="1"
|
||||
@@ -120,7 +120,7 @@
|
||||
</div>
|
||||
|
||||
<div class="rounded-b-2xl -mt-3 h-12 px-36 flex flex-col items-center justify-center"
|
||||
:style="{ backgroundColor: brandingStore.value.colors.secondary, boxShadow: '0 5px 20px rgba(0, 0, 0, 0.3)' }">
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary, boxShadow: '0 5px 20px rgba(0, 0, 0, 0.3)' }">
|
||||
<div class="flex justify-evenly mt-3 w-full">
|
||||
<RouterLink class="nav-button"
|
||||
:to="`/@${brandingStore.value.name}`">
|
||||
|
||||
Reference in New Issue
Block a user