Skip to content

Commit 6c9941c

Browse files
committed
align about us
1 parent 1262a99 commit 6c9941c

File tree

5 files changed

+34
-27
lines changed

5 files changed

+34
-27
lines changed

components/containers/Member.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ export default function Member({
1212
customClass,
1313
}) {
1414
return (
15-
<div
16-
className={
17-
customClass ? `${styles.card} ${styles[customClass]}` : styles.card
18-
}
19-
>
15+
<div className={styles.card}>
2016
{image && (
2117
<div className={styles.card__image}>
2218
<Image src={image} alt={name} className={styles.img} layout='fill' />

pages/about.js

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Title from '@/components/snippets/Title';
1212
import Container from '@/components/containers/Container';
1313
import Row from '@/components/containers/Row';
1414
import Member from '@/components/containers/Member';
15-
import { whoWeAre } from './data/about';
15+
import { whoWeAre } from '../utils/data/about';
1616

1717
export default function AboutUs() {
1818
return (
@@ -223,20 +223,22 @@ export default function AboutUs() {
223223
<Title title='Who we are' />
224224

225225
<Row>
226-
{whoWeAre.map(_ => {
227-
return (
228-
<Member
229-
key={_?.name}
230-
image={_?.image}
231-
name={_?.name}
232-
title={_?.title}
233-
position={_?.position}
234-
linkedIn={_?.linkedIn}
235-
portfolio={_?.portfolio}
236-
about={_?.about}
237-
/>
238-
);
239-
})}
226+
<div className={rowStyles.align__left}>
227+
{whoWeAre.map(_ => {
228+
return (
229+
<Member
230+
key={_?.name}
231+
image={_?.image}
232+
name={_?.name}
233+
title={_?.title}
234+
position={_?.position}
235+
linkedIn={_?.linkedIn}
236+
portfolio={_?.portfolio}
237+
about={_?.about}
238+
/>
239+
);
240+
})}
241+
</div>
240242
</Row>
241243
</Container>
242244
</section>

styles/Member.module.scss

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
margin: 1rem 1rem 0 0.5rem;
66
padding: 1rem;
77
border-radius: 1.5rem;
8-
box-shadow: $box-shadow;
98
min-height: 35rem;
10-
background-color: $white;
9+
background-color: transparent;
1110
display: flex;
1211
justify-content: left;
1312
flex-direction: column;
@@ -23,9 +22,9 @@
2322
}
2423

2524
@include desktop {
26-
min-width: 25%;
27-
max-width: 25%;
28-
margin: 1.5rem 1.5rem 0 1.5rem;
25+
min-width: 20%;
26+
max-width: 20%;
27+
margin: 1.5rem;
2928
}
3029

3130
.name {
@@ -104,7 +103,7 @@
104103
margin: 0.5rem auto;
105104

106105
img {
107-
border-radius: 0.25rem;
106+
border-radius: 50%;
108107
}
109108
}
110109
}

styles/Row.module.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
background-color: $white;
1212
}
1313

14+
.align__left {
15+
display: flex;
16+
flex-wrap: wrap;
17+
justify-content: left;
18+
19+
@include desktop-breakpoint-minus {
20+
justify-content: space-between;
21+
}
22+
}
23+
1424
.wrapper {
1525
justify-content: center;
1626
flex-wrap: wrap;

pages/data/about.js renamed to utils/data/about.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ export const whoWeAre = [
6767
linkedIn: 'vincentm5',
6868
portfolio: 'vmcodes.com',
6969
about:
70-
'Vincent is a professional in the IT industry and also a web developer that enjoys contributing to open-source projects in his spare time. Whether creating aesthetic web pages, coding server-side applications or configuring an environment to host software, he enjoys it all.',
70+
'Vincent is a professional in the IT industry and also a web developer that enjoys contributing to open-source projects in his spare time.',
7171
},
7272
];

0 commit comments

Comments
 (0)