foundry-component-library 0.0.0 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/lib/assets/image/fallbackVideo.png +0 -0
  2. package/lib/assets/image/pause.png +0 -0
  3. package/lib/assets/image/placeholder.png +0 -0
  4. package/lib/assets/image/play.png +0 -0
  5. package/lib/assets/svg/arrow.svg +3 -0
  6. package/lib/assets/svg/caret-down.svg +3 -0
  7. package/lib/assets/svg/caret-right.svg +4 -0
  8. package/lib/assets/svg/close.svg +5 -0
  9. package/lib/assets/svg/comment.svg +18 -0
  10. package/lib/assets/svg/facebook.svg +10 -0
  11. package/lib/assets/svg/footer-logo.svg +16 -0
  12. package/lib/assets/svg/hourglass.svg +1 -0
  13. package/lib/assets/svg/linkedin.svg +3 -0
  14. package/lib/assets/svg/logo.svg +3 -0
  15. package/lib/assets/svg/mute.svg +1 -0
  16. package/lib/assets/svg/muted.svg +1 -0
  17. package/lib/assets/svg/play-button.svg +4 -0
  18. package/lib/assets/svg/plus.svg +5 -0
  19. package/lib/assets/svg/unicorn.svg +3 -0
  20. package/lib/components/AgencyNumbers/index.tsx +50 -0
  21. package/lib/components/AgencyNumbers/styles.module.scss +71 -0
  22. package/lib/components/Awards/index.tsx +48 -0
  23. package/lib/components/Awards/styles.module.scss +52 -0
  24. package/lib/components/Capabilities/Item.tsx +139 -0
  25. package/lib/components/Capabilities/index.tsx +49 -0
  26. package/lib/components/Capabilities/styles.module.scss +154 -0
  27. package/lib/components/CaseStudyTeaser/index.tsx +77 -0
  28. package/lib/components/CaseStudyTeaser/styles.module.scss +88 -0
  29. package/lib/components/ContactButton/index.tsx +14 -0
  30. package/lib/components/ContactButton/styles.module.scss +25 -0
  31. package/lib/components/ContactTeaser/index.tsx +36 -0
  32. package/lib/components/ContactTeaser/styles.module.scss +46 -0
  33. package/lib/components/Container/index.tsx +19 -0
  34. package/lib/components/Container/styles.module.scss +22 -0
  35. package/lib/components/DoubleTiles/Tile.tsx +28 -0
  36. package/lib/components/DoubleTiles/index.tsx +43 -0
  37. package/lib/components/DoubleTiles/styles.module.scss +87 -0
  38. package/lib/components/Footer/index.tsx +109 -0
  39. package/lib/components/Footer/styles.module.scss +147 -0
  40. package/lib/components/Header/Menu.tsx +77 -0
  41. package/lib/components/Header/index.tsx +49 -0
  42. package/lib/components/Header/styles.module.scss +169 -0
  43. package/lib/components/Hero/Loading.tsx +36 -0
  44. package/lib/components/Hero/index.tsx +72 -0
  45. package/lib/components/Hero/styles.module.scss +63 -0
  46. package/lib/components/HubsAccordion/Hub.tsx +127 -0
  47. package/lib/components/HubsAccordion/index.tsx +41 -0
  48. package/lib/components/HubsAccordion/styles.module.scss +206 -0
  49. package/lib/components/ImageTitle/index.tsx +39 -0
  50. package/lib/components/ImageTitle/styles.module.scss +60 -0
  51. package/lib/components/LargeText/Loading.tsx +7 -0
  52. package/lib/components/LargeText/Word.tsx +26 -0
  53. package/lib/components/LargeText/index.tsx +56 -0
  54. package/lib/components/LargeText/styles.module.scss +51 -0
  55. package/lib/components/LogoSection/Dropdown.tsx +82 -0
  56. package/lib/components/LogoSection/Logos.tsx +112 -0
  57. package/lib/components/LogoSection/index.tsx +45 -0
  58. package/lib/components/LogoSection/styles.module.scss +142 -0
  59. package/lib/components/Management/index.tsx +97 -0
  60. package/lib/components/Management/styles.module.scss +80 -0
  61. package/lib/components/MarketingStats/index.tsx +64 -0
  62. package/lib/components/MarketingStats/styles.module.scss +77 -0
  63. package/lib/components/NewsTeaser/index.tsx +71 -0
  64. package/lib/components/NewsTeaser/styles.module.scss +121 -0
  65. package/lib/components/OfficesTeaser/index.tsx +32 -0
  66. package/lib/components/OfficesTeaser/styles.module.scss +40 -0
  67. package/lib/components/PartnerNetwork/index.tsx +47 -0
  68. package/lib/components/PartnerNetwork/styles.module.scss +32 -0
  69. package/lib/components/QuoteSection/index.tsx +59 -0
  70. package/lib/components/QuoteSection/styles.module.scss +84 -0
  71. package/lib/components/ServiceHubsTeaser/Tile.tsx +34 -0
  72. package/lib/components/ServiceHubsTeaser/index.tsx +72 -0
  73. package/lib/components/ServiceHubsTeaser/styles.module.scss +69 -0
  74. package/lib/components/TeamBenefits/Tile.tsx +18 -0
  75. package/lib/components/TeamBenefits/index.tsx +41 -0
  76. package/lib/components/TeamBenefits/styles.module.scss +57 -0
  77. package/lib/components/TeamPhotos/Item.tsx +31 -0
  78. package/lib/components/TeamPhotos/Loading.tsx +42 -0
  79. package/lib/components/TeamPhotos/index.tsx +26 -0
  80. package/lib/components/TeamPhotos/styles.module.scss +79 -0
  81. package/lib/components/TextSection/Loading.tsx +36 -0
  82. package/lib/components/TextSection/index.tsx +40 -0
  83. package/lib/components/TextSection/styles.module.scss +75 -0
  84. package/lib/components/Tiles/Tile.tsx +21 -0
  85. package/lib/components/Tiles/index.tsx +43 -0
  86. package/lib/components/Tiles/styles.module.scss +60 -0
  87. package/lib/components/VideoTeaser/Loading.tsx +7 -0
  88. package/lib/components/VideoTeaser/index.tsx +56 -0
  89. package/lib/components/VideoTeaser/styles.module.scss +93 -0
  90. package/lib/components/_variables.scss +146 -0
  91. package/lib/components/case/Content/CenterColumn.tsx +18 -0
  92. package/lib/components/case/Content/FullWidthImage.tsx +60 -0
  93. package/lib/components/case/Content/Numbers/index.tsx +46 -0
  94. package/lib/components/case/Content/Numbers/styles.module.scss +41 -0
  95. package/lib/components/case/Content/Results/index.tsx +44 -0
  96. package/lib/components/case/Content/Results/styles.module.scss +34 -0
  97. package/lib/components/case/Content/TwoColumns/Left.tsx +46 -0
  98. package/lib/components/case/Content/TwoColumns/Right.tsx +47 -0
  99. package/lib/components/case/Content/TwoColumns/index.tsx +32 -0
  100. package/lib/components/case/Content/Video.tsx +88 -0
  101. package/lib/components/case/Content/index.tsx +86 -0
  102. package/lib/components/case/Content/styles.module.scss +175 -0
  103. package/lib/components/case/Other/index.tsx +66 -0
  104. package/lib/components/case/Other/styles.module.scss +118 -0
  105. package/lib/components/case/ShareButton/index.tsx +27 -0
  106. package/lib/components/case/ShareButton/styles.module.scss +5 -0
  107. package/lib/components/case/Top/Loading.tsx +51 -0
  108. package/lib/components/case/Top/index.tsx +94 -0
  109. package/lib/components/case/Top/styles.module.scss +162 -0
  110. package/lib/components/cases/Items/More.tsx +103 -0
  111. package/lib/components/cases/Items/Video.tsx +47 -0
  112. package/lib/components/cases/Items/index.tsx +123 -0
  113. package/lib/components/cases/Items/styles.module.scss +165 -0
  114. package/lib/components/cases/Pagination/index.tsx +61 -0
  115. package/lib/components/cases/Pagination/styles.module.scss +27 -0
  116. package/lib/components/cases/Top/Dropdown.tsx +94 -0
  117. package/lib/components/cases/Top/index.tsx +67 -0
  118. package/lib/components/cases/Top/styles.module.scss +151 -0
  119. package/lib/components/contact/Accounts/index.tsx +50 -0
  120. package/lib/components/contact/Accounts/styles.module.scss +61 -0
  121. package/lib/components/contact/Contacts/index.tsx +50 -0
  122. package/lib/components/contact/Contacts/styles.module.scss +67 -0
  123. package/lib/components/contact/Offices/Loading.tsx +45 -0
  124. package/lib/components/contact/Offices/index.tsx +106 -0
  125. package/lib/components/contact/Offices/styles.module.scss +79 -0
  126. package/lib/components/contact/OfficesSection/Loading.tsx +15 -0
  127. package/lib/components/contact/OfficesSection/index.tsx +22 -0
  128. package/lib/components/contact/OfficesSection/styles.module.scss +9 -0
  129. package/lib/components/news/Posts/Loading.tsx +52 -0
  130. package/lib/components/news/Posts/More.tsx +94 -0
  131. package/lib/components/news/Posts/index.tsx +61 -0
  132. package/lib/components/news/Posts/styles.module.scss +171 -0
  133. package/lib/components/single/Content/CenterColumn.tsx +18 -0
  134. package/lib/components/single/Content/FullWidthImage.tsx +60 -0
  135. package/lib/components/single/Content/Loading.tsx +12 -0
  136. package/lib/components/single/Content/TwoColumns/Left.tsx +80 -0
  137. package/lib/components/single/Content/TwoColumns/Right.tsx +79 -0
  138. package/lib/components/single/Content/TwoColumns/index.tsx +32 -0
  139. package/lib/components/single/Content/Video.tsx +88 -0
  140. package/lib/components/single/Content/index.tsx +107 -0
  141. package/lib/components/single/Content/styles.module.scss +205 -0
  142. package/lib/components/single/Other/index.tsx +55 -0
  143. package/lib/components/single/Other/styles.module.scss +114 -0
  144. package/lib/components/single/ShareBar/index.tsx +53 -0
  145. package/lib/components/single/ShareBar/styles.module.scss +63 -0
  146. package/lib/components/single/Top/Breadcrumbs.tsx +34 -0
  147. package/lib/components/single/Top/Loading.tsx +14 -0
  148. package/lib/components/single/Top/index.tsx +20 -0
  149. package/lib/components/single/Top/styles.module.scss +163 -0
  150. package/lib/hooks/useClickOutside.ts +27 -0
  151. package/lib/hooks/useDrag.ts +59 -0
  152. package/lib/hooks/useOnScreen.ts +27 -0
  153. package/lib/index.ts +83 -0
  154. package/lib/queries/client.ts +6 -0
  155. package/lib/queries/getAboutPage.ts +164 -0
  156. package/lib/queries/getBrands.ts +26 -0
  157. package/lib/queries/getCaseBySlug.ts +187 -0
  158. package/lib/queries/getCases.ts +124 -0
  159. package/lib/queries/getCasesPage.ts +217 -0
  160. package/lib/queries/getCategories.ts +23 -0
  161. package/lib/queries/getContactPage.ts +100 -0
  162. package/lib/queries/getHomePage.ts +215 -0
  163. package/lib/queries/getHubBySlug.ts +143 -0
  164. package/lib/queries/getHubs.ts +131 -0
  165. package/lib/queries/getHubsPage.ts +246 -0
  166. package/lib/queries/getMetadataBySlug.ts +48 -0
  167. package/lib/queries/getNewsPage.ts +170 -0
  168. package/lib/queries/getPageBySlug.ts +19 -0
  169. package/lib/queries/getPeoplePage.ts +117 -0
  170. package/lib/queries/getPerformanceHubPage.ts +170 -0
  171. package/lib/queries/getPostBySlug.ts +132 -0
  172. package/lib/queries/getPosts.ts +123 -0
  173. package/lib/queries/index.ts +39 -0
  174. package/lib/types/index.ts +316 -0
  175. package/lib/utils.ts +3 -0
  176. package/lib/vite-env.d.ts +2 -0
  177. package/package.json +2 -2
@@ -0,0 +1,154 @@
1
+ @use "../variables" as *;
2
+
3
+ .heading {
4
+ font-size: 42px;
5
+ margin-bottom: 64px;
6
+ color: $color-brown;
7
+ }
8
+
9
+ .items {
10
+ padding-bottom: 64px;
11
+ }
12
+
13
+ .item {
14
+ border-top: solid 1px $color-brown;
15
+ color: $color-brown;
16
+
17
+ &.active {
18
+ .rows {
19
+ display: block;
20
+ }
21
+
22
+ .icon span {
23
+ top: -2px;
24
+ }
25
+ }
26
+ }
27
+
28
+ .top {
29
+ padding: 32px 0;
30
+ display: flex;
31
+ justify-content: space-between;
32
+ gap: 10px;
33
+ }
34
+
35
+ .title {
36
+ font-size: 34px;
37
+ font-family: $font-secondary;
38
+ }
39
+
40
+ .text {
41
+ width: 310px;
42
+ max-width: 100%;
43
+ font-size: 18px;
44
+
45
+ @media #{$QUERY-md} {
46
+ width: 600px;
47
+ margin-bottom: 30px;
48
+ }
49
+ }
50
+
51
+ .icon {
52
+ width: 46px;
53
+ height: 46px;
54
+ border-radius: 50%;
55
+ border: solid 2px $color-brown;
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ font-size: 32px;
60
+ line-height: 10px;
61
+ background-color: transparent;
62
+ cursor: pointer;
63
+ color: $color-brown;
64
+ flex-shrink: 0;
65
+
66
+ span {
67
+ position: relative;
68
+ }
69
+ }
70
+
71
+ .rows {
72
+ display: none;
73
+ }
74
+
75
+ .row {
76
+ padding-bottom: 64px;
77
+ }
78
+
79
+ .rowWrapper {
80
+ padding: 24px 0;
81
+ display: flex;
82
+ justify-content: space-between;
83
+
84
+ @media #{$QUERY-md} {
85
+ display: block;
86
+ }
87
+ }
88
+
89
+ .right {
90
+ width: 688px;
91
+ max-width: 100%;
92
+
93
+ @media #{$QUERY-md} {
94
+ width: 100%;
95
+ }
96
+ }
97
+
98
+ .cases {
99
+ display: flex;
100
+ }
101
+
102
+ .case {
103
+ width: 300px;
104
+ margin-right: 20px;
105
+ cursor: pointer;
106
+
107
+ &:hover {
108
+ color: $color-blue;
109
+
110
+ path {
111
+ stroke: $color-blue;
112
+ }
113
+ }
114
+
115
+ path {
116
+ stroke: $color-brown;
117
+ stroke-width: 2px;
118
+ }
119
+ }
120
+
121
+ .caseImage {
122
+ width: 300px;
123
+ height: 220px;
124
+ position: relative;
125
+ margin-bottom: 20px;
126
+
127
+ &:after {
128
+ content: "";
129
+ position: absolute;
130
+ top: 0;
131
+ left: 0;
132
+ width: 100%;
133
+ height: 100%;
134
+ z-index: 2;
135
+ }
136
+
137
+ img {
138
+ object-fit: cover;
139
+ z-index: 1;
140
+ }
141
+ }
142
+
143
+ .caseTitle {
144
+ font-size: 20px;
145
+ display: flex;
146
+ justify-content: space-between;
147
+ align-items: baseline;
148
+ gap: 10px;
149
+
150
+ svg {
151
+ flex-shrink: 0;
152
+ position: relative;
153
+ }
154
+ }
@@ -0,0 +1,77 @@
1
+ "use client";
2
+ import { useEffect, useRef, useState } from "react";
3
+ import { translate } from "../../utils";
4
+ import styles from "./styles.module.scss";
5
+ import Container from "../Container";
6
+ import { Case, NextImage } from "../../types";
7
+ import useDrag from "../../hooks/useDrag";
8
+
9
+ const CaseStudyTeaser = ({
10
+ heading,
11
+ cases,
12
+ Image,
13
+ }: {
14
+ heading: string;
15
+ cases: Case[];
16
+ Image: NextImage;
17
+ }) => {
18
+ const headingRef = useRef<HTMLDivElement>(null);
19
+ const casesRef = useRef<HTMLDivElement>(null);
20
+ const [padding, setPadding] = useState(0);
21
+ const { handleMouseDown, handleMouseMove, handleMouseUp, dragStyle } =
22
+ useDrag(casesRef);
23
+
24
+ useEffect(() => {
25
+ if (headingRef.current) {
26
+ setPadding(headingRef.current.offsetLeft);
27
+ }
28
+ }, [headingRef]);
29
+
30
+ if (!cases) return;
31
+
32
+ return (
33
+ <div className={styles.caseStudyTeaser}>
34
+ <Container>
35
+ <div ref={headingRef} className={styles.heading}>
36
+ {heading}
37
+ </div>
38
+ </Container>
39
+
40
+ <div
41
+ className={styles.cases}
42
+ ref={casesRef}
43
+ onMouseDown={handleMouseDown}
44
+ onMouseMove={handleMouseMove}
45
+ onMouseUp={handleMouseUp}
46
+ onMouseLeave={handleMouseUp}
47
+ style={{
48
+ ...(dragStyle as React.CSSProperties),
49
+ paddingLeft: padding,
50
+ paddingRight: padding,
51
+ }}
52
+ >
53
+ {cases.map((el) => {
54
+ return (
55
+ <div key={el.id} className={styles.case}>
56
+ <Image
57
+ className={styles.image}
58
+ src={el.case?.mainImage?.sourceUrl || ""}
59
+ alt={el.title}
60
+ fill
61
+ />
62
+ <div className={styles.texts}>
63
+ <div className={styles.caption}>{el.case?.caption}</div>
64
+ <div className={styles.title}>{el.title}</div>
65
+ <a href={el.uri} className={styles.button}>
66
+ {translate("See More")}
67
+ </a>
68
+ </div>
69
+ </div>
70
+ );
71
+ })}
72
+ </div>
73
+ </div>
74
+ );
75
+ };
76
+
77
+ export default CaseStudyTeaser;
@@ -0,0 +1,88 @@
1
+ @use "../variables" as *;
2
+
3
+ .caseStudyTeaser {
4
+ padding: 64px 0;
5
+ }
6
+
7
+ .heading {
8
+ font-size: 42px;
9
+ font-family: $font-secondary;
10
+ color: $color-brown;
11
+ margin-bottom: 64px;
12
+
13
+ @media screen and (max-width: $screen-sm) {
14
+ font-size: 31px;
15
+ margin-bottom: 30px;
16
+ }
17
+ }
18
+
19
+ .cases {
20
+ display: flex;
21
+ gap: 16px;
22
+ }
23
+
24
+ .case {
25
+ flex-shrink: 0;
26
+ display: flex;
27
+ flex-direction: column;
28
+ justify-content: flex-end;
29
+ position: relative;
30
+ width: 360px;
31
+ height: 720px;
32
+ padding: 40px;
33
+ transition: width 0.3s;
34
+
35
+ @media screen and (max-width: $screen-sm) {
36
+ max-width: 90%;
37
+ height: 500px;
38
+ padding: 20px;
39
+ }
40
+
41
+ &:hover {
42
+ width: 500px;
43
+ }
44
+
45
+ &:after {
46
+ content: "";
47
+ position: absolute;
48
+ top: 0;
49
+ left: 0;
50
+ width: 100%;
51
+ height: 100%;
52
+ background-color: rgba(0, 0, 0, 0.4);
53
+ z-index: 1;
54
+ }
55
+ }
56
+
57
+ .image {
58
+ object-fit: cover;
59
+ z-index: 0;
60
+ }
61
+
62
+ .texts {
63
+ position: relative;
64
+ z-index: 2;
65
+ color: $color-white;
66
+ }
67
+
68
+ .caption {
69
+ text-transform: uppercase;
70
+ font-size: 20px;
71
+ }
72
+
73
+ .title {
74
+ font-size: 42px;
75
+ font-family: $font-secondary;
76
+ margin-bottom: 40px;
77
+ line-height: 1.2;
78
+ width: 300px;
79
+
80
+ @media screen and (max-width: $screen-sm) {
81
+ font-size: 31px;
82
+ margin-bottom: 20px;
83
+ }
84
+ }
85
+
86
+ .button {
87
+ @extend .button--white-transparent;
88
+ }
@@ -0,0 +1,14 @@
1
+ import styles from "./styles.module.scss";
2
+ import Unicorn from "../../assets/svg/unicorn.svg?react";
3
+ import { NextLink } from "../../types";
4
+
5
+ const ContactButton = ({ Link }: { Link: NextLink }) => {
6
+ return (
7
+ <Link className={styles.contactButton} href="/contact" scroll={false}>
8
+ <Unicorn />
9
+ {`Get in\ntouch!`}
10
+ </Link>
11
+ );
12
+ };
13
+
14
+ export default ContactButton;
@@ -0,0 +1,25 @@
1
+ @use "../variables" as *;
2
+
3
+ .contactButton {
4
+ position: fixed;
5
+ bottom: 10%;
6
+ right: 0;
7
+ background-color: $color-yellow;
8
+ color: $color-blue;
9
+ width: 116px;
10
+ height: 47px;
11
+ display: flex;
12
+ gap: 10px;
13
+ filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
14
+ align-items: center;
15
+ padding: 8px 8px 8px 16px;
16
+ line-height: 1;
17
+ border-radius: 25px 0 0 25px;
18
+ z-index: 3;
19
+ font-size: 14px;
20
+ box-sizing: border-box;
21
+
22
+ svg {
23
+ flex-shrink: 0;
24
+ }
25
+ }
@@ -0,0 +1,36 @@
1
+ import styles from "./styles.module.scss";
2
+ import Container from "../Container";
3
+ import { translate } from "../../utils";
4
+ import { NextLink } from "../../types";
5
+
6
+ const ContactTeaser = ({
7
+ heading,
8
+ text,
9
+ theme = "yellow",
10
+ Link,
11
+ }: {
12
+ heading: string;
13
+ text?: string;
14
+ theme?: "yellow" | "pink";
15
+ Link: NextLink;
16
+ }) => {
17
+ return (
18
+ <div className={`${styles.contactTeaser} ${styles[theme]}`}>
19
+ <Container>
20
+ <div className={styles.wrapper}>
21
+ {heading && (
22
+ <div className={`${styles.heading} ${!text ? styles.margin : ""}`}>
23
+ {heading}
24
+ </div>
25
+ )}
26
+ {text && <div className={styles.text}>{text}</div>}
27
+ <Link href="/contact" className={styles.button}>
28
+ {translate("Contact Us")}
29
+ </Link>
30
+ </div>
31
+ </Container>
32
+ </div>
33
+ );
34
+ };
35
+
36
+ export default ContactTeaser;
@@ -0,0 +1,46 @@
1
+ @use "../variables" as *;
2
+
3
+ .contactTeaser {
4
+ padding: 64px 0;
5
+ background-color: $color-yellow;
6
+ color: $color-brown;
7
+
8
+ &.pink {
9
+ background-color: $color-pink;
10
+ color: $color-brown;
11
+
12
+ .button {
13
+ @extend .button--brown;
14
+ }
15
+ }
16
+ }
17
+
18
+ .wrapper {
19
+ width: 800px;
20
+ max-width: 100%;
21
+ }
22
+
23
+ .heading {
24
+ font-family: $font-secondary;
25
+ font-size: 54px;
26
+ color: $color-brown;
27
+ margin-bottom: 24px;
28
+ white-space: pre-wrap;
29
+
30
+ @media screen and (max-width: $screen-sm) {
31
+ font-size: 31px;
32
+ }
33
+
34
+ &:last-child {
35
+ margin-bottom: 0;
36
+ }
37
+
38
+ &.margin {
39
+ margin-bottom: 64px;
40
+ }
41
+ }
42
+
43
+ .text {
44
+ font-size: 20px;
45
+ margin-bottom: 48px;
46
+ }
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { CSSProperties } from "react";
3
+ import styles from "./styles.module.scss";
4
+
5
+ const Container = ({
6
+ children,
7
+ style,
8
+ }: {
9
+ children: React.ReactNode;
10
+ style?: CSSProperties;
11
+ }) => {
12
+ return (
13
+ <div className={styles.container} style={{ ...style }}>
14
+ {children}
15
+ </div>
16
+ );
17
+ };
18
+
19
+ export default Container;
@@ -0,0 +1,22 @@
1
+ @use "../variables" as *;
2
+
3
+ .container {
4
+ width: 1340px;
5
+ max-width: 100%;
6
+ margin: 0 auto;
7
+ box-sizing: border-box;
8
+ padding: 0 30px;
9
+
10
+ @media screen and (max-width: $screen-lg) {
11
+ width: 1000px;
12
+ }
13
+
14
+ @media screen and (max-width: $screen-md) {
15
+ width: 900px;
16
+ }
17
+
18
+ @media screen and (max-width: $screen-sm) {
19
+ width: 100%;
20
+ padding: 0 20px;
21
+ }
22
+ }
@@ -0,0 +1,28 @@
1
+ import styles from "./styles.module.scss";
2
+ import Plus from "../../assets/svg/plus.svg?react";
3
+
4
+ const Tile = ({
5
+ heading,
6
+ text,
7
+ background,
8
+ }: {
9
+ heading: string;
10
+ text: string;
11
+ background: "pink" | "yellow" | "brown" | "gray";
12
+ }) => {
13
+ return (
14
+ <div className={`${styles.tile} ${styles[background]}`}>
15
+ <div className={styles.sideOne}>
16
+ <div className={styles.heading}>{heading}</div>
17
+ <div>
18
+ <Plus />
19
+ </div>
20
+ </div>
21
+ <div className={styles.sideTwo}>
22
+ <div className={styles.text}>{text}</div>
23
+ </div>
24
+ </div>
25
+ );
26
+ };
27
+
28
+ export default Tile;
@@ -0,0 +1,43 @@
1
+ import Container from "../Container";
2
+ import TextSection from "../TextSection";
3
+ import styles from "./styles.module.scss";
4
+ import Tile from "./Tile";
5
+
6
+ const DoubleTiles = ({
7
+ heading,
8
+ tiles,
9
+ }: {
10
+ heading: string;
11
+ tiles: {
12
+ heading?: string;
13
+ text?: string;
14
+ }[];
15
+ }) => {
16
+ return (
17
+ <div className={styles.doubleTiles}>
18
+ <TextSection caption="PROCESS" heading={heading} />
19
+ <Container>
20
+ <div className={styles.wrapper}>
21
+ <div className={styles.tiles}>
22
+ {tiles.map((tile, i) => {
23
+ let background: "pink" | "yellow" | "brown" | "gray" = "pink";
24
+ if (i % 3 === 1) background = "gray";
25
+ if (i % 3 === 2) background = "brown";
26
+
27
+ return (
28
+ <Tile
29
+ key={tile.text}
30
+ heading={tile.heading || ""}
31
+ text={tile.text || ""}
32
+ background={background}
33
+ />
34
+ );
35
+ })}
36
+ </div>
37
+ </div>
38
+ </Container>
39
+ </div>
40
+ );
41
+ };
42
+
43
+ export default DoubleTiles;
@@ -0,0 +1,87 @@
1
+ @use "../variables" as *;
2
+
3
+ .tiles {
4
+ padding-bottom: 64px;
5
+ display: flex;
6
+ gap: 20px;
7
+ }
8
+
9
+ .tile {
10
+ white-space: pre-wrap;
11
+ padding: 20px;
12
+ display: flex;
13
+ flex-direction: column;
14
+ align-items: center;
15
+ justify-content: center;
16
+ text-align: center;
17
+ width: 400px;
18
+ height: 400px;
19
+ box-sizing: border-box;
20
+ background-color: $color-pink;
21
+ color: $color-brown;
22
+ font-family: $font-secondary;
23
+ flex-shrink: 0;
24
+
25
+ @media screen and (max-width: $screen-sm) {
26
+ max-width: 90%;
27
+ height: 300px;
28
+ }
29
+
30
+ &.yellow {
31
+ background-color: $color-yellow;
32
+ color: $color-blue;
33
+
34
+ path {
35
+ stroke: $color-blue;
36
+ }
37
+ }
38
+
39
+ &.brown {
40
+ background-color: $color-brown;
41
+ color: $color-pink;
42
+
43
+ path {
44
+ stroke: $color-pink;
45
+ }
46
+ }
47
+
48
+ &.gray {
49
+ background-color: $color-gray-light;
50
+ color: $color-blue;
51
+
52
+ path {
53
+ stroke: $color-blue;
54
+ }
55
+ }
56
+
57
+ &:hover {
58
+ .sideOne {
59
+ display: none;
60
+ }
61
+
62
+ .sideTwo {
63
+ display: block;
64
+ }
65
+ }
66
+ }
67
+
68
+ .heading {
69
+ font-size: 42px;
70
+ margin-bottom: 42px;
71
+
72
+ @media screen and (max-width: $screen-sm) {
73
+ margin-bottom: 20px;
74
+ }
75
+
76
+ &:last-child {
77
+ margin-bottom: 0;
78
+ }
79
+ }
80
+
81
+ .text {
82
+ font-size: 32px;
83
+ }
84
+
85
+ .sideTwo {
86
+ display: none;
87
+ }