-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 feat(junior) show specific mission logo
Co-authored-by: rouxxi <[email protected]> Co-authored-by: Aurelie Crouillebois <[email protected]>
- Loading branch information
1 parent
8fad487
commit 3dfd0ea
Showing
16 changed files
with
140 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,47 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
import MissionCardBackGround from './mission-card-background'; | ||
<template> | ||
<div class="mission-card__container"> | ||
{{#if @missionLabelStatus}} | ||
<div class="status"> | ||
<p>{{@missionLabelStatus}}</p> | ||
</div> | ||
{{/if}} | ||
{{#if @displayStartedIcon}} | ||
<div class="started-icon"> | ||
<img src="/images/mission/icon/started-icon.svg" alt="" /> | ||
</div> | ||
{{/if}} | ||
|
||
<div class="mission-icon"> | ||
<img src="/images/mission/icon/area-code-{{@areaCode}}.svg" alt="" /> | ||
</div> | ||
export default class MissionCard extends Component { | ||
get imageUrl() { | ||
console.log(this.args.cardImageUrl); | ||
return this.args.cardImageUrl ? this.args.cardImageUrl : '/images/mission/icon/pix-junior-logo-white.svg'; | ||
} | ||
|
||
<MissionCardBackGround @class="area-code-{{@areaCode}}" @areaCode={{@areaCode}} /> | ||
get classIcon() { | ||
console.log(this.args.cardImageUrl); | ||
return this.args.cardImageUrl ? 'mission-icon' : 'mission-icon-default'; | ||
} | ||
<template> | ||
<div class="mission-card__container"> | ||
{{#if @missionLabelStatus}} | ||
<div class="status"> | ||
<p>{{@missionLabelStatus}}</p> | ||
</div> | ||
{{/if}} | ||
{{#if @displayStartedIcon}} | ||
<div class="started-icon"> | ||
<img src="/images/mission/icon/started-icon.svg" alt="" aria-hidden="true" /> | ||
</div> | ||
{{/if}} | ||
|
||
<div class="area-code-{{@areaCode}} mission-card-bottom"> | ||
<div class="mission-name area-code-{{@areaCode}}"> | ||
<p> {{@title}}</p> | ||
<div class={{this.classIcon}}> | ||
<img src={{this.imageUrl}} aria-hidden="true" /> | ||
</div> | ||
|
||
{{#if @missionButtonLabel}} | ||
<div class="fake-button"> | ||
<p>{{@missionButtonLabel}}</p> | ||
<MissionCardBackGround @class="area-code-{{@areaCode}}" @areaCode={{@areaCode}} /> | ||
|
||
<div class="area-code-{{@areaCode}} mission-card-bottom"> | ||
<div class="mission-name area-code-{{@areaCode}}"> | ||
<p> {{@title}}</p> | ||
</div> | ||
{{/if}} | ||
|
||
{{#if @missionButtonLabel}} | ||
<div class="fake-button"> | ||
<p>{{@missionButtonLabel}}</p> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
</template> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.