Skip to content

Commit

Permalink
feat(profile): add premium upgrade button to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuher committed Dec 29, 2024
1 parent 726be0a commit 2492cb8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@angular/service-worker": "^19.0.5",
"date-fns": "4.1.0",
"dexie": "^4.0.9",
"excalibur": "0.30.1",
"excalibur": "0.30.2",
"pocketbase": "0.22.1",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
Expand Down
4 changes: 4 additions & 0 deletions src/app/pages/profile/profile.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<div class="name">{{ user?.name }}</div>
<div class="account-badge">{{ user?.premium ? 'Premium rider' : 'Standard rider' }}</div>
</div>
@if(!user?.premium) {
<button class="retro-button" disabled>Upgrade to premium</button>
<div class="retro-text secondary">Profile upgrade will soon be available to all riders</div>
}
</div>
<div class="retro-footer">
<button class="retro-button" (click)="logout()">
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/profile/profile.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
color: var(--color-primary);
align-items: center;
border-radius: var(--border-radius-large);
margin-bottom: 1rem;

&.premium {
color: var(--color-tertiary);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3650,10 +3650,10 @@ events@^3.2.0:
resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==

[email protected].1:
version "0.30.1"
resolved "https://registry.yarnpkg.com/excalibur/-/excalibur-0.30.1.tgz#7ada8c74062a4a418571cb54c883c44e18c09d44"
integrity sha512-M/dvK74jZGNcb54rBWnIBDxuVCjOMlzgUfeVjvMz/iHP7q/OAKdimle0metUJ2BnyupG2ASR5lGtndGTOSSjjw==
[email protected].2:
version "0.30.2"
resolved "https://registry.yarnpkg.com/excalibur/-/excalibur-0.30.2.tgz#51bdb57621317409ab573c55cae0aa10c2ced793"
integrity sha512-wovkbyvsNWxJKg6wKMnuSK3Uj2J69HSaKBlKxkWOVfViVxa1kRsUuqYp7dBz38277BVfNoUmvewq2nDp1oKluA==

exponential-backoff@^3.1.1:
version "3.1.1"
Expand Down

0 comments on commit 2492cb8

Please sign in to comment.