diff --git a/src/app/header/header.component.html b/src/app/header/header.component.html index 045aa764b8794aac3f73ed8b168ec3e6e1c528e5..600d0e766cf551823721765db01a3edc70d9f31b 100644 --- a/src/app/header/header.component.html +++ b/src/app/header/header.component.html @@ -3,13 +3,13 @@ <div fxLayout="row"> <!-- <img class="logo-grand-lyon" src="/assets/logos/ram_logo.svg" alt /> --> <div fxLayout="column" fxLayoutAlign="center"> - <p>Réseau des Acteurs de la Médiation</p> + <p>Réseau des Acteurs de la Médiation Numérique</p> <p>de la Métropole de Lyon</p> </div> </div> </div> <div fxLayout="row" class="right-header" fxLayoutAlign="center center" fxLayoutGap="3vw"> - <a routerLink="/home" [routerLinkActive]="'active'" i18n>Acteurs de la médiation</a> + <a routerLink="/home" [routerLinkActive]="'active'" i18n>Acteurs de la médiation numérique</a> <!-- <a routerLink="/resources" [routerLinkActive]="'active'" i18n>Ressources</a> <a routerLink="/projects" [routerLinkActive]="'active'" i18n>Projets</a> --> <a routerLink="/about" [routerLinkActive]="'active'" i18n>Qui sommes-nous ?</a> diff --git a/src/app/structure-list/components/card/card.component.html b/src/app/structure-list/components/card/card.component.html index 4848aad295a9a4baeb063b113fcc0c730ab44800..8bedea0fb332e5f4a969c2eae62cacf22520427e 100644 --- a/src/app/structure-list/components/card/card.component.html +++ b/src/app/structure-list/components/card/card.component.html @@ -1,14 +1,11 @@ <div class="structure" fxLayout="column" (click)="cardClicked()" (mouseover)="cardHover()"> - <span class="nomStructure">{{ structure.nomDeVotreStructure }}</span> - - <div class="headerStructure" fxLayout="row" fxLayoutAlign="space-between center"> - <span class="typeStructure">{{ structure.typeDeStructure }}</span> - + <div class="headerStructure" fxLayout="row" fxLayoutAlign="space-between center" fxLayoutGap="16px"> + <span class="nomStructure">{{ structure.nomDeVotreStructure }}</span> <div *ngIf="structure.distance" class="distanceStructure" fxLayout="row" - fxLayoutAlign="center center" + fxLayoutAlign="end center" fxLayoutGap="20px" > <div fxLayout="row" fxLayoutAlign="center center"> @@ -19,6 +16,7 @@ </div> </div> </div> + <span class="typeStructure">{{ structure.typeDeStructure }}</span> <br /> <app-structure-opening-status [structure]="structure"></app-structure-opening-status> </div> diff --git a/src/app/structure-list/components/card/card.component.scss b/src/app/structure-list/components/card/card.component.scss index aefdd8ed88bbe7427cbfec8c1e4948592b3dafa7..47ca330e629dde8fd95ebc8a2882410dc19c4795 100644 --- a/src/app/structure-list/components/card/card.component.scss +++ b/src/app/structure-list/components/card/card.component.scss @@ -31,10 +31,12 @@ color: $grey-1; @include cn-bold-20; padding-bottom: 5px; + width: 100%; } .distanceStructure { @include cn-regular-16; color: $grey-1; + width: 50%; } &:last-child { border-bottom: none; diff --git a/src/app/structure-list/components/modal-filter/modal-filter.component.scss b/src/app/structure-list/components/modal-filter/modal-filter.component.scss index 96e21d4c81c9bb104262cffe426105a1a9b40248..e33b41fe5c000c1de41f1696708677f5f73befbd 100644 --- a/src/app/structure-list/components/modal-filter/modal-filter.component.scss +++ b/src/app/structure-list/components/modal-filter/modal-filter.component.scss @@ -72,7 +72,7 @@ } } .ligneFiltre { - padding: 0 5px; + padding: 5px; } h4 { @include cn-bold-14; diff --git a/src/app/structure-list/components/search/search.component.html b/src/app/structure-list/components/search/search.component.html index 35639e453e6c32c81cf6f350bb9464041165cfc8..197c25733caee16ad744a9ee80b54822e64993b7 100644 --- a/src/app/structure-list/components/search/search.component.html +++ b/src/app/structure-list/components/search/search.component.html @@ -6,7 +6,7 @@ <form [formGroup]="searchForm" fxLayout="row" - fxLayoutGap="1.5vw" + fxLayoutGap="16px" fxLayoutAlign=" center" (ngSubmit)="applyFilter(searchForm.value.searchTerm)" > @@ -20,7 +20,7 @@ </form> </div> <div (clickOutside)="closeModal()"> - <div class="btnSection" fxLayout="row" fxLayoutAlign="space-between center"> + <div class="btnSection" fxLayout="row" fxLayoutAlign="space-between center" fxLayoutGap="16px"> <button class="btn-filter" type="button" diff --git a/src/app/structure-list/components/search/search.component.scss b/src/app/structure-list/components/search/search.component.scss index 1c2a86a42f51e4932ec27750a7764d3caba77ee1..af7bfa1ad8d7bf3c6628b4b7fdb0a46c2174b40c 100644 --- a/src/app/structure-list/components/search/search.component.scss +++ b/src/app/structure-list/components/search/search.component.scss @@ -39,7 +39,7 @@ button { background: $white; height: 40px; - width: 190px; + width: 100%; border: 1px solid $grey-4; padding: 3px 16px 3px 16px; outline: none; diff --git a/src/app/structure-list/components/structure-details/structure-details.component.html b/src/app/structure-list/components/structure-details/structure-details.component.html index c81d453cb131c529697b68296e2c593befc58328..3d2d9253fb20b1438db954df3daedf090490a965 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.html +++ b/src/app/structure-list/components/structure-details/structure-details.component.html @@ -48,7 +48,7 @@ </div> <div fxLayout="row" fxLayoutAlign="none flex-end" fxLayoutGap="13px"> <app-svg-icon [type]="'ico'" [icon]="'calendar'"></app-svg-icon> - <p>Mise-à -jour le {{ structure.derniereModification | date: 'shortDate' }}</p> + <p>Mise-à -jour le {{ structure.derniereModification | date: 'mediumDate' }}</p> </div> </div> </div> @@ -73,17 +73,23 @@ </div> </div> <!-- Services --> - <div fxLayout="column" class="structrue-details-block" fxLayoutAlign="baseline baseline" fxLayoutGap="20px"> + <div + *ngIf="isBaseSkills() || isAccessRights()" + fxLayout="column" + class="structrue-details-block" + fxLayoutAlign="baseline baseline" + fxLayoutGap="20px" + > <div fxLayout="row" fxLayoutAlign="none flex-end" fxLayoutGap="20px"> <app-svg-icon [type]="'ico'" [icon]="'services'" [iconClass]="'icon-32'"></app-svg-icon> <h2>Services</h2> </div> <div fxLayout="row" class="w-100"> - <div fxFlex="50%" *ngIf="baseSkills && baseSkills[0] !== undefined"> + <div fxFlex="50%" *ngIf="isBaseSkills()"> <h3 class="subtitle">Compétences de base</h3> <p *ngFor="let skill of baseSkills">{{ skill.text }}</p> </div> - <div fxFlex="50%" *ngIf="accessRights && accessRights[0] !== undefined"> + <div fxFlex="50%" *ngIf="isAccessRights()"> <h3 class="subtitle">Accès au droits</h3> <p *ngFor="let rights of accessRights">{{ rights.text }}</p> </div> diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts index 995d148ac0cef7c5f5d56353fe8e5c7ec8c5f1bd..825eb64bdd6566e3b7379923930364362e7c43a8 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.ts +++ b/src/app/structure-list/components/structure-details/structure-details.component.ts @@ -81,4 +81,11 @@ export class StructureDetailsComponent implements OnInit { } public keepOriginalOrder = (a, b) => a.key; + + public isBaseSkills(): boolean { + return this.baseSkills && this.baseSkills[0] !== undefined; + } + public isAccessRights(): boolean { + return this.accessRights && this.accessRights[0] !== undefined; + } } diff --git a/src/styles.scss b/src/styles.scss index 2d6db92a4650118d681d882823bf1bf86d81aa7c..5cd277a87fbe203db36d839f62688173bf716355 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -88,7 +88,6 @@ a { } } label { - align-items: center; grid-template-columns: min-content auto; display: inline-grid; cursor: pointer;