Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Ajouter le pied de page avec les mentions légales et les mentions de protection des données des élèves sur Pix Junior (PIX-13137). #9464

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions junior/app/components/footer/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<footer id="footer" class="footer">
<nav class="footer__navigation" role="navigation" aria-label={{t "navigation.footer.label"}}>
<ul class="footer-navigation__list">
<li>
<a
href="{{t 'navigation.footer.legal-notice-url'}}"
target="_blank"
class="footer-navigation__item"
rel="noopener noreferrer"
>
{{t "navigation.footer.legal-notice"}}
</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>
</footer>
9 changes: 8 additions & 1 deletion junior/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@import 'components/challenge/challenge-item-proposals';
@import 'components/mission-card/card';
@import 'components/bubble';
@import 'components/footer';
@import 'components/issue';
@import 'components/robot-dialog';

Expand All @@ -28,7 +29,6 @@
@import 'pages/organization-code.scss';
@import 'pages/school.scss';


body {
color: var(--pix-neutral-900);
font-weight: 600;
Expand All @@ -55,5 +55,12 @@ b {
@include device-is('large-screen') {
margin: 32px auto;
}

main {
display: flex;
flex-direction: column;
min-height: 95vh;
}
}


31 changes: 31 additions & 0 deletions junior/app/styles/components/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#footer {
margin:auto 20px 20px 20px;
}

.footer-navigation {
&__list {
display: flex;
flex-wrap: wrap;
}

&__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;

&:focus {
color: $pix-neutral-50;
text-decoration: none;
}

&:hover {
color: $pix-primary-70;
text-decoration: none;
cursor: pointer;
}
}
}
3 changes: 2 additions & 1 deletion junior/app/templates/organization-code.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
<PixButton class="pix1d-button" @type="submit" @shape="rounded" @size="large">
{{t "pages.home.go-to-school"}}
</PixButton>
</form>
</form>
<Footer />
3 changes: 2 additions & 1 deletion junior/app/templates/school/divisions.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
<p class="item__title">{{division}}</p>
</LinkTo>
{{/each}}
</div>
</div>
<Footer />
Loading