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,79 @@
1
+ import styles from "../styles.module.scss";
2
+ import Video from "../Video";
3
+ import { ColumnOption, NextImage } from "../../../../types";
4
+
5
+ const Right = ({
6
+ section,
7
+ Image,
8
+ }: {
9
+ section: ColumnOption;
10
+ Image: NextImage;
11
+ }) => {
12
+ if (!section) return null;
13
+
14
+ return (
15
+ <div className={styles.columnContent}>
16
+ {/* case */}
17
+ {section.fieldGroupName === "Case_Case_Content_Twocolumns_Right_Text" && (
18
+ <div
19
+ className={`${styles.text} ${styles.textRight}`}
20
+ dangerouslySetInnerHTML={{ __html: section.text }}
21
+ />
22
+ )}
23
+ {section.fieldGroupName === "Case_Case_Content_Twocolumns_Right_Image" &&
24
+ section.image && (
25
+ <>
26
+ <Image
27
+ className={styles.image}
28
+ src={section.image.sourceUrl}
29
+ alt={section.caption ? section.caption : "foundry digital agency"}
30
+ layout="intrinsic"
31
+ width={600}
32
+ height={600}
33
+ />
34
+ {section.caption && (
35
+ <div className={styles.caption}>{section.caption}</div>
36
+ )}
37
+ </>
38
+ )}
39
+ {section.fieldGroupName ===
40
+ "Case_Case_Content_Twocolumns_Right_Video" && (
41
+ <Video section={section} />
42
+ )}
43
+
44
+ {/* post */}
45
+ {section.fieldGroupName ===
46
+ "Post_Customfieldsposts_Content_Twocolumns_Right_Text" && (
47
+ <div
48
+ className={`${styles.text} ${styles.textRight}`}
49
+ dangerouslySetInnerHTML={{ __html: section.text }}
50
+ />
51
+ )}
52
+ {section.fieldGroupName ===
53
+ "Post_Customfieldsposts_Content_Twocolumns_Right_Image" &&
54
+ section.image ? (
55
+ <>
56
+ {section.image.sourceUrl && (
57
+ <Image
58
+ className={styles.image}
59
+ src={section.image.sourceUrl}
60
+ alt={section.caption ? section.caption : "foundry digital agency"}
61
+ layout="intrinsic"
62
+ width={600}
63
+ height={600}
64
+ />
65
+ )}
66
+ {section.caption && (
67
+ <div className={styles.caption}>{section.caption}</div>
68
+ )}
69
+ </>
70
+ ) : null}
71
+ {section.fieldGroupName ===
72
+ "Post_Customfieldsposts_Content_Twocolumns_Right_Video" && (
73
+ <Video section={section} />
74
+ )}
75
+ </div>
76
+ );
77
+ };
78
+
79
+ export default Right;
@@ -0,0 +1,32 @@
1
+ import styles from "../styles.module.scss";
2
+ import Container from "../../../Container";
3
+ import { NextImage, type TwoColumns } from "../../../../types";
4
+ import Left from "./Left";
5
+ import Right from "./Right";
6
+
7
+ function TwoColumns({
8
+ section,
9
+ Image,
10
+ }: {
11
+ section: TwoColumns;
12
+ Image: NextImage;
13
+ }) {
14
+ return (
15
+ <section className={styles.section}>
16
+ <Container>
17
+ <div className={styles.twoColumns}>
18
+ <div className={styles.column}>
19
+ {section.left && <Left section={section.left[0]} Image={Image} />}
20
+ </div>
21
+ <div className={styles.column}>
22
+ {section.right && (
23
+ <Right section={section.right[0]} Image={Image} />
24
+ )}
25
+ </div>
26
+ </div>
27
+ </Container>
28
+ </section>
29
+ );
30
+ }
31
+
32
+ export default TwoColumns;
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ import { useState, useRef, useEffect } from "react";
3
+ import ReactPlayer from "react-player/lazy";
4
+ import styles from "./styles.module.scss";
5
+ import { useOnScreen } from "../../../hooks/useOnScreen";
6
+ import { type Video } from "../../../types";
7
+
8
+ function Video({ section }: { section: Video }) {
9
+ const sectionRef = useRef(null);
10
+ const onScreen = useOnScreen(sectionRef, "1000px");
11
+ const [playing, setPlaying] = useState(false);
12
+ const [videoLoaded, setVideoLoaded] = useState(false);
13
+ const [hasWindow, setHasWindow] = useState(false);
14
+
15
+ const handleClick = () => {
16
+ if (playing) {
17
+ setPlaying(false);
18
+ } else {
19
+ setPlaying(true);
20
+ }
21
+ };
22
+
23
+ useEffect(() => {
24
+ if (typeof window !== "undefined") {
25
+ setHasWindow(true);
26
+ }
27
+ }, []);
28
+
29
+ useEffect(() => {
30
+ if (!videoLoaded && onScreen) {
31
+ setVideoLoaded(true);
32
+ }
33
+ }, [videoLoaded, onScreen]);
34
+
35
+ useEffect(() => {
36
+ if (section?.autoplay) {
37
+ setPlaying(true);
38
+ }
39
+ }, [videoLoaded]);
40
+
41
+ if (!section || !section.video) return null;
42
+
43
+ return (
44
+ <div className={styles.wrapper} ref={sectionRef}>
45
+ <div
46
+ className={`${styles.video} ${playing ? styles.playing : ""}`}
47
+ onClick={handleClick}
48
+ data-ratio={section.ratio}
49
+ style={{
50
+ backgroundImage: section.poster
51
+ ? `url(${section.poster.sourceUrl})`
52
+ : "none",
53
+ paddingTop: section.ratio ? section.ratio : "56.25%",
54
+ }}
55
+ >
56
+ <div>
57
+ {hasWindow && (
58
+ <ReactPlayer
59
+ className={styles.player}
60
+ playing={playing}
61
+ url={videoLoaded ? `${section.video}?dnt=1` : ""}
62
+ playsinline
63
+ width="100%"
64
+ height="100%"
65
+ onEnded={() => {
66
+ setPlaying(false);
67
+ }}
68
+ loop={section.autoplay}
69
+ muted={!!section.autoplay}
70
+ controls={!section.autoplay}
71
+ />
72
+ )}
73
+ {section.autoplay && (
74
+ <div
75
+ className={`${styles.overlay} ${playing ? styles.playing : ""}`}
76
+ onClick={handleClick}
77
+ />
78
+ )}
79
+ </div>
80
+ </div>
81
+ {section.caption && (
82
+ <div className={styles.caption}>{section.caption}</div>
83
+ )}
84
+ </div>
85
+ );
86
+ }
87
+
88
+ export default Video;
@@ -0,0 +1,107 @@
1
+ import FullWidthImage from "./FullWidthImage";
2
+ import CenterColumn from "./CenterColumn";
3
+ import TwoColumns from "./TwoColumns";
4
+ import Video from "./Video";
5
+ import Container from "../../Container";
6
+ import styles from "./styles.module.scss";
7
+ import { NextImage, Content } from "../../../types";
8
+
9
+ function PostContent({
10
+ content,
11
+ Image,
12
+ }: {
13
+ content: Content;
14
+ Image: NextImage;
15
+ }) {
16
+ if (!content) return null;
17
+
18
+ return (
19
+ <div className={styles.wrapper}>
20
+ {content.map((section, i) => {
21
+ if (section.fieldGroupName === "Case_Case_Content_FullWidthImage") {
22
+ return (
23
+ <FullWidthImage
24
+ key={section.fieldGroupName + i}
25
+ section={section}
26
+ Image={Image}
27
+ />
28
+ );
29
+ }
30
+ if (section.fieldGroupName === "Case_Case_Content_CenterColumn") {
31
+ return (
32
+ <CenterColumn key={section.fieldGroupName + i} section={section} />
33
+ );
34
+ }
35
+ if (section.fieldGroupName === "Case_Case_Content_Twocolumns") {
36
+ return (
37
+ <TwoColumns
38
+ key={section.fieldGroupName + i}
39
+ section={section}
40
+ Image={Image}
41
+ />
42
+ );
43
+ }
44
+ if (section.fieldGroupName === "Case_Case_Content_Video") {
45
+ return (
46
+ <section
47
+ className={styles.section}
48
+ key={section.fieldGroupName + i}
49
+ >
50
+ <Container>
51
+ <Video section={section} />
52
+ </Container>
53
+ </section>
54
+ );
55
+ }
56
+
57
+ if (
58
+ section.fieldGroupName ===
59
+ "Post_Customfieldsposts_Content_FullWidthImage"
60
+ ) {
61
+ return (
62
+ <FullWidthImage
63
+ key={section.fieldGroupName + i}
64
+ section={section}
65
+ Image={Image}
66
+ />
67
+ );
68
+ }
69
+ if (
70
+ section.fieldGroupName ===
71
+ "Post_Customfieldsposts_Content_CenterColumn"
72
+ ) {
73
+ return (
74
+ <CenterColumn key={section.fieldGroupName + i} section={section} />
75
+ );
76
+ }
77
+ if (
78
+ section.fieldGroupName === "Post_Customfieldsposts_Content_Twocolumns"
79
+ ) {
80
+ return (
81
+ <TwoColumns
82
+ key={section.fieldGroupName + i}
83
+ section={section}
84
+ Image={Image}
85
+ />
86
+ );
87
+ }
88
+ if (section.fieldGroupName === "Post_Customfieldsposts_Content_Video") {
89
+ return (
90
+ <section
91
+ className={styles.section}
92
+ key={section.fieldGroupName + i}
93
+ >
94
+ <Container>
95
+ <Video section={section} />
96
+ </Container>
97
+ </section>
98
+ );
99
+ }
100
+
101
+ return undefined;
102
+ })}
103
+ </div>
104
+ );
105
+ }
106
+
107
+ export default PostContent;
@@ -0,0 +1,205 @@
1
+ @use "../../variables" as *;
2
+
3
+ .wrapper {
4
+ padding-bottom: 180px;
5
+
6
+ @media #{$QUERY-sm} {
7
+ padding-bottom: 90px;
8
+ }
9
+ }
10
+
11
+ .section {
12
+ padding: 80px 0;
13
+
14
+ @media #{$QUERY-md} {
15
+ padding: 60px 0;
16
+ }
17
+
18
+ @media #{$QUERY-sm} {
19
+ padding: 0 0 30px 0;
20
+ }
21
+
22
+ &:first-child {
23
+ padding-top: 0;
24
+ }
25
+
26
+ &:last-child {
27
+ padding-bottom: 0;
28
+ }
29
+ }
30
+
31
+ .fullWidthImage {
32
+ width: 100%;
33
+
34
+ @media #{$QUERY-md} {
35
+ // height: 400px;
36
+ }
37
+
38
+ @media #{$QUERY-sm} {
39
+ // height: 300px;
40
+ }
41
+
42
+ .image {
43
+ width: 100%;
44
+ object-fit: cover;
45
+
46
+ & div:first-child {
47
+ max-width: 100% !important;
48
+ }
49
+
50
+ @media #{$QUERY-sm} {
51
+ min-height: 160px;
52
+ }
53
+ }
54
+ }
55
+
56
+ .content {
57
+ width: 620px;
58
+ max-width: 100%;
59
+ margin: 0 auto;
60
+ }
61
+
62
+ .twoColumns {
63
+ display: flex;
64
+ justify-content: space-between;
65
+ align-items: flex-start;
66
+
67
+ @media #{$QUERY-md} {
68
+ align-items: flex-start;
69
+ }
70
+
71
+ @media #{$QUERY-sm} {
72
+ display: block;
73
+ }
74
+ }
75
+
76
+ .text {
77
+ width: 510px;
78
+ max-width: 100%;
79
+ &.right {
80
+ margin-left: auto;
81
+ }
82
+ }
83
+
84
+ .column {
85
+ width: 570px;
86
+ max-width: calc(50% - 20px);
87
+ display: flex;
88
+ align-items: center;
89
+
90
+ &:first-child {
91
+ @media #{$QUERY-sm} {
92
+ margin-bottom: 30px;
93
+ }
94
+ }
95
+
96
+ @media #{$QUERY-sm} {
97
+ max-width: 100%;
98
+ width: 100%;
99
+ }
100
+
101
+ .image {
102
+ width: 100%;
103
+ object-fit: cover;
104
+
105
+ & div:first-child {
106
+ max-width: 100%;
107
+ }
108
+
109
+ @media #{$QUERY-md} {
110
+ max-height: 400px;
111
+ }
112
+
113
+ @media #{$QUERY-sm} {
114
+ max-height: 300px;
115
+ }
116
+ }
117
+ }
118
+
119
+ .columnContent {
120
+ width: 100%;
121
+ }
122
+
123
+ .video {
124
+ max-width: 100%;
125
+ margin: 0 auto;
126
+ position: relative;
127
+ background-color: #eee;
128
+ background-position: center;
129
+ background-repeat: no-repeat;
130
+
131
+ &.playing {
132
+ cursor: url("/svg/pause.svg"), auto;
133
+ }
134
+
135
+ &:not(.playing) {
136
+ cursor: url("/svg/play.svg"), auto;
137
+ }
138
+
139
+ .player {
140
+ position: absolute;
141
+ top: 0;
142
+ left: 0;
143
+ }
144
+
145
+ iframe,
146
+ video {
147
+ width: 100%;
148
+ height: 100%;
149
+ display: block;
150
+ margin: auto;
151
+ }
152
+ }
153
+
154
+ .btnMobile {
155
+ width: 40px;
156
+ height: 40px;
157
+ position: absolute;
158
+ top: 50%;
159
+ left: 50%;
160
+ transform: translate(-50%, -50%);
161
+ background-size: contain;
162
+ background-repeat: no-repeat;
163
+ z-index: 5;
164
+ display: none;
165
+ background: transparent;
166
+ border: none;
167
+
168
+ &.playing {
169
+ background-image: url("/svg/pause.svg");
170
+ }
171
+
172
+ &:not(.playing) {
173
+ background-image: url("/svg/play.svg");
174
+ }
175
+
176
+ @media #{$QUERY-sm} {
177
+ display: block;
178
+ }
179
+ }
180
+
181
+ .overlay {
182
+ position: absolute;
183
+ top: 0;
184
+ left: 0;
185
+ width: 100%;
186
+ height: 100%;
187
+ z-index: 4;
188
+
189
+ &.playing {
190
+ cursor: url("/svg/pause.svg"), auto;
191
+ }
192
+
193
+ &:not(.playing) {
194
+ cursor: url("/svg/play.svg"), auto;
195
+ }
196
+
197
+ @media #{$QUERY-sm} {
198
+ display: none;
199
+ }
200
+ }
201
+
202
+ .caption {
203
+ color: $color-gray;
204
+ margin: 1rem auto;
205
+ }
@@ -0,0 +1,55 @@
1
+ import Container from "../../Container";
2
+ import styles from "./styles.module.scss";
3
+ import Arrow from "../../../assets/svg/caret-right.svg?react";
4
+ import { translate } from "../../../utils";
5
+ import { Case, NextImage, NextLink } from "../../../types";
6
+
7
+ function Other({
8
+ cases,
9
+ Link,
10
+ Image,
11
+ }: {
12
+ cases: Case[];
13
+ Link: NextLink;
14
+ Image: NextImage;
15
+ }) {
16
+ if (!cases) return;
17
+
18
+ return (
19
+ <Container>
20
+ <div className={styles.wrapper}>
21
+ <div className={styles.top}>
22
+ <h3 className={styles.heading}>{translate("Other projects")}</h3>
23
+ <div className={styles.button}>
24
+ <Link href="/cases">{translate("See all")}</Link>
25
+ </div>
26
+ </div>
27
+ <div className={styles.cases}>
28
+ {cases.map((item) => (
29
+ <div key={item.id} className={styles.case}>
30
+ <Link href={item.uri}>
31
+ <div className={styles.image}>
32
+ {item.case.mainImage && (
33
+ <Image
34
+ className={styles.image}
35
+ src={item.case.mainImage.sourceUrl}
36
+ alt={item.title || ""}
37
+ width={400}
38
+ height={490}
39
+ />
40
+ )}
41
+ </div>
42
+ <div className={styles.texts}>
43
+ <div>{item.title}</div>
44
+ <Arrow />
45
+ </div>
46
+ </Link>
47
+ </div>
48
+ ))}
49
+ </div>
50
+ </div>
51
+ </Container>
52
+ );
53
+ }
54
+
55
+ export default Other;
@@ -0,0 +1,114 @@
1
+ @use "../../variables" as *;
2
+
3
+ .wrapper {
4
+ padding: 100px 0 200px;
5
+
6
+ @media #{$QUERY-md} {
7
+ padding: 60px 0 120px;
8
+ }
9
+
10
+ @media #{$QUERY-sm} {
11
+ padding: 60px 0;
12
+ }
13
+ }
14
+
15
+ .top {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: space-between;
19
+ margin-bottom: 80px;
20
+
21
+ @media #{$QUERY-md} {
22
+ margin-bottom: 50px;
23
+ }
24
+
25
+ @media #{$QUERY-sm} {
26
+ display: block;
27
+ }
28
+ }
29
+
30
+ .heading {
31
+ font-size: 82px;
32
+ font-weight: bold;
33
+ margin-right: 20px;
34
+
35
+ @media #{$QUERY-md} {
36
+ font-size: 42px;
37
+ }
38
+
39
+ @media #{$QUERY-sm} {
40
+ margin-bottom: 20px;
41
+ }
42
+ }
43
+
44
+ .button {
45
+ background-color: $color-blue;
46
+ border: solid 1px $color-blue;
47
+ width: 150px;
48
+
49
+ &:hover {
50
+ background-color: $color-white;
51
+
52
+ a {
53
+ color: $color-blue;
54
+ }
55
+ }
56
+
57
+ a {
58
+ text-align: center;
59
+ display: block;
60
+ width: 150px;
61
+ padding: 15px;
62
+ color: $color-white;
63
+ text-decoration: none;
64
+ box-sizing: border-box;
65
+ }
66
+ }
67
+
68
+ .cases {
69
+ display: flex;
70
+ margin: 0 -10px;
71
+
72
+ @media #{$QUERY-sm} {
73
+ display: block;
74
+ margin: 0;
75
+ }
76
+ }
77
+
78
+ .case {
79
+ width: calc(33.333% - 20px);
80
+ margin: 0 10px;
81
+
82
+ @media #{$QUERY-sm} {
83
+ width: 100%;
84
+ margin: 0;
85
+ margin-bottom: 50px;
86
+ }
87
+
88
+ a {
89
+ color: $color-black;
90
+ text-decoration: none;
91
+ }
92
+ }
93
+
94
+ .image {
95
+ width: 100%;
96
+ height: 490px;
97
+ margin-bottom: 10px;
98
+
99
+ @media #{$QUERY-md} {
100
+ height: 300px;
101
+ }
102
+
103
+ .image {
104
+ width: 100%;
105
+ height: 100%;
106
+ object-fit: cover;
107
+ }
108
+ }
109
+
110
+ .texts {
111
+ display: flex;
112
+ justify-content: space-between;
113
+ align-items: center;
114
+ }