File tree Expand file tree Collapse file tree 7 files changed +48
-110
lines changed Expand file tree Collapse file tree 7 files changed +48
-110
lines changed Original file line number Diff line number Diff line change 1
1
import containerStyles from '@/styles/Container.module.scss' ;
2
2
3
- export default function Container ( { className , children, styles } ) {
3
+ export default function Container ( { customClass , children, styles } ) {
4
4
return (
5
5
< div
6
- className = { `${ containerStyles . container } ${ className ? className : '' } ` }
6
+ className = {
7
+ customClass
8
+ ? `${ containerStyles . container } ${ customClass } `
9
+ : containerStyles . container
10
+ }
7
11
style = { styles }
8
12
>
9
13
{ children }
Original file line number Diff line number Diff line change @@ -15,7 +15,14 @@ const RevealContentContainer = ({ children }) => {
15
15
} , [ entry . isIntersecting ] ) ;
16
16
17
17
return (
18
- < div ref = { ref } className = { `${ styles . wrapper } ${ styles [ hiddenStyle ] } ` } >
18
+ < div
19
+ ref = { ref }
20
+ className = {
21
+ hiddenStyle
22
+ ? `${ styles . wrapper } ${ styles [ hiddenStyle ] } `
23
+ : styles . wrapper
24
+ }
25
+ >
19
26
{ children }
20
27
</ div >
21
28
) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,11 @@ export default function TwoColumn({
28
28
return (
29
29
< section className = { styles . wrapper } style = { styleProps . wrapper } >
30
30
< Container
31
- className = { `${ styles . inner } ${ styles [ customInnerClass ] } ` }
31
+ customClass = {
32
+ customInnerClass
33
+ ? `${ styles . inner } ${ styles [ customInnerClass ] } `
34
+ : styles . inner
35
+ }
32
36
styles = { { flexDirection : rowOrder } }
33
37
>
34
38
< div className = { styles . inner__content } >
Original file line number Diff line number Diff line change @@ -88,12 +88,6 @@ export default function AboutUs() {
88
88
customInnerClass = 'about-content'
89
89
/>
90
90
</ RevealContentContainer >
91
-
92
- { /* <RevealContentContainer>
93
- <Container>
94
- <Title title="Our goals" />
95
- </Container>
96
- </RevealContentContainer> */ }
97
91
</ div >
98
92
) ;
99
93
}
Original file line number Diff line number Diff line change 2
2
@use ' ./mixins' as * ;
3
3
4
4
.wrapper {
5
-
6
5
.inner {
7
6
padding : 5rem 0 ;
8
7
margin : 0 auto ;
9
8
width : 90% ;
10
9
max-width : $large-desktop-breakpoint ;
11
10
12
- & .get-involved {
13
- @include desktop-breakpoint-minus {
14
- padding-bottom : 0 ;
15
- }
16
- }
17
-
18
- & .non-profit {
19
- @include desktop-breakpoint-minus {
20
- .inner__content {
21
- margin-bottom : 0 ;
22
- }
23
- }
24
- }
25
-
26
- & .about-content {
27
- padding-bottom : 0 ;
28
-
29
- .inner__content {
30
-
31
- @include desktop-breakpoint-minus {
32
- margin-bottom : 0 ;
33
- }
34
- .content {
35
- max-width : fit-content ;
36
- }
37
- flex-basis : calc (100% - 34rem );
38
- }
39
- .inner__image {
40
- flex-basis : 24rem ;
41
- height : 24rem ;
42
- transform : translateY (-15% );
43
- .img {
44
- max-width : 24rem ;
45
- object-fit : contain ;
46
- transform : scale (0.5 );
47
- }
48
- @include tablet {
49
- transform : translateY (15% );
50
- }
51
- }
52
- }
53
-
54
11
.inner__content {
55
-
12
+ margin-bottom : 5 rem ;
56
13
@include desktop {
57
14
flex-basis : 50% ;
15
+ margin-bottom : 0 ;
58
16
}
59
17
60
18
.title {
72
30
a {
73
31
text-decoration : underline ;
74
32
text-underline-offset : 2px ;
75
-
33
+
76
34
& :hover {
77
35
opacity : 0.6 ;
78
36
text-decoration : none ;
96
54
}
97
55
}
98
56
99
- & .our-background {
100
- padding-bottom : 0 ;
101
-
102
- @include tablet {
103
- .title {
104
- font-size : 56px ;
105
- }
57
+ // Homepage
58
+ & .get-involved {
59
+ @include desktop-breakpoint-minus {
60
+ padding-bottom : 0 ;
106
61
}
62
+ }
107
63
108
- .inner__content {
109
- @include desktop-breakpoint-minus {
64
+ & .non-profit {
65
+ @include desktop-breakpoint-minus {
66
+ .inner__content {
110
67
margin-bottom : 0 ;
111
68
}
112
- .content {
113
- max-width : fit-content ;
114
- }
115
- flex-basis : calc (100% - 34rem );
116
69
}
70
+ }
117
71
72
+ // About us
73
+ & .our-background {
118
74
.inner__image {
119
- flex-basis : 30rem ;
120
- // height: 24rem;
75
+ height : 18rem ;
121
76
122
77
.img {
123
- max-width : 50rem ;
124
78
object-fit : contain ;
125
- transform : scale (0.3 );
79
+ }
80
+ }
81
+ }
126
82
127
- @include tablet {
128
- transform : scale (0.5 ) translateY (-17% );
129
- height : 24rem ;
130
- }
83
+ & .about-content {
84
+ .inner__image {
85
+ height : 15rem ;
86
+ .img {
87
+ max-width : 14rem ;
88
+ object-fit : contain ;
131
89
}
132
90
}
133
-
134
91
}
135
92
136
93
@include desktop {
137
94
display : flex ;
95
+ align-items : center ;
138
96
justify-content : space-between ;
139
97
flex-wrap : wrap ;
140
98
}
You can’t perform that action at this time.
0 commit comments