Skip to content

Commit

Permalink
[FEATURE] Ajustements sur les mires d'inscription/connexion (pix-15056)
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Oct 31, 2024
2 parents adf10d6 + ab7d403 commit 41da2de
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 31 deletions.
25 changes: 19 additions & 6 deletions mon-pix/app/components/authentication-layout/header.gjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
<template>
<header class="authentication-layout-header" role="banner">
<img class="authentication-layout-header__pix-logo" alt="" role="presentation" src="/images/pix-logo.svg" />
{{yield}}
</header>
</template>
import { service } from '@ember/service';
import Component from '@glimmer/component';

export default class Header extends Component {
@service url;

get showcase() {
return this.url.showcase;
}

<template>
<header class="authentication-layout-header" role="banner">
<a href={{this.showcase.url}} class="pix-logo__link">
<img class="pix-logo__image" src="/images/pix-logo.svg" alt="{{this.showcase.linkText}}" />
</a>
{{yield}}
</header>
</template>
}
28 changes: 18 additions & 10 deletions mon-pix/app/components/authentication-layout/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.authentication-layout {
width: 100vw;
width: 100%;
min-height: 100vh;
background-color: var(--pix-neutral-0);

Expand All @@ -15,6 +15,15 @@
}
}

@include device-is('tablet'){
.authentication-layout {
.authentication-layout__main {
width: 70%;
margin: 0 auto;
}
}
}

@include device-is('desktop') {
.authentication-layout {
display: grid;
Expand Down Expand Up @@ -51,15 +60,14 @@
flex-direction: column;
grid-column: 7 / span 5;
width: 100%;
padding: 0;

> main {
flex-grow: 1;
}
max-width: 800px;
padding: 20px auto;
}
}
}



.authentication-layout-header {
display: flex;
align-items: center;
Expand All @@ -73,7 +81,7 @@

.authentication-layout-footer {
width: 100%;
margin-top: var(--pix-spacing-10x);
margin-top: var(--pix-spacing-12x);

.footer-container-content__navigation {
margin-top: var(--pix-spacing-2x);
Expand All @@ -85,10 +93,10 @@

text-decoration: underline;
}
}

.footer-navigation__item{
margin: 0 var(--pix-spacing-3x) 0 0;
.footer-navigation__item {
margin: 0 var(--pix-spacing-3x) 0 0;
}
}
}

1 change: 1 addition & 0 deletions mon-pix/app/components/language-switcher.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<PixSelect
class="language-switcher"
@id="language-switcher"
@icon="earth-europe"
@value={{this.selectedLanguage}}
Expand Down
3 changes: 3 additions & 0 deletions mon-pix/app/services/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ export default class Url extends Service {
if (currentLanguage === ENGLISH_INTERNATIONAL_LOCALE) {
return `https://pix.${this.currentDomain.getExtension()}/en`;
}
if (currentLanguage === DUTCH_INTERNATIONAL_LOCALE) {
return `https://pix.${this.currentDomain.getExtension()}/nl-be`;
}
return `https://pix.${this.currentDomain.getExtension()}`;
}

Expand Down
1 change: 1 addition & 0 deletions mon-pix/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ of an adaptative/mobile-first approach — refactoring is welcome here */
@import 'components/footer';
@import 'components/form-textfield';
@import 'components/hexagon-score';
@import 'components/language-switcher';
@import 'components/learning-more-tutorial-panel';
@import 'components/levelup-notif';
@import 'components/login-form';
Expand Down
3 changes: 3 additions & 0 deletions mon-pix/app/styles/components/language-switcher.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.language-switcher {
min-width: 170px;
}
21 changes: 6 additions & 15 deletions mon-pix/public/images/illustrations/authentication.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 41da2de

Please sign in to comment.