diff --git a/app/components/course-page/current-step-complete-modal.hbs b/app/components/course-page/current-step-complete-modal.hbs index d311bf1e6a..07fea72499 100644 --- a/app/components/course-page/current-step-complete-modal.hbs +++ b/app/components/course-page/current-step-complete-modal.hbs @@ -4,15 +4,25 @@ 🎉 -
+
{{if (eq this.currentStep.type "CourseStageStep") "Stage Completed!" "Step Completed!"}}
-
+ {{!--

{{this.currentStep.completionNoticeMessage}}

-
+
--}} + + {{! + Your leaderboard rank is now + #1456. + }} + + + Your leaderboard rank is now + #1456. + -
-

-
- {{svg-jar "information-circle" class="w-5 h-5 fill-current text-blue-500/80"}} - - {{@heading}} - +
+
+ {{svg-jar "presentation-chart-line" class="w-8 h-8 fill-current text-teal-500/90 mb-2"}} + + + Your Rust leaderboard rank is + + + +
+ {{#animated-if (eq this.rank null) use=this.transition duration=300}} + + # ⋯ + + {{else}} + + #{{format-number this.rank}} + + {{/animated-if}}
-

-

- {{yield}} -

+
- \ No newline at end of file +
\ No newline at end of file diff --git a/app/components/roadmap-info-alert.ts b/app/components/roadmap-info-alert.ts index dd12810d49..a1f488fc94 100644 --- a/app/components/roadmap-info-alert.ts +++ b/app/components/roadmap-info-alert.ts @@ -1,4 +1,6 @@ import Component from '@glimmer/component'; +import { tracked } from '@glimmer/tracking'; +import fade from 'ember-animated/transitions/fade'; interface Signature { Element: HTMLDivElement; @@ -10,7 +12,19 @@ interface Signature { }; } -export default class RoadmapInfoAlert extends Component {} +export default class RoadmapInfoAlert extends Component { + transition = fade; + + @tracked rank: number | null = null; + + constructor(owner: unknown, args: Signature['Args']) { + super(owner, args); + + setTimeout(() => { + this.rank = 15578; + }, 1350); + } +} declare module '@glint/environment-ember-loose/registry' { export default interface Registry {