Skip to content

Commit c918ee0

Browse files
authored
Merge pull request #639 from Elao/team-default-avatars
[Team] Add Figma avatar pictures for members without pictures
2 parents 137acbe + e5959bc commit c918ee0

19 files changed

+5
-15
lines changed

assets/scss/components/_certification.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.certification {
22
margin: 0 0 15px;
33
padding: 5px 15px;
4-
max-width: 280px;
4+
max-width: 210px;
55
display: flex;
66
align-items: center;
77
font-family: 'antikor medium';
8-
font-size: 14px;
8+
font-size: 12px;
99
color: #fff;
1010
background: $color-brand;
1111

@@ -25,6 +25,7 @@
2525

2626
p {
2727
margin-left: 20px;
28+
margin-bottom: 0;
2829

2930
span {
3031
display: block;

content/images/members/bleveque.jpg

143 KB
Loading

content/images/members/default.jpg

-52.1 KB
Binary file not shown.

content/images/members/eflahaut.jpg

158 KB
Loading

content/images/members/llapeyre.jpg

147 KB
Loading
153 KB
Loading

content/images/members/ogandillon.jpg

-153 KB
Loading

content/images/members/xavierr.jpg

144 KB
Loading

content/images/members/yheitz.jpg

82.5 KB
Loading

content/member/_sample.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
active: false # make it true
22
#🚲: true # velo-taffeur
3-
#anonymousTeamPicture: true # To protect your image privacy
43

54
# Bio
65
name: John Doe

content/member/bleveque.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
active: true
2-
anonymousTeamPicture: true
32

43
name: Benjamin Lévêque
54
position: "Responsable Technique"

content/member/ccastillo.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
active: false
22
🚲: true
3-
anonymousTeamPicture: false # To protect your image privacy
43

54
# Bio
65
name: Camille Castillo

content/member/eflahaut.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
active: true
2-
anonymousTeamPicture: true
32

43
name: Emmanuelle Flahaut
54
gender: female

content/member/llapeyre.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
active: true
2-
anonymousTeamPicture: true # until we have a picture
32

43
name: Lod Lapeyre
54
pseudo: ~

content/member/slabbe.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
active: false # make it true
22
#🚲: true # velo-taffeur
3-
#anonymousTeamPicture: true # To protect your image privacy
43

54
# Bio
65
name: Sébastien Labbé

content/member/xavierr.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
active: true
2-
anonymousTeamPicture: true
32

43
name: Xavier R
54
position: "Développeur"

content/member/yheitz.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
active: true
2-
anonymousTeamPicture: true
32

43
name: Yves Heitz
54
position: "DevOps"

src/Model/Member.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ class Member
5353
/** Vélotafeur */
5454
public bool $🚲 = false;
5555

56-
/** Use an anonymous team picture */
57-
public bool $anonymousTeamPicture = false;
58-
5956
public ?\DateTime $integrationDate = null;
6057
public ?\DateTimeInterface $lastModified = null;
6158

@@ -70,7 +67,7 @@ public function __construct(string $slug, string $name)
7067

7168
public function getTeamPicture(): string
7269
{
73-
return sprintf('content/images/members/%s.jpg', $this->anonymousTeamPicture ? 'default' : $this->slug);
70+
return sprintf('content/images/members/%s.jpg', $this->slug);
7471
}
7572

7673
public function getAvatar(): ?string

templates/team/index.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
{% set certif = content_get('App\\Model\\Certification', c) %}
7575
<span class="certification">
7676
<img src="{{ asset(certif.logoPath) }}" alt="" />
77-
<p>{{ 'certification_description'|trans({ member_gender: member.gender }) }} <span>{{ certif.title|u.title }}</span></p>
77+
<p>{{ 'certification_description'|trans({ member_gender: member.gender }) }} {{ certif.title|u.title }}</p>
7878
</span>
7979
{% endfor %}
8080
</a>

0 commit comments

Comments
 (0)