onboarding guide improvements (#12068)

This commit is contained in:
Matteo Pagliazzi
2020-04-13 16:19:46 +02:00
committed by GitHub
parent 6c29ea8c4c
commit dd31f559c7
6 changed files with 66 additions and 29 deletions

View File

@@ -53,8 +53,8 @@
.close-icon { .close-icon {
position: absolute; position: absolute;
top: 24px; top: 1rem;
right: 24px; right: 1rem;
cursor: pointer; cursor: pointer;
& svg path { & svg path {

View File

@@ -7,20 +7,31 @@
> >
<div class="content text-center"> <div class="content text-center">
<span <span
v-once
class="close-icon svg-icon inline icon-10" class="close-icon svg-icon inline icon-10"
@click="close()" @click="close()"
v-html="icons.close" v-html="icons.close"
></span> ></span>
<h2>{{ $t('congratulations') }}</h2> <h2 v-once>
{{ $t('onboardingComplete') }}
</h2>
<img <img
class="onboarding-complete-banner d-block" class="onboarding-complete-banner d-block"
src="~@/assets/images/onboarding-complete-banner@2x.png" src="~@/assets/images/onboarding-complete-banner@2x.png"
> >
<p <p
v-once
class="onboarding-complete-text" class="onboarding-complete-text"
v-html="$t('onboardingCompleteDesc')" v-html="$t('onboardingCompleteDesc')"
></p> ></p>
<p
v-once
class="onboarding-complete-text-small"
>
{{ $t('onboardingCompleteDescSmall') }}
</p>
<button <button
v-once
class="btn btn-primary" class="btn btn-primary"
@click="closeWithAction()" @click="closeWithAction()"
> >
@@ -37,7 +48,7 @@
} }
.modal-body { .modal-body {
padding-top: 1em; padding-top: 1rem;
padding-bottom: 0; padding-bottom: 0;
} }
@@ -58,7 +69,7 @@ h2 {
.content { .content {
padding: 0 8px; padding: 0 8px;
margin-top: 18px; margin-top: 1rem;
} }
.onboarding-complete-banner { .onboarding-complete-banner {
@@ -68,13 +79,21 @@ h2 {
} }
.onboarding-complete-text { .onboarding-complete-text {
margin-bottom: 24px; margin-bottom: 1rem;
} }
.onboarding-complete-text ::v-deep .gold-amount { .onboarding-complete-text ::v-deep .gold-amount {
color: $yellow-5; color: $yellow-5;
} }
.onboarding-complete-text-small {
margin-bottom: 1.5rem;
color: $gray-100;
font-style: normal;
font-size: 12px;
line-height: 1.33;
}
button { button {
margin-bottom: 24px; margin-bottom: 24px;
} }

View File

@@ -15,13 +15,17 @@
class="onboarding-complete-banner d-block" class="onboarding-complete-banner d-block"
src="~@/assets/images/onboarding-complete-banner@2x.png" src="~@/assets/images/onboarding-complete-banner@2x.png"
> >
<h3>{{ $t('congratulations') }}</h3> <h3 v-once>
{{ $t('onboardingComplete') }}
</h3>
<p <p
v-once
class="onboarding-complete-text" class="onboarding-complete-text"
v-html="$t('onboardingCompleteDesc')" v-html="$t('onboardingCompleteDesc')"
></p> ></p>
<div class="notifications-buttons"> <div class="notifications-buttons">
<div <div
v-once
class="btn btn-small btn-primary btn-block" class="btn btn-small btn-primary btn-block"
> >
{{ $t('viewAchievements') }} {{ $t('viewAchievements') }}

View File

@@ -10,20 +10,25 @@
v-html="icons.down" v-html="icons.down"
></div> ></div>
<div <div
v-once
class="svg-icon onboarding-guide-banner" class="svg-icon onboarding-guide-banner"
v-html="icons.onboardingGuideBanner" v-html="icons.onboardingGuideBanner"
></div> ></div>
<h3 class="getting-started"> <h3
v-once
class="getting-started"
>
{{ $t('gettingStarted') }} {{ $t('gettingStarted') }}
</h3> </h3>
<span <span
v-once
class="getting-started-desc" class="getting-started-desc"
v-html="$t('gettingStartedDesc')" v-html="$t('gettingStartedDesc')"
></span> ></span>
<div <div
class="onboarding-progress-box d-flex flex-row justify-content-between small-text mb-2" class="onboarding-progress-box d-flex flex-row justify-content-between small-text mb-2"
> >
<strong>Your Progress</strong> <strong v-once>{{ $t('yourProgress') }}</strong>
<span :class="{'has-progress': progress > 0}">{{ progressText }}</span> <span :class="{'has-progress': progress > 0}">{{ progressText }}</span>
</div> </div>
<div class="onboarding-progress-bar mb-3"> <div class="onboarding-progress-bar mb-3">
@@ -48,8 +53,14 @@
<div :class="`achievement-icon ${getAchievementIcon(achievement)}`"></div> <div :class="`achievement-icon ${getAchievementIcon(achievement)}`"></div>
</div> </div>
<div class="achievement-info d-flex flex-column"> <div class="achievement-info d-flex flex-column">
<strong class="achievement-title">{{ achievement.title }}</strong> <strong
<span class="small-text achievement-desc">{{ getAchievementText(key) }}</span> v-once
class="achievement-title"
>{{ achievement.title }}</strong>
<span
v-once
class="small-text achievement-desc"
>{{ getAchievementText(key) }}</span>
</div> </div>
</div> </div>
</b-collapse> </b-collapse>

View File

@@ -4,12 +4,15 @@
"onwards": "Onwards!", "onwards": "Onwards!",
"levelup": "By accomplishing your real life goals, you leveled up and are now fully healed!", "levelup": "By accomplishing your real life goals, you leveled up and are now fully healed!",
"reachedLevel": "You Reached Level <%= level %>", "reachedLevel": "You Reached Level <%= level %>",
"gettingStartedDesc": "Lets create a task, complete it, then check out your rewards. Youll earn <strong>5 achievements</strong> and <strong class=\"gold-amount\">100 gold</strong> once youre done!", "gettingStartedDesc": "Complete these onboarding tasks and youll earn <strong>5 Achievements</strong> and <strong class=\"gold-amount\">100 Gold</strong> once youre done!",
"onboardingProgress": "<%= percentage %>% progress", "onboardingProgress": "<%= percentage %>% progress",
"yourProgress": "Your Progress",
"letsGetStarted": "Let's get started!", "letsGetStarted": "Let's get started!",
"viewAchievements": "View Achievements", "viewAchievements": "View Achievements",
"earnedAchievement": "You earned an achievement!", "earnedAchievement": "You earned an achievement!",
"onboardingCompleteDesc": "You earned <strong>5 achievements</strong> and <strong class=\"gold-amount\">100</strong> gold for completing the list.", "onboardingComplete": "You completed your onboarding tasks!",
"onboardingCompleteDesc": "You earned <strong>5 Achievements</strong> and <strong class=\"gold-amount\">100 Gold</strong> for completing the list.",
"onboardingCompleteDescSmall": "If you want even more, check out Achievements and start collecting!",
"showAllAchievements": "Show All <%= category %>", "showAllAchievements": "Show All <%= category %>",
"hideAchievements": "Hide <%= category %>", "hideAchievements": "Hide <%= category %>",
"foundNewItems": "You found new items!", "foundNewItems": "You found new items!",
@@ -46,21 +49,21 @@
"achievementUndeadUndertaker": "Undead Undertaker", "achievementUndeadUndertaker": "Undead Undertaker",
"achievementUndeadUndertakerText": "Has tamed all Zombie Mounts.", "achievementUndeadUndertakerText": "Has tamed all Zombie Mounts.",
"achievementUndeadUndertakerModalText": "You tamed all the Zombie Mounts!", "achievementUndeadUndertakerModalText": "You tamed all the Zombie Mounts!",
"achievementCreatedTask": "Create a Task", "achievementCreatedTask": "Create your first task",
"achievementCreatedTaskText": "Created their first task.", "achievementCreatedTaskText": "Created their first task.",
"achievementCreatedTaskModalText": "Add a task for something you would like to accomplish this week", "achievementCreatedTaskModalText": "Add a task for something you would like to accomplish this week",
"achievementCompletedTask": "Complete a Task", "achievementCompletedTask": "Complete a task",
"achievementCompletedTaskText": "Completed their first task.", "achievementCompletedTaskText": "Completed their first task.",
"achievementCompletedTaskModalText": "Check off any of your tasks to earn rewards", "achievementCompletedTaskModalText": "Check off any of your tasks to earn rewards",
"achievementHatchedPet": "Hatch a Pet", "achievementHatchedPet": "Hatch a Pet",
"achievementHatchedPetText": "Hatched their first pet.", "achievementHatchedPetText": "Hatched their first pet.",
"achievementHatchedPetModalText": "Head over to your inventory and try combining a hatching potion and an egg", "achievementHatchedPetModalText": "Head over to your inventory and try combining a hatching Potion and an Egg",
"achievementFedPet": "Feed a Pet", "achievementFedPet": "Feed a Pet",
"achievementFedPetText": "Fed their first pet.", "achievementFedPetText": "Fed their first pet.",
"achievementFedPetModalText": "There are many different types of food, but pets can be picky", "achievementFedPetModalText": "There are many different types of food, but Pets can be picky",
"achievementPurchasedEquipment": "Purchase Equipment", "achievementPurchasedEquipment": "Purchase a piece of Equipment",
"achievementPurchasedEquipmentText": "Purchased their first piece of equipment.", "achievementPurchasedEquipmentText": "Purchased their first piece of equipment.",
"achievementPurchasedEquipmentModalText": "Equipment is a way to customize your avatar and improve your stats", "achievementPurchasedEquipmentModalText": "Equipment is a way to customize your avatar and improve your Stats",
"achievementPrimedForPainting": "Primed for Painting", "achievementPrimedForPainting": "Primed for Painting",
"achievementPrimedForPaintingText": "Has collected all White Pets.", "achievementPrimedForPaintingText": "Has collected all White Pets.",
"achievementPrimedForPaintingModalText": "You collected all the White Pets!", "achievementPrimedForPaintingModalText": "You collected all the White Pets!",