Skip to content

Commit fca4037

Browse files
committed
feat(front): footer dsfr portails admin & usagers
1 parent fb0c01b commit fca4037

File tree

5 files changed

+81
-305
lines changed

5 files changed

+81
-305
lines changed

packages/portail-admins/src/app/app.component.html

Lines changed: 37 additions & 148 deletions
Original file line numberDiff line numberDiff line change
@@ -116,151 +116,40 @@
116116
<main role="main" id="page">
117117
<router-outlet></router-outlet>
118118
</main>
119-
<footer id="footer" role="contentinfo" class="d-print-none">
120-
<div class="bg-light py-3 border-bottom-dark">
121-
<div class="container my-2 py-3">
122-
<div class="row">
123-
<div class="col my-2">
124-
<p class="fw-bold">Cadre juridique</p>
125-
<ul>
126-
<li>
127-
<a href="https://domifa.fabrique.social.gouv.fr/accessibilite"
128-
>Accessibilité: partiellement conforme
129-
</a>
130-
</li>
131-
132-
<li>
133-
<a
134-
ariaCurrentWhenActive="page"
135-
routerLink="/mentions-legales"
136-
routerLinkActive="router-link-active"
137-
>Mentions légales</a
138-
>
139-
</li>
140-
<li>
141-
<a
142-
routerLink="/cgu"
143-
ariaCurrentWhenActive="page"
144-
routerLinkActive="router-link-active"
145-
>CGU</a
146-
>
147-
</li>
148-
<li>
149-
<a
150-
routerLink="/confidentialite"
151-
ariaCurrentWhenActive="page"
152-
routerLinkActive="router-link-active"
153-
>Politique de confidentialité</a
154-
>
155-
</li>
156-
<li>
157-
<a
158-
routerLink="/plan-site"
159-
ariaCurrentWhenActive="page"
160-
routerLinkActive="router-link-active"
161-
>Plan du site</a
162-
>
163-
</li>
164-
</ul>
165-
</div>
166-
167-
<div class="col-12 col-md-4 my-2">
168-
<p class="fw-bold">Nos partenaires</p>
169-
<ul>
170-
<li *ngFor="let link of partnerLinks">
171-
<a [href]="link.path" target="_blank" rel="noopener noreferrer">
172-
{{ link.label }}
173-
</a>
174-
</li>
175-
</ul>
176-
</div>
177-
</div>
178-
<div class="container my-2 py-3">
179-
<div class="row align-items-center">
180-
<div class="col-12 col-md-4">
181-
<a
182-
id="logo-footer"
183-
href="https://solidarites.gouv.fr/"
184-
target="_blank"
185-
rel="noopener noreferrer"
186-
title="Ministère du Travail, de la Santé, des Solidarités et des familles"
187-
>
188-
<img
189-
rel="noopener noreferrer"
190-
src="/assets/images/logo-ministere.jpg"
191-
alt="Ministère du Travail, de la Santé, des Solidarités et des familles"
192-
/>
193-
</a>
194-
</div>
195-
<div class="col-12 col-md-8">
196-
<ul
197-
data-component-id="footer"
198-
class="content-list"
199-
id="menu-footer-external"
200-
>
201-
<li class="content-item">
202-
<a
203-
href="https://www.info.gouv.fr/"
204-
target="_blank"
205-
class="content-link"
206-
rel="noopener external"
207-
title="info.gouv.fr - nouvelle fenêtre"
208-
>info.gouv.fr
209-
</a>
210-
</li>
211-
<li class="content-item">
212-
<a
213-
href="https://www.service-public.fr/"
214-
target="_blank"
215-
class="content-link"
216-
rel="noopener external"
217-
title="service-public.fr - nouvelle fenêtre"
218-
>service-public.fr
219-
</a>
220-
</li>
221-
<li class="content-item">
222-
<a
223-
href="https://www.legifrance.gouv.fr/"
224-
target="_blank"
225-
class="content-link"
226-
rel="noopener external"
227-
title="legifrance.gouv.fr - nouvelle fenêtre"
228-
>legifrance.gouv.fr
229-
</a>
230-
</li>
231-
<li class="content-item">
232-
<a
233-
href="https://www.data.gouv.fr/fr/"
234-
target="_blank"
235-
class="content-link"
236-
rel="noopener external"
237-
title="data.gouv.fr - nouvelle fenêtre"
238-
>data.gouv.fr
239-
</a>
240-
</li>
241-
</ul>
242-
</div>
243-
</div>
244-
</div>
245-
<div class="bg-light border-top-dark">
246-
<div class="container my-2 py-4">
247-
<p>
248-
DomiFa est une solution gratuite et complète de gestion des
249-
domiciliations pour les structures domiciliataires (centres d'Action
250-
Sociale, communes, organismes agréés).
251-
</p>
252-
253-
<p>
254-
Sauf mention contraire, tous les textes de ce site sont sous
255-
<a
256-
href="https://github.com/etalab/licence-ouverte/blob/master/LO.md"
257-
target="_blank"
258-
rel="noopener noreferrer"
259-
>licence etalab-2.0
260-
</a>
261-
</p>
262-
</div>
263-
</div>
264-
</div>
265-
</div>
266-
</footer>
119+
<dsfr-footer
120+
[logo]="{
121+
label: 'République<br>Française',
122+
imageAlt: 'République française logo',
123+
tooltipMessage: '',
124+
navigation: { routerLink: '/' }
125+
}"
126+
[display]="true"
127+
[mandatoryLinks]="[
128+
{
129+
label: 'Accessibilité : partiellement conforme',
130+
link: 'https://domifa.fabrique.social.gouv.fr/accessibilite',
131+
linkTarget: '_blank'
132+
},
133+
{
134+
label: 'Mentions légales',
135+
link: '/mentions-legales',
136+
linkTarget: '_blank'
137+
},
138+
{
139+
label: 'Conditions générales d’utilisation',
140+
link: '/cgu',
141+
linkTarget: '_blank'
142+
},
143+
{
144+
label: 'Polotiques de confidentialité',
145+
link: '/confidentialite',
146+
linkTarget: '_blank'
147+
},
148+
{
149+
label: 'Plan du site',
150+
link: '/plan-site',
151+
linkTarget: '_blank'
152+
}
153+
]"
154+
license="Sauf mention explicite de propriété intellectuelle détenue par des tiers, les contenus de ce site sont proposés sous <a href='https://github.com/etalab/licence-ouverte/blob/master/LO.md' _target='_blank'>licence etalab-2.0</a>"
155+
></dsfr-footer>

packages/portail-admins/src/app/modules/shared/shared.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { FonctionSelectionComponent } from "./components/fonction-selection/fonction-selection.component";
1818
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
1919
import { FonctionFormatPipe } from "./pipes/fonction-format.pipe";
20-
import { DsfrAlertModule } from "@edugouvfr/ngx-dsfr";
20+
import { DsfrAlertModule, DsfrFooterModule } from "@edugouvfr/ngx-dsfr";
2121

2222
@NgModule({
2323
declarations: [
@@ -29,6 +29,8 @@ import { DsfrAlertModule } from "@edugouvfr/ngx-dsfr";
2929
FonctionSelectionComponent,
3030
],
3131
exports: [
32+
DsfrAlertModule,
33+
DsfrFooterModule,
3234
UcFirstPipe,
3335
FormatPhoneNumberPipe,
3436
FormatBigNumberPipe,

packages/portail-admins/src/assets/css/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111

1212
#page {
13-
min-height: calc(90vh - 78px);
13+
min-height: calc(90vh - 200px);
1414
}
1515

1616
.modal-backdrop.show {

0 commit comments

Comments
 (0)