File tree Expand file tree Collapse file tree 5 files changed +62
-31
lines changed Expand file tree Collapse file tree 5 files changed +62
-31
lines changed Original file line number Diff line number Diff line change 1
- import styles from '@/styles/Row.module.scss' ;
1
+ import rowStyles from '@/styles/Row.module.scss' ;
2
2
3
- export default function Row ( { children } ) {
4
- return < section className = { styles . wrapper } > { children } </ section > ;
3
+ export default function Row ( { customClass, children, styles } ) {
4
+ return (
5
+ < div
6
+ className = {
7
+ customClass
8
+ ? `${ rowStyles . row } ${ rowStyles [ customClass ] } `
9
+ : rowStyles . row
10
+ }
11
+ style = { styles }
12
+ >
13
+ { children }
14
+ </ div >
15
+ ) ;
5
16
}
Original file line number Diff line number Diff line change
1
+ import wrapperStyles from '@/styles/Wrapper.module.scss' ;
2
+
3
+ export default function Wrapper ( { customClass, children } ) {
4
+ return (
5
+ < div
6
+ className = {
7
+ customClass
8
+ ? `${ wrapperStyles . wrapper } ${ wrapperStyles [ customClass ] } `
9
+ : wrapperStyles . wrapper
10
+ }
11
+ >
12
+ { children }
13
+ </ div >
14
+ ) ;
15
+ }
Original file line number Diff line number Diff line change 9
9
import rowStyles from '@/styles/Row.module.scss' ;
10
10
import CardsColumns from '@/components/containers/CardsColumns' ;
11
11
import Title from '@/components/snippets/Title' ;
12
+ import Wrapper from '@/components/containers/Wrapper' ;
12
13
import Container from '@/components/containers/Container' ;
13
14
import Row from '@/components/containers/Row' ;
14
15
import Member from '@/components/containers/Member' ;
@@ -218,30 +219,27 @@ export default function AboutUs() {
218
219
/>
219
220
</ RevealContentContainer >
220
221
< RevealContentContainer >
221
- < section className = { rowStyles . primaryBg } >
222
+ < Wrapper customClass = 'primary__accent' >
222
223
< Container >
223
224
< Title title = 'Who we are' />
224
-
225
- < Row >
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 >
225
+ < Row customClass = 'align__left' >
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
+ } ) }
242
240
</ Row >
243
241
</ Container >
244
- </ section >
242
+ </ Wrapper >
245
243
</ RevealContentContainer >
246
244
</ div >
247
245
) ;
Original file line number Diff line number Diff line change 1
1
@use ' ./variables' as * ;
2
2
@use ' ./mixins' as * ;
3
3
4
- .primaryBg {
5
- background-color : $primary-accent-color ;
6
- min-width : 100% ;
7
- padding : 1rem 0 ;
8
- }
9
-
10
- .align__left {
4
+ .row {
11
5
display : flex ;
12
6
flex-wrap : wrap ;
13
- justify-content : left ;
7
+
8
+ & .align__left {
9
+ justify-content : left ;
10
+ }
14
11
15
12
@include desktop-breakpoint-minus {
16
13
justify-content : space-between ;
Original file line number Diff line number Diff line change
1
+ @use ' ./variables' as * ;
2
+ @use ' ./mixins' as * ;
3
+
4
+ .wrapper {
5
+ padding : 1rem 0 ;
6
+
7
+ & .primary__accent {
8
+ background-color : $primary-accent-color ;
9
+ }
10
+ }
You can’t perform that action at this time.
0 commit comments