1
1
import Image from 'next/image' ;
2
2
import ButtonLink from '@/components/buttons/ButtonLink/ButtonLink' ;
3
3
import Container from '@/components/containers/Container/Container' ;
4
- import S from './styles' ;
4
+ import * as TwoColumnStyles from './styles' ;
5
5
6
6
export default function TwoColumn ( {
7
7
image,
@@ -19,8 +19,33 @@ export default function TwoColumn({
19
19
openNewTab,
20
20
$contentType,
21
21
} ) {
22
+ //Set Styles base don content type
23
+ let S ;
24
+ switch ( $contentType ) {
25
+ case 'our-process' :
26
+ S = TwoColumnStyles . OurProcess ;
27
+ case 'get-started' :
28
+ S = TwoColumnStyles . GetStarted ;
29
+ case 'our-purpose' :
30
+ S = TwoColumnStyles . OurPurpose ;
31
+ case 'our-background' :
32
+ S = TwoColumnStyles . OurBackground ;
33
+ case 'get-involved' :
34
+ S = TwoColumnStyles . GetInvolved ;
35
+ case 'non-profit' :
36
+ S = TwoColumnStyles . NonProfit ;
37
+ case 'wanna-learn-more' :
38
+ S = TwoColumnStyles . WannaLearnMore ;
39
+ case 'questions' :
40
+ S = TwoColumnStyles . QuestionsMore ;
41
+ case 'two-text-columns' :
42
+ S = TwoColumnStyles . TwoTextColumns ;
43
+ case 'second-text-column' :
44
+ S = TwoColumnStyles . SecondTextColumn ;
45
+ default :
46
+ S = TwoColumnStyles . Base ;
47
+ }
22
48
// Add rowOrder="row-reverse" prop to the component to reverse its order on desktop
23
-
24
49
return (
25
50
< S . TwoColumnWrapper $color = { color } $bgColor = { bgColor } >
26
51
< S . InnerContainer
0 commit comments