-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(junior): add footer with legal notices and data info
Co-authored-by: Yannick François <[email protected]>
- Loading branch information
1 parent
eeba227
commit ceafab3
Showing
6 changed files
with
207 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { service } from '@ember/service'; | ||
import Component from '@glimmer/component'; | ||
|
||
export default class Footer extends Component { | ||
@service url; | ||
|
||
get legalNoticesUrl() { | ||
return this.url.legalNoticesUrl; | ||
} | ||
|
||
get dataProtectionPolicyUrl() { | ||
return this.url.dataProtectionPolicyUrl; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<footer id="footer" class="footer"> | ||
<div class="footer__container"> | ||
<div class="footer-container__content"> | ||
<nav class="footer-container-content__navigation" role="navigation" aria-label={{t "navigation.footer.label"}}> | ||
<ul class="footer-container-content__navigation-list"> | ||
<li> | ||
<a | ||
href="{{t 'navigation.footer.legal-notices-url'}}" | ||
target="_blank" | ||
class="footer-navigation__item" | ||
rel="noopener noreferrer" | ||
> | ||
{{t "navigation.footer.legal-notices"}} | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="{{t 'navigation.footer.student-data-protection-policy-url'}}" | ||
target="_blank" | ||
class="footer-navigation__item" | ||
rel="noopener noreferrer" | ||
> | ||
{{t "navigation.footer.student-data-protection-policy"}} | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</footer> |
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 |
---|---|---|
@@ -0,0 +1,148 @@ | ||
#footer { | ||
margin-top: auto; | ||
} | ||
|
||
.footer__container { | ||
display: flex; | ||
flex-direction: column; | ||
max-width: 1280px; | ||
padding: $pix-spacing-m 20px; | ||
|
||
@include device-is('desktop') { | ||
flex-direction: row; | ||
margin: 0 auto; | ||
} | ||
} | ||
|
||
.footer-container { | ||
&__content { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--pix-spacing-8x); | ||
width: 100%; | ||
|
||
@include device-is('tablet') { | ||
flex-direction: column; | ||
justify-content: space-between; | ||
border: none; | ||
} | ||
|
||
@include device-is('desktop') { | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
} | ||
|
||
&__logos { | ||
display: flex; | ||
align-items: center; | ||
padding-bottom: 16px; | ||
|
||
@include device-is('tablet') { | ||
padding-bottom: 0; | ||
} | ||
|
||
img { | ||
max-width: unset; | ||
} | ||
} | ||
} | ||
|
||
.footer-container-content { | ||
&__navigation { | ||
@include device-is('tablet') { | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
|
||
@include device-is('desktop') { | ||
margin-left: 12px; | ||
} | ||
|
||
&-list { | ||
display: flex; | ||
flex-wrap: wrap; | ||
margin: 0; | ||
margin-top: 20px; | ||
padding: 0; | ||
list-style: none; | ||
|
||
@include device-is('tablet') { | ||
flex-direction: row; | ||
align-self: center; | ||
} | ||
|
||
@include device-is('desktop') { | ||
margin: 0; | ||
padding-top: 0; | ||
} | ||
} | ||
} | ||
|
||
&__copyrights { | ||
padding-top: 16px; | ||
color: $pix-neutral-50; | ||
font-size: 0.75rem; | ||
font-family: $font-roboto; | ||
letter-spacing: 0.008rem; | ||
|
||
@include device-is('desktop') { | ||
padding: 0; | ||
white-space: nowrap; | ||
} | ||
} | ||
} | ||
|
||
.footer-navigation { | ||
&__item { | ||
display: inline-block; | ||
padding: 0 12px 6px 0; | ||
color: $pix-neutral-60; | ||
font-size: 0.8125rem; | ||
font-family: $font-roboto; | ||
line-height: 1.375rem; | ||
letter-spacing: 0.009rem; | ||
|
||
&--internal-link { | ||
&:visited { | ||
color: $pix-neutral-60; | ||
} | ||
} | ||
|
||
@include device-is('desktop') { | ||
margin: 0 10px; | ||
padding: 0; | ||
} | ||
|
||
&.active { | ||
color: $pix-primary-70; | ||
text-decoration: none; | ||
} | ||
|
||
&:focus { | ||
color: $pix-neutral-50; | ||
text-decoration: none; | ||
} | ||
|
||
&:hover { | ||
color: $pix-primary-70; | ||
text-decoration: none; | ||
cursor: pointer; | ||
} | ||
} | ||
} | ||
|
||
.footer-logos { | ||
display: flex; | ||
|
||
&__french-government { | ||
> img { | ||
height: 45px; | ||
margin-right: 24px; | ||
|
||
@include device-is('tablet') { | ||
height: 54px; | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
<main> | ||
{{outlet}} | ||
</main> | ||
</div> | ||
</div> | ||
<Footer /> |
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