Skip to content

Commit 52979e7

Browse files
authored
Merge pull request #11 from gpul-org/feat/current-board
Add current board of the association
2 parents 2f12d49 + f824cda commit 52979e7

File tree

7 files changed

+92
-5
lines changed

7 files changed

+92
-5
lines changed

src/components/Activities/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, {ReactNode} from 'react';
2-
import clsx from 'clsx';
32
import styles from './styles.module.css';
43

54
const activities = [
@@ -24,10 +23,10 @@ export default function Activities(): ReactNode {
2423
return (
2524
<section className={styles.activities}>
2625
<div className="container">
27-
<h2 className={styles.title}>A qué nos dedicamos</h2>
26+
<h2 className={styles.title}>A que nos dedicamos</h2>
2827
<div className={styles.grid}>
2928
{activities.map((activity, idx) => (
30-
<div key={idx} className={clsx('card')}>
29+
<div key={idx} className="card">
3130
<h3>{activity.title}</h3>
3231
<p>{activity.description}</p>
3332
</div>

src/components/Activities/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
gap: 2rem;
1515
}
1616

17+
h3 {
18+
margin-top: .5rem;
19+
}
20+
1721
@media screen and (min-width: 768px) {
1822
.grid {
1923
grid-template-columns: repeat(3, 1fr);

src/components/Board/index.module.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.board {
2+
padding: 2rem 0;
3+
text-align: center;
4+
}
5+
6+
.title {
7+
color: var(--ifm-color-primary);
8+
margin-bottom: 2rem;
9+
}

src/components/Board/index.tsx

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import React, {ReactNode} from 'react';
2+
import styles from './index.module.css';
3+
4+
const boardMembers = [
5+
{
6+
name: 'Jorge Teixeira',
7+
role: 'Presidente',
8+
gh: 'https://github.com/jorgeteixe',
9+
},
10+
{
11+
name: 'David Maseda',
12+
role: 'Vicepresidente',
13+
gh: 'https://github.com/wizenink',
14+
},
15+
{
16+
name: 'Álvaro Freire',
17+
role: 'Tesoureiro',
18+
gh: 'https://github.com/alvaro-freire',
19+
},
20+
{
21+
name: 'Paula Taibo',
22+
role: 'Secretaria',
23+
gh: 'https://github.com/PT-15',
24+
},
25+
{
26+
name: 'Siyuan He',
27+
role: 'Vogal',
28+
gh: 'https://github.com/siyunesweek',
29+
},
30+
{
31+
name: 'Bruno Cabado',
32+
role: 'Vogal',
33+
gh: 'https://github.com/Kr4is',
34+
},
35+
{
36+
name: 'Pedro Costal',
37+
role: 'Vogal',
38+
gh: 'https://github.com/pedrety',
39+
},
40+
];
41+
42+
export default function Board(): ReactNode {
43+
return (
44+
<section className={styles.board}>
45+
<h2 className={styles.title}>Xunta Directiva</h2>
46+
<div className="container">
47+
<div className="row">
48+
{boardMembers.map((member, idx) => (
49+
<div key={idx} className="col col--3 margin-bottom--md">
50+
<div className="card">
51+
<div className="card__header">
52+
<div className="avatar">
53+
<a href={member.gh} target="_blank" rel="noopener noreferrer">
54+
<img
55+
className="avatar__photo"
56+
src={`${member.gh}.png`}
57+
alt={`${member.name}`}
58+
/>
59+
</a>
60+
<div className="avatar__intro">
61+
<div className="avatar__name">{member.name}</div>
62+
<small className="avatar__subtitle">{member.role}</small>
63+
</div>
64+
</div>
65+
</div>
66+
</div>
67+
</div>
68+
))}
69+
</div>
70+
</div>
71+
</section>
72+
);
73+
}

src/components/CallToAction/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function CallToAction(): ReactNode {
77
<section className={styles.cta}>
88
<div className="container">
99
<div className={styles.content}>
10-
<h2 className={styles.title}>Únete á Nosa Comunidade</h2>
10+
<h2 className={styles.title}>Únete á nosa comunidade</h2>
1111
<p className={styles.description}>
1212
Listo para formar parte de algo maior? Únete á nosa comunidade de
1313
entusiastas da tecnoloxía e comeza a túa viaxe connosco hoxe.

src/components/Hero/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.heroBanner {
2-
padding: 4rem 0;
2+
padding: 2rem 0;
33
text-align: center;
44
}
55

src/pages/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {ReactNode} from 'react';
44
import Hero from '../components/Hero';
55
import Intro from '../components/Intro';
66
import Activities from '../components/Activities';
7+
import Board from '../components/Board';
78
import CallToAction from '../components/CallToAction';
89

910
export default function Home(): ReactNode {
@@ -15,6 +16,7 @@ export default function Home(): ReactNode {
1516
<Hero />
1617
<Intro />
1718
<Activities />
19+
<Board />
1820
<CallToAction />
1921
</main>
2022
</Layout>

0 commit comments

Comments
 (0)