Skip to content

Commit c8cae83

Browse files
committed
fixes cards
1 parent 2287321 commit c8cae83

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

src/app/components/card-asso/card-asso.component.html

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
<div class="card">
22
<div class="card-header">
33
<h4>{{ association.name }}</h4>
4+
<p class="rna">
5+
<small>RNA: {{ association.idRna }}</small>
6+
</p>
47
</div>
58
<div class="card-body">
6-
<!-- <p>
7-
<small>RNA: {{ association.idRna }}</small>
8-
</p> -->
99
<p class="description">{{ association.description }}</p>
10-
<!-- <div class="address">
10+
<div class="address">
1111
<p>
12-
{{ association.addressOrganization.cplt1 }} {{ association.addressOrganization.cp }}
13-
{{ association.addressOrganization.commune }}
12+
<small
13+
>{{ association.addressOrganization.cplt1 }} {{ association.addressOrganization.cp }}
14+
{{ association.addressOrganization.commune }}</small
15+
>
1416
</p>
15-
</div> -->
16-
<!-- <p><strong>Date de création :</strong> {{ association.creationDate | date: 'dd/MM/yyyy' }}</p> -->
17+
</div>
18+
<p>
19+
<small><strong>Date de création :</strong> {{ association.creationDate | date: 'dd/MM/yyyy' }}</small>
20+
</p>
1721
</div>
1822
<div class="card-footer">
1923
<p class="type" [style.background-color]="association.type.color">

src/app/components/card-asso/card-asso.component.scss

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
height: 40%;
33
display: flex;
44
flex-direction: column;
5-
justify-content: space-between;
5+
justify-content: space-evenly;
66
width: 100%;
77
}
88

@@ -14,7 +14,7 @@
1414
box-shadow: var(--button-box-shadow);
1515
display: flex;
1616
flex-direction: column;
17-
justify-content: space-between;
17+
justify-content: space-around;
1818
min-width: 300px;
1919
height: 100%;
2020
flex: 1;
@@ -24,8 +24,8 @@
2424
.card-header {
2525
display: flex;
2626
justify-content: space-between;
27-
align-items: center;
28-
margin-bottom: 16px;
27+
align-items: flex-start;
28+
flex-direction: column;
2929
}
3030

3131
.card-header h4 {
@@ -41,6 +41,9 @@
4141
-moz-hyphens: auto;
4242
hyphens: auto;
4343
}
44+
.rna {
45+
align-self: flex-start;
46+
}
4447

4548
.type {
4649
display: -webkit-box;
@@ -65,9 +68,6 @@
6568
justify-content: space-between;
6669
align-items: center;
6770
}
68-
.card-body p {
69-
margin: 8px 0;
70-
}
7171

7272
.address {
7373
display: -webkit-box;
@@ -80,6 +80,7 @@
8080
margin-bottom: 8px;
8181
}
8282
.description {
83+
margin-bottom: 8px;
8384
display: -webkit-box;
8485
-webkit-line-clamp: 3;
8586
-webkit-box-orient: vertical;

src/app/components/carousel-card/carousel-card.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ main {
1919
padding: 16px 0;
2020

2121
& > * {
22-
min-height: 220px;
22+
min-height: 250px;
2323
flex: 1;
2424
}
2525
}

src/app/pages/asso-page/asso-page.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ main {
3636
}
3737
}
3838
.asso-list-container > *:not(:last-child) {
39-
min-height: 200px;
39+
min-height: 260px;
4040
flex: 1;
4141
width: 50%;
4242
cursor: pointer;

0 commit comments

Comments
 (0)