From d1d73181f589f4cd42f3fd6fed87749e6df1197f Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Sat, 8 Feb 2025 09:49:52 -0500 Subject: [PATCH] Cleanup profile --- frontend/src/App.vue | 2 +- frontend/src/router/router.js | 2 +- frontend/src/views/profile/AccountPage.vue | 293 ------------------ frontend/src/views/profile/CreatorPage.vue | 257 --------------- frontend/src/views/profile/ProfilePage.vue | 282 ++++++++++++++++- .../src/views/profile/account/EmailDialog.vue | 72 +++-- ...eStripeID.vue => ChangeStripeIdDialog.vue} | 2 +- ...{ChangeTitle.vue => ChangeTitleDialog.vue} | 0 .../{Socials.vue => SocialsDialog.vue} | 1 + 9 files changed, 326 insertions(+), 585 deletions(-) delete mode 100644 frontend/src/views/profile/AccountPage.vue delete mode 100644 frontend/src/views/profile/CreatorPage.vue rename frontend/src/views/profile/creators/{ChangeStripeID.vue => ChangeStripeIdDialog.vue} (95%) rename frontend/src/views/profile/creators/{ChangeTitle.vue => ChangeTitleDialog.vue} (100%) rename frontend/src/views/profile/creators/{Socials.vue => SocialsDialog.vue} (99%) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 05c4058..bdb5494 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -18,7 +18,7 @@
- +
diff --git a/frontend/src/router/router.js b/frontend/src/router/router.js index 61c3dd8..7c2053c 100644 --- a/frontend/src/router/router.js +++ b/frontend/src/router/router.js @@ -31,10 +31,10 @@ const routes = [ { path: '/@:creator', component: CreatorLayout, - name: 'creator', children: [ { path: '', + name: 'creator', component: CreatorHome, } ], diff --git a/frontend/src/views/profile/AccountPage.vue b/frontend/src/views/profile/AccountPage.vue deleted file mode 100644 index 8c8dc76..0000000 --- a/frontend/src/views/profile/AccountPage.vue +++ /dev/null @@ -1,293 +0,0 @@ - - - - - diff --git a/frontend/src/views/profile/CreatorPage.vue b/frontend/src/views/profile/CreatorPage.vue deleted file mode 100644 index df9d211..0000000 --- a/frontend/src/views/profile/CreatorPage.vue +++ /dev/null @@ -1,257 +0,0 @@ - - - - - diff --git a/frontend/src/views/profile/ProfilePage.vue b/frontend/src/views/profile/ProfilePage.vue index f4b6746..e38797e 100644 --- a/frontend/src/views/profile/ProfilePage.vue +++ b/frontend/src/views/profile/ProfilePage.vue @@ -1,16 +1,284 @@  + +.card { + @apply p-4 bg-hSurface text-hOnSurface shadow-md rounded-lg mb-4; +} + +.title { + @apply text-lg font-semibold text-hOnSecondary mb-2; +} + +.content { + @apply text-base font-semibold text-hOnSurface flex flex-col w-full; +} + +.action { + @apply active:bg-gray-300 py-2 px-4 border-gray-400 shadow flex items-center transition duration-200 ease-in-out w-full; +} + +.label { + @apply flex-none min-w-32 text-left; +} + +.value { + @apply flex-auto text-left pr-6 capitalize; +} + +.chevron { + @apply flex-none; +} + + \ No newline at end of file diff --git a/frontend/src/views/profile/account/EmailDialog.vue b/frontend/src/views/profile/account/EmailDialog.vue index 5dfac87..194c8b6 100644 --- a/frontend/src/views/profile/account/EmailDialog.vue +++ b/frontend/src/views/profile/account/EmailDialog.vue @@ -1,38 +1,60 @@  diff --git a/frontend/src/views/profile/creators/ChangeStripeID.vue b/frontend/src/views/profile/creators/ChangeStripeIdDialog.vue similarity index 95% rename from frontend/src/views/profile/creators/ChangeStripeID.vue rename to frontend/src/views/profile/creators/ChangeStripeIdDialog.vue index f9818b7..779498e 100644 --- a/frontend/src/views/profile/creators/ChangeStripeID.vue +++ b/frontend/src/views/profile/creators/ChangeStripeIdDialog.vue @@ -33,7 +33,7 @@ const cancel = () => {