Skip to content

Commit 57299b1

Browse files
committed
feat: update chi siamo page
1 parent 74a1a6a commit 57299b1

File tree

6 files changed

+45
-23
lines changed

6 files changed

+45
-23
lines changed
88 KB
Loading
91.4 KB
Loading
95 KB
Loading
42.9 KB
Loading

src/app/pages/team/team.component.html

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,43 @@
22
<div class="mx-auto max-w-4xl">
33
<h1 class="mb-4 text-center text-3xl font-bold">{{ 'about.title' | transloco }}</h1>
44
<p class="mb-10 text-center text-(--color-muted)">{{ 'about.description' | transloco }}</p>
5-
<ul class="flex list-none flex-wrap justify-center gap-6 p-0">
5+
<ul class="grid list-none grid-cols-2 gap-8 p-0">
66
@for (member of members; track member.name) {
7-
<li class="flex w-44 flex-col items-center gap-3 rounded-(--radius) border border-(--border) bg-(--surface) p-6 text-center">
8-
<div
9-
class="flex h-14 w-14 shrink-0 items-center justify-center rounded-full bg-(--color-primary) text-xl font-bold text-white"
10-
>
11-
{{ member.name[0] }}
12-
</div>
7+
<li class="flex flex-col items-center gap-4 rounded-(--radius) border border-(--border) bg-(--surface) p-8 text-center">
8+
<img
9+
[ngSrc]="member.image"
10+
width="160"
11+
height="160"
12+
[alt]="member.name"
13+
class="h-40 w-40 rounded-full object-cover"
14+
/>
1315
<div>
14-
<p class="font-semibold">{{ member.name }}</p>
15-
<p class="mt-1 text-sm text-(--color-muted)">{{ 'about.role' | transloco }}</p>
16-
@if (member.github) {
17-
<a
18-
[href]="member.github"
19-
target="_blank"
20-
rel="noopener"
21-
class="mt-1 block text-sm text-(--color-primary) no-underline hover:underline"
22-
>GitHub</a
23-
>
24-
}
16+
<p class="text-lg font-semibold">{{ member.name }}</p>
17+
<p class="mt-1 text-(--color-muted)">{{ 'about.role' | transloco }}</p>
18+
<div class="mt-3 flex justify-center gap-3">
19+
@if (member.github) {
20+
<a
21+
[href]="member.github"
22+
target="_blank"
23+
rel="noopener"
24+
aria-label="GitHub"
25+
class="flex items-center gap-2 text-base font-medium text-(--color-primary) no-underline hover:underline"
26+
>
27+
<app-icon-github />GitHub
28+
</a>
29+
}
30+
@if (member.linkedin) {
31+
<a
32+
[href]="member.linkedin"
33+
target="_blank"
34+
rel="noopener"
35+
aria-label="LinkedIn"
36+
class="flex items-center gap-2 text-base font-medium text-(--color-secondary) no-underline hover:underline"
37+
>
38+
<app-icon-linkedin />LinkedIn
39+
</a>
40+
}
41+
</div>
2542
</div>
2643
</li>
2744
}
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
import { NgOptimizedImage } from '@angular/common';
23
import { TranslocoModule } from '@jsverse/transloco';
4+
import { IconGithubComponent } from '../../components/shared/icons/icon-github/icon-github.component';
5+
import { IconLinkedinComponent } from '../../components/shared/icons/icon-linkedin/icon-linkedin.component';
36

47
interface TeamMember {
58
readonly name: string;
9+
readonly image: string;
610
readonly github?: string;
11+
readonly linkedin?: string;
712
}
813

914
@Component({
1015
selector: 'app-team',
11-
imports: [TranslocoModule],
16+
imports: [TranslocoModule, NgOptimizedImage, IconGithubComponent, IconLinkedinComponent],
1217
templateUrl: './team.component.html',
1318
changeDetection: ChangeDetectionStrategy.OnPush,
1419
})
1520
export class TeamComponent {
1621
protected readonly members: readonly TeamMember[] = [
17-
{ name: 'Salvatore Rapisarda', github: 'https://github.com/salvo-rapisarda' },
18-
{ name: 'Matteo Jacopo Schembri', github: 'https://github.com/mjschembri' },
19-
{ name: 'Stefano Borzi' },
20-
{ name: 'Claudio Faro' },
22+
{ name: 'Salvatore Rapisarda', image: '/images/about/SalvoRapisarda.jpeg', github: 'https://github.com/salvorapi', linkedin: 'https://www.linkedin.com/in/salvorapi/' },
23+
{ name: 'Matteo Jacopo Schembri', image: '/images/about/MatteoJacopoSchembri.jpeg', github: 'https://github.com/teosche', linkedin: 'https://www.linkedin.com/in/teosche/' },
24+
{ name: 'Stefano Borzi', image: '/images/about/StefanoBorzi.jpeg', github: 'https://github.com/Helias', linkedin: 'https://www.linkedin.com/in/stefanoborzi/' },
25+
{ name: 'Claudio Faro', image: '/images/about/ClaudioFaro.jpeg', github: 'https://github.com/kaesarct', linkedin: 'https://www.linkedin.com/in/claudio-faro-70128649/' },
2126
];
2227
}

0 commit comments

Comments
 (0)