-
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(mon-pix): use global AppLayout component on needed pages
- Loading branch information
Showing
14 changed files
with
325 additions
and
373 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
32 changes: 14 additions & 18 deletions
32
mon-pix/app/templates/authenticated/certifications/join.hbs
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,22 +1,18 @@ | ||
{{page-title (t "pages.certification-start.title")}} | ||
|
||
<header role="banner"> | ||
<NavbarHeader /> | ||
</header> | ||
<Global::AppLayout> | ||
<main class="main" role="main"> | ||
<PixBackgroundHeader id="main"> | ||
|
||
<main class="main" role="main"> | ||
<PixBackgroundHeader id="main"> | ||
{{#if this.model.isCertifiable}} | ||
<PixBlock @shadow="heavy" class="certification-start-page__block"> | ||
<CertificationBanners @certificationEligibility={{this.model}} @fullName={{this.currentUser.user.fullName}} /> | ||
<CertificationJoiner @onStepChange={{this.changeStep}} /> | ||
</PixBlock> | ||
{{else}} | ||
<CertificationNotCertifiable /> | ||
{{/if}} | ||
|
||
{{#if this.model.isCertifiable}} | ||
<PixBlock @shadow="heavy" class="certification-start-page__block"> | ||
<CertificationBanners @certificationEligibility={{this.model}} @fullName={{this.currentUser.user.fullName}} /> | ||
<CertificationJoiner @onStepChange={{this.changeStep}} /> | ||
</PixBlock> | ||
{{else}} | ||
<CertificationNotCertifiable /> | ||
{{/if}} | ||
|
||
</PixBackgroundHeader> | ||
</main> | ||
|
||
<Footer /> | ||
</PixBackgroundHeader> | ||
</main> | ||
</Global::AppLayout> |
24 changes: 10 additions & 14 deletions
24
mon-pix/app/templates/authenticated/certifications/start-loading.hbs
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,17 +1,13 @@ | ||
<header role="banner"> | ||
<NavbarHeader /> | ||
</header> | ||
<Global::AppLayout> | ||
<div class="background-banner-wrapper"> | ||
<div class="background-banner"></div> | ||
|
||
<div class="background-banner-wrapper"> | ||
<div class="background-banner"></div> | ||
<div class="app-nested-loader rounded-panel--over-background-banner rounded-panel rounded-panel--strong"> | ||
<p class="app-loader__image"> | ||
<img src="/images/interwind.gif" alt="" role="presentation" /> | ||
</p> | ||
<p class="app-loader__text">{{t "common.loading.default"}}</p> | ||
</div> | ||
|
||
<div class="app-nested-loader rounded-panel--over-background-banner rounded-panel rounded-panel--strong"> | ||
<p class="app-loader__image"> | ||
<img src="/images/interwind.gif" alt="" role="presentation" /> | ||
</p> | ||
<p class="app-loader__text">{{t "common.loading.default"}}</p> | ||
</div> | ||
|
||
</div> | ||
|
||
<Footer /> | ||
</Global::AppLayout> |
22 changes: 9 additions & 13 deletions
22
mon-pix/app/templates/authenticated/competences/details.hbs
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,15 +1,11 @@ | ||
{{page-title @model.name}} | ||
|
||
<header role="banner"> | ||
<NavbarHeader /> | ||
</header> | ||
|
||
<main id="main" class="main background-banner-wrapper competence-details" role="main"> | ||
<div class="background-banner"></div> | ||
|
||
<div class="rounded-panel rounded-panel--strong rounded-panel--over-background-banner"> | ||
<ScorecardDetails @scorecard={{@model}} /> | ||
</div> | ||
</main> | ||
|
||
<Footer /> | ||
<Global::AppLayout> | ||
<main id="main" class="main background-banner-wrapper competence-details" role="main"> | ||
<div class="background-banner"></div> | ||
|
||
<div class="rounded-panel rounded-panel--strong rounded-panel--over-background-banner"> | ||
<ScorecardDetails @scorecard={{@model}} /> | ||
</div> | ||
</main> | ||
</Global::AppLayout> |
114 changes: 55 additions & 59 deletions
114
mon-pix/app/templates/authenticated/competences/results.hbs
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,69 +1,65 @@ | ||
{{page-title (t "pages.competence-result.title")}} | ||
|
||
<header role="banner"> | ||
<NavbarHeader /> | ||
</header> | ||
<Global::AppLayout> | ||
<main id="main" class="background-banner-wrapper" role="main"> | ||
<div class="background-banner"></div> | ||
|
||
<main id="main" class="background-banner-wrapper" role="main"> | ||
<div class="background-banner"></div> | ||
|
||
<div class="rounded-panel rounded-panel--strong rounded-panel--over-background-banner"> | ||
<div class="competence-results-panel__header"> | ||
{{#if @model.scorecard.hasNotEarnedAnything}} | ||
<div class="competence-results-panel-header__banner competence-results-panel-header__banner--too-bad"> | ||
<p class="competence-results-panel-header__banner-result-comment">{{t | ||
"pages.competence-result.header.too-bad" | ||
}}</p> | ||
<div class="competence-results-banner__subtitle competence-results-banner__subtitle--small"> | ||
{{t "pages.competence-result.header.too-bad-subtitle"}} | ||
</div> | ||
</div> | ||
{{else if @model.scorecard.hasNotReachedLevelOne}} | ||
<div class="competence-results-panel-header__banner competence-results-panel-header__banner--not-bad"> | ||
<p class="competence-results-panel-header__banner-result-comment">{{t | ||
"pages.competence-result.header.not-bad" | ||
}}</p> | ||
<div class="competence-results-banner__subtitle competence-results-banner__subtitle--left"> | ||
{{t "pages.competence-result.header.not-bad-subtitle"}} | ||
</div> | ||
<div class="competence-results-banner__text"> | ||
<div class="competence-results-banner-text__results"> | ||
<div class="competence-results-banner-text-results__label">{{t | ||
"pages.competence-result.header.you-have-earned" | ||
}}</div> | ||
<div class="competence-results-banner-text-results__value">{{@model.scorecard.earnedPix}} | ||
{{t "common.pix"}}</div> | ||
<div class="rounded-panel rounded-panel--strong rounded-panel--over-background-banner"> | ||
<div class="competence-results-panel__header"> | ||
{{#if @model.scorecard.hasNotEarnedAnything}} | ||
<div class="competence-results-panel-header__banner competence-results-panel-header__banner--too-bad"> | ||
<p class="competence-results-panel-header__banner-result-comment">{{t | ||
"pages.competence-result.header.too-bad" | ||
}}</p> | ||
<div class="competence-results-banner__subtitle competence-results-banner__subtitle--small"> | ||
{{t "pages.competence-result.header.too-bad-subtitle"}} | ||
</div> | ||
</div> | ||
</div> | ||
{{else if @model.scorecard.hasReachedAtLeastLevelOne}} | ||
<div class="competence-results-panel-header__banner competence-results-panel-header__banner--congrats"> | ||
<p class="competence-results-panel-header__banner-result-comment">{{t | ||
"pages.competence-result.header.congratulations" | ||
}}</p> | ||
<div class="competence-results-banner__text competence-results-banner__text--spaced"> | ||
<div class="competence-results-banner-text__results competence-results-banner-text__results--spaced"> | ||
<div class="competence-results-banner-text-results__label">{{t | ||
"pages.competence-result.header.you-have-reached-level" | ||
}}</div> | ||
<div class="competence-results-banner-text-results__value">{{t "common.level"}} | ||
{{@model.scorecard.level}}</div> | ||
{{else if @model.scorecard.hasNotReachedLevelOne}} | ||
<div class="competence-results-panel-header__banner competence-results-panel-header__banner--not-bad"> | ||
<p class="competence-results-panel-header__banner-result-comment">{{t | ||
"pages.competence-result.header.not-bad" | ||
}}</p> | ||
<div class="competence-results-banner__subtitle competence-results-banner__subtitle--left"> | ||
{{t "pages.competence-result.header.not-bad-subtitle"}} | ||
</div> | ||
<div class="competence-results-banner-text__results competence-results-banner-text__results--spaced"> | ||
<div class="competence-results-banner-text-results__label">{{t | ||
"pages.competence-result.header.you-have-earned" | ||
}}</div> | ||
<div class="competence-results-banner-text-results__value">{{@model.scorecard.earnedPix}} | ||
{{t "common.pix"}}</div> | ||
<div class="competence-results-banner__text"> | ||
<div class="competence-results-banner-text__results"> | ||
<div class="competence-results-banner-text-results__label">{{t | ||
"pages.competence-result.header.you-have-earned" | ||
}}</div> | ||
<div class="competence-results-banner-text-results__value">{{@model.scorecard.earnedPix}} | ||
{{t "common.pix"}}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{else if @model.scorecard.hasReachedAtLeastLevelOne}} | ||
<div class="competence-results-panel-header__banner competence-results-panel-header__banner--congrats"> | ||
<p class="competence-results-panel-header__banner-result-comment">{{t | ||
"pages.competence-result.header.congratulations" | ||
}}</p> | ||
<div class="competence-results-banner__text competence-results-banner__text--spaced"> | ||
<div class="competence-results-banner-text__results competence-results-banner-text__results--spaced"> | ||
<div class="competence-results-banner-text-results__label">{{t | ||
"pages.competence-result.header.you-have-reached-level" | ||
}}</div> | ||
<div class="competence-results-banner-text-results__value">{{t "common.level"}} | ||
{{@model.scorecard.level}}</div> | ||
</div> | ||
<div class="competence-results-banner-text__results competence-results-banner-text__results--spaced"> | ||
<div class="competence-results-banner-text-results__label">{{t | ||
"pages.competence-result.header.you-have-earned" | ||
}}</div> | ||
<div class="competence-results-banner-text-results__value">{{@model.scorecard.earnedPix}} | ||
{{t "common.pix"}}</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{/if}} | ||
</div> | ||
{{#if @model.scorecard}} | ||
<ScorecardDetails @scorecard={{@model.scorecard}} /> | ||
{{/if}} | ||
</div> | ||
{{#if @model.scorecard}} | ||
<ScorecardDetails @scorecard={{@model.scorecard}} /> | ||
{{/if}} | ||
</div> | ||
</main> | ||
|
||
<Footer /> | ||
</main> | ||
</Global::AppLayout> |
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,9 +1,5 @@ | ||
{{page-title (t "pages.sitemap.title")}} | ||
|
||
<header role="banner"> | ||
<NavbarHeader /> | ||
</header> | ||
|
||
<Sitemap::Content @model={{@model}} /> | ||
|
||
<Footer /> | ||
<Global::AppLayout> | ||
<Sitemap::Content @model={{@model}} /> | ||
</Global::AppLayout> |
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,57 +1,53 @@ | ||
{{page-title (t "pages.user-account.title")}} | ||
|
||
<header role="banner"> | ||
<NavbarHeader @campaignParticipations={{@model.campaignParticipations}} /> | ||
</header> | ||
<Global::AppLayout> | ||
<main id="main" class="main" role="main"> | ||
<PixBackgroundHeader class="user-account"> | ||
<h1 class="user-account__title">{{t "pages.user-account.title"}}</h1> | ||
|
||
<main id="main" class="main" role="main"> | ||
<PixBackgroundHeader class="user-account"> | ||
<h1 class="user-account__title">{{t "pages.user-account.title"}}</h1> | ||
|
||
<div class="user-account__menu-and-content"> | ||
<PixBlock class="user-account__menu-block"> | ||
<nav class="user-account-menu" role="navigation"> | ||
<ul> | ||
<li> | ||
<LinkTo @route="authenticated.user-account.personal-information" class="user-account-menu__link"> | ||
<PixIcon @name="userCircle" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.personal-information.menu-link-title"}} | ||
</LinkTo> | ||
</li> | ||
<li> | ||
<LinkTo @route="authenticated.user-account.connection-methods" class="user-account-menu__link"> | ||
<PixIcon @name="link" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.connexion-methods.menu-link-title"}} | ||
</LinkTo> | ||
</li> | ||
{{#if this.isInternationalDomain}} | ||
<div class="user-account__menu-and-content"> | ||
<PixBlock class="user-account__menu-block"> | ||
<nav class="user-account-menu" role="navigation"> | ||
<ul> | ||
<li> | ||
<LinkTo @route="authenticated.user-account.language" class="user-account-menu__link"> | ||
<PixIcon @name="language" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.language.menu-link-title"}} | ||
<LinkTo @route="authenticated.user-account.personal-information" class="user-account-menu__link"> | ||
<PixIcon @name="userCircle" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.personal-information.menu-link-title"}} | ||
</LinkTo> | ||
</li> | ||
{{/if}} | ||
{{#if @model.accountInfo.canSelfDeleteAccount}} | ||
<li> | ||
<LinkTo | ||
@route="authenticated.user-account.delete-account" | ||
class="user-account-menu__link user-account-menu__link--important" | ||
> | ||
<PixIcon @name="delete" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.delete-account.menu-link-title"}} | ||
<LinkTo @route="authenticated.user-account.connection-methods" class="user-account-menu__link"> | ||
<PixIcon @name="link" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.connexion-methods.menu-link-title"}} | ||
</LinkTo> | ||
</li> | ||
{{/if}} | ||
</ul> | ||
</nav> | ||
</PixBlock> | ||
|
||
<PixBlock class="user-account__content"> | ||
{{outlet}} | ||
</PixBlock> | ||
</div> | ||
</PixBackgroundHeader> | ||
</main> | ||
{{#if this.isInternationalDomain}} | ||
<li> | ||
<LinkTo @route="authenticated.user-account.language" class="user-account-menu__link"> | ||
<PixIcon @name="language" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.language.menu-link-title"}} | ||
</LinkTo> | ||
</li> | ||
{{/if}} | ||
{{#if @model.accountInfo.canSelfDeleteAccount}} | ||
<li> | ||
<LinkTo | ||
@route="authenticated.user-account.delete-account" | ||
class="user-account-menu__link user-account-menu__link--important" | ||
> | ||
<PixIcon @name="delete" @ariaHidden={{true}} /> | ||
{{t "pages.user-account.delete-account.menu-link-title"}} | ||
</LinkTo> | ||
</li> | ||
{{/if}} | ||
</ul> | ||
</nav> | ||
</PixBlock> | ||
|
||
<Footer /> | ||
<PixBlock class="user-account__content"> | ||
{{outlet}} | ||
</PixBlock> | ||
</div> | ||
</PixBackgroundHeader> | ||
</main> | ||
</Global::AppLayout> |
Oops, something went wrong.