Skip to content

Commit

Permalink
tmp new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientromp committed Jun 12, 2023
1 parent 5849af4 commit 4c9ef16
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { getAchievementCategories } from '../+state/website/profile.selectors';
selector: 'website-profile-achievements-overview',
styleUrls: [`./website-profile-achievements-overview.component.scss`],
template: `
<div class="card achievement-points">
</div>
<div class="card achievement" *ngFor="let category of categories$ | async">
<achievement-category-view
[empty]="category.empty"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,35 @@
padding: 20px;

.title {
font-size: 24px;
color: var(--default-title-color);
text-align: center;
position: relative;
margin: auto;
flex-grow: 0;
flex-shrink: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-right: 20px;
margin-left: 20px;
max-width: calc(100% - 40px);
}

.icon {
height: 100px;
width: 101px;
flex-grow: 0;
flex-shrink: 0;
margin-bottom: 5px;
color: var(--default-title-color);
--icon-color: var(--default-title-color);
}

.progress-container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;

}

.progress {
Expand All @@ -30,7 +50,6 @@

&.golden {
color: var(--default-title-color);

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ExtendedProfileSet } from '../+state/website/profile.models';
template: `
<div class="mode standard">
<div class="title">{{ title }}</div>
<img class="icon" [src]="setIcon" />
<div class="progress-container">
<div class="progress normal">{{ progressNormal() }}</div>
<div class="progress golden">{{ progressGolden() }}</div>
Expand All @@ -18,6 +19,10 @@ import { ExtendedProfileSet } from '../+state/website/profile.models';
export class WebsiteProfileCollectionOverviewComponent {
@Input() sets: readonly ExtendedProfileSet[] | null;
@Input() title: string;
@Input() set mode(value: 'standard' | 'wild') {
this.setIcon = `https://static.zerotoheroes.com/hearthstone/asset/firestone/images/collection/collection_${value}.webp`;
}
setIcon: string;

progressNormal(): string {
const totalCollected =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ import { getSets } from '../+state/website/profile.selectors';
<div class="card collection standard">
<website-profile-collection-overview
class="mode standard"
[mode]="'standard'"
[title]="'Standard'"
[sets]="standardSets$ | async"
>
</website-profile-collection-overview>
</div>
<div class="card collection wild">
<website-profile-collection-overview class="mode wild" [title]="'Wild'" [sets]="wildSets$ | async">
<website-profile-collection-overview
class="mode wild"
[mode]="'wild'"
[title]="'Wild'"
[sets]="wildSets$ | async"
>
</website-profile-collection-overview>
</div>
<website-profile-achievements-overview></website-profile-achievements-overview>
Expand Down

0 comments on commit 4c9ef16

Please sign in to comment.