From 6e3d467acb7f32255262f75b3491472b5c8fa8da Mon Sep 17 00:00:00 2001
From: PascalMarchesseault
<97350299+PascalMarchesseault@users.noreply.github.com>
Date: Tue, 4 Jun 2024 23:51:36 -0400
Subject: [PATCH] Modification layout de la page Creator (dynamique)
---
src/layouts/UserProfile.vue | 44 +++
src/router/index.js | 258 ++++++++-------
src/views/main/CreatorFolio.vue | 448 +++++++-------------------
src/views/{ => main}/UsersBrowser.vue | 2 +-
src/views/main/YourProfile.vue | 7 +-
5 files changed, 302 insertions(+), 457 deletions(-)
create mode 100644 src/layouts/UserProfile.vue
rename src/views/{ => main}/UsersBrowser.vue (99%)
diff --git a/src/layouts/UserProfile.vue b/src/layouts/UserProfile.vue
new file mode 100644
index 0000000..c7db7e1
--- /dev/null
+++ b/src/layouts/UserProfile.vue
@@ -0,0 +1,44 @@
+
+
+
+
{{ user.name }}
+
{{ user.bio }}
+
+
+
+
Utilisateur non trouvé
+
+
+
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index c11b7cc..a26d79e 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -8,151 +8,147 @@ import HelpAndContact from '@/views/tos/HelpAndContact.vue'
import TermsAndConditions from '@/views/tos/TermsAndConditions.vue'
import Transactions from '@/views/tos/Transactions.vue'
import { createRouter, createWebHistory } from 'vue-router'
+import UserProfile from '../layouts/UserProfile.vue'
import LoginView from '../views/LoginView.vue'
import PaymentCompleted from '../views/PayementCompleted.vue'
import SignupView from '../views/SignupView.vue'
-import UserBrowser from '../views/UsersBrowser.vue'
import ContactView from '../views/main/ContactView.vue'
import CreatorFolio from '../views/main/CreatorFolio.vue'
import HomeView from '../views/main/HomeView.vue'
+import UserBrowser from '../views/main/UsersBrowser.vue'
import YourProfile from '../views/main/YourProfile.vue'
import ChloeBeaugrand from '../views/manualusers/ChloeProfile.vue'
import Hutopy from '../views/manualusers/HutopyProfile.vue'
import Leffet from '../views/manualusers/LeffetProfile.vue'
import MathieuCaron from '../views/manualusers/MathieuCaron.vue'
+const routes = [
+ {
+ path: '/',
+ name: 'main',
+ component: HomeView
+ },
+ {
+ path: '/creatorfolio',
+ name: 'creatorfolio',
+ component: CreatorFolio
+ },
+ {
+ path: '/paymentcompleted',
+ name: 'PayementCompleted',
+ component: PaymentCompleted
+ },
+ {
+ path: '/yourprofile',
+ name: 'yourprofile',
+ component: YourProfile
+ },
+ {
+ path: '/contact',
+ name: 'contact',
+ component: ContactView
+ },
+ {
+ path: '/signup',
+ name: 'signup',
+ component: SignupView
+ },
+ {
+ path: '/login',
+ name: 'login',
+ component: LoginView
+ },
+ {
+ path: '/home',
+ name: 'home',
+ component: HomeView
+ },
+ {
+ path: '/helpandcontact',
+ name: 'helpandcontact',
+ component: HelpAndContact
+ },
+ {
+ path: '/termsandconditions',
+ name: 'termsandconditions',
+ component: TermsAndConditions
+ },
+ {
+ path: '/contentpolicy',
+ name: 'contentpolicy',
+ component: ContentPolicy
+ },
+ {
+ path: '/faq',
+ name: 'FAQ',
+ component: FAQ
+ },
+ {
+ path: '/guideforcreators',
+ name: 'guideforcreators',
+ component: GuideForCreators
+ },
+ {
+ path: '/about',
+ name: 'about',
+ component: About
+ },
+ {
+ path: '/transactions',
+ name: 'transactions',
+ component: Transactions
+ },
+ {
+ path: '/Hutopy',
+ name: 'Hutopy',
+ component: Hutopy
+ },
+ {
+ path: '/Leffet',
+ name: 'Leffet',
+ component: Leffet
+ },
+ {
+ path: '/userbrowser',
+ name: 'userbrowser',
+ component: UserBrowser
+ },
+ {
+ path: '/chloebeaugrand',
+ name: 'chloebeaugrand',
+ component: ChloeBeaugrand
+ },
+ {
+ path: '/guillaumeaime',
+ name: 'guillaumeaime',
+ component: GuillaumeAime
+ },
+ {
+ path: '/mathieucaron',
+ name: 'mathieucaron',
+ component: MathieuCaron
+ },
+ {
+ path: '/arps',
+ name: 'arps',
+ component: ARPS
+ },
+ {
+ path: '/:username',
+ name: 'user-profile',
+ component: UserProfile
+ },
+
+ {
+ path: '/creatorFolio',
+ name: 'creatorFolio',
+ component: CreatorFolio
+ }
+]
+
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
- routes: [
- {
- path: '/',
- name: 'main',
- component: HomeView
- },
- {
- path: '/creatorfolio',
- name: 'creatorfolio',
- component: CreatorFolio
- },
-
- {
- path: '/paymentcompleted',
- name: 'PayementCompleted',
- component: PaymentCompleted
- },
- {
- path: '/yourprofile',
- name: 'yourprofile',
- component: YourProfile
- },
- {
- path: '/contact',
- name: 'contact',
- component: ContactView
- },
- {
- path: '/signup',
- name: 'signup',
- component: SignupView
- },
- {
- path: '/login',
- name: 'login',
- component: LoginView
- },
- {
- path: '/home',
- name: 'home',
- component: HomeView
- },
- {
- path: '/helpandcontact',
- name: 'helpandcontact',
- component: HelpAndContact
- },
- {
- path: '/termsandconditions',
- name: 'termsandconditions',
- component: TermsAndConditions
- },
- {
- path: '/contentpolicy',
- name: 'contentpolicy',
- component: ContentPolicy
- },
- {
- path: '/faq',
- name: 'FAQ',
- component: FAQ
- },
- {
- path: '/guideforcreators',
- name: 'guideforcreators',
- component: GuideForCreators
- },
-
- {
- path: '/about',
- name: 'about',
- component: About
- },
-
- {
- path: '/transactions',
- name: 'transactions',
- component: Transactions
- },
-
- {
- path: '/Hutopy',
- name: 'Hutopy',
- component: Hutopy
- },
-
- {
- path: '/Leffet',
- name: 'Leffet',
- component: Leffet
- },
-
- {
- path: '/userbrowser',
- name: 'userbrowser',
- component: UserBrowser
- },
-
- {
- path: '/chloebeaugrand',
- name: 'chloebeaugrand',
- component: ChloeBeaugrand
- },
-
- {
- path: '/guillaumeaime',
- name: 'guillaumeaime',
- component: GuillaumeAime
- },
-
- {
- path: '/mathieucaron',
- name: 'mathieucaron',
- component: MathieuCaron
- },
-
- {
- path: '/arps',
- name: 'arps',
- component: ARPS
- },
-
- {
- path: '/guillaumeaime',
- name: 'guillaumeaime',
- component: GuillaumeAime
- },
-
-
- ],
+ routes,
scrollBehavior(to, from, savedPosition) {
return { top: 0 };
}
diff --git a/src/views/main/CreatorFolio.vue b/src/views/main/CreatorFolio.vue
index 16d145e..5a485ec 100644
--- a/src/views/main/CreatorFolio.vue
+++ b/src/views/main/CreatorFolio.vue
@@ -109,7 +109,7 @@
-
+
@@ -223,268 +139,154 @@
-
-
-
-
-
-
-
-
- {{ name }}
-
-
-
-
-
- {{ title }}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ {{ name }}
-
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-