From ae4469703d2b4bc255f5e52152d9fb11c0e1e1be Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 15 Aug 2024 10:32:36 -0500 Subject: [PATCH] WIP(groups): style and HTML corrections Also workflows for static and non-upgrade logged-in scenarios --- .../src/components/groups/groupPlan.vue | 110 ------------------ .../src/components/static/groupPlans.vue | 46 +++++--- website/client/src/pages/user-main.vue | 8 +- website/client/src/router/index.js | 2 +- website/common/locales/en/groups.json | 6 +- 5 files changed, 42 insertions(+), 130 deletions(-) delete mode 100644 website/client/src/components/groups/groupPlan.vue diff --git a/website/client/src/components/groups/groupPlan.vue b/website/client/src/components/groups/groupPlan.vue deleted file mode 100644 index 04a847cf11c..00000000000 --- a/website/client/src/components/groups/groupPlan.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - - - diff --git a/website/client/src/components/static/groupPlans.vue b/website/client/src/components/static/groupPlans.vue index f599f2b0c56..08753397f70 100644 --- a/website/client/src/components/static/groupPlans.vue +++ b/website/client/src/components/static/groupPlans.vue @@ -12,7 +12,8 @@ class="party" src="../../assets/images/group-plans-static/party@3x.png" > -

{{ $t('groupPlanTitle') }}

+

{{ $t('upgradeYourCrew') }}

+

{{ $t('groupPlanTitle') }}

{{ $t('groupPlanDesc') }}

Just @@ -34,23 +35,25 @@
-

{{ $t('teamBasedTasksList') }}

+

{{ $t('teamBasedTasksList') }}

{{ $t('teamBasedTasksListDesc') }}
-
+ src="../../assets/images/group-plans-static/group-management@3x.png" + >
-
+ src="../../assets/images/group-plans-static/team-based@3x.png" + >
-

{{ $t('groupManagementControls') }}

+

{{ $t('groupManagementControls') }}

{{ $t('groupManagementControlsDesc') }}
@@ -65,8 +68,11 @@
-

- {{ $t('inspireYourParty') }} +

+ {{ $t('readyToUpgrade') }} +

+

+ {{ $t('createGroupToday') }}

Just @@ -94,7 +100,7 @@ :hide-footer="true" :hide-header="true" > -
+

{{ $t('letsMakeAccount') }}

@@ -143,6 +149,10 @@ &.static { padding-top: 16px; } + + &:not(.static) { + margin-left: -12px; + } } .gap-72 { @@ -172,17 +182,11 @@ } .team-based { - background-image: url('../../assets/images/group-plans-static/group-management@3x.png'); - background-size: contain; - background-repeat: no-repeat; height: 252px; width: 448px; } .group-management { - background-image: url('../../assets/images/group-plans-static/team-based@3x.png'); - background-size: contain; - background-repeat: no-repeat; height: 272px; width: 448px; } @@ -271,6 +275,10 @@ box-shadow: inset 0 -4px 0 0 rgba(52, 49, 58, 0.4); font-size: 20px; line-height: 28px; + + &.btn-primary:hover { + background-color: $purple-400; + } } .pricing { @@ -324,6 +332,12 @@ export default { isStaticPage () { return this.$route.meta.requiresLogin === false; }, + upgradingGroup () { + return this.$store.state.upgradingGroup; + }, + user () { + return this.$store.state.user?.data; + }, }, mounted () { this.$nextTick(() => { diff --git a/website/client/src/pages/user-main.vue b/website/client/src/pages/user-main.vue index 21659754cb2..6d69e593814 100644 --- a/website/client/src/pages/user-main.vue +++ b/website/client/src/pages/user-main.vue @@ -24,7 +24,7 @@
import(/* webpackChunkName: "inventory" */'@/components // Guilds & Parties const GroupPage = () => import(/* webpackChunkName: "guilds" */ '@/components/groups/group'); -const GroupPlansAppPage = () => import(/* webpackChunkName: "guilds" */ '@/components/groups/groupPlan'); +const GroupPlansAppPage = () => import(/* webpackChunkName: "guilds" */ '@/components/static/groupPlans'); const LookingForParty = () => import(/* webpackChunkName: "guilds" */ '@/components/groups/lookingForParty'); // Group Plans diff --git a/website/common/locales/en/groups.json b/website/common/locales/en/groups.json index c1e6992169b..f6b2832b457 100644 --- a/website/common/locales/en/groups.json +++ b/website/common/locales/en/groups.json @@ -339,7 +339,8 @@ "worldBossBullet3": "You can continue with normal Quest Bosses, damage will apply to both", "worldBossBullet4": "Check the Tavern regularly to see World Boss progress and Rage attacks", "worldBoss": "World Boss", - "groupPlanTitle": "Need more for your crew?", + "groupPlanTitle": "Need More for Your Crew?", + "upgradeYourCrew": "Ready to Upgrade Your Crew?", "groupPlanDesc": "Organizing the household chores or managing a small class project? Habitica’s Group Plans provide a shared task experience and dedicated chat space to help you and your group stay motivated.", "billedMonthly": "*billed as a monthly subscription", "teamBasedTasksList": "Shared Task Board", @@ -348,7 +349,8 @@ "groupManagementControlsDesc": "Share responsibilities by assigning tasks to any number of members, or leave tasks open as a challenge to see who can complete it first. Group members can stay up-to-date on each other's progress by viewing the task status.", "inGameBenefits": "All the Benefits!", "inGameBenefitsDesc": "Group members get an exclusive Jackalope Mount, as well as full subscription benefits, including special monthly Equipment sets and the ability to buy Gems with Gold.", - "inspireYourParty": "Create your Group Today!", + "createGroupToday": "Create Your Group Today!", + "readyToUpgrade": "Ready to Upgrade?", "letsMakeAccount": "First, let’s make you an account", "nameYourGroup": "Next, Name Your Group", "exampleGroupName": "Example: Avengers Academy",