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
+ @use "../../variables" as *;
2
+
3
+ .wrapper {
4
+ display: flex;
5
+ justify-content: space-between;
6
+
7
+ @media #{$QUERY-sm} {
8
+ display: block;
9
+ }
10
+ }
11
+
12
+ .office {
13
+ width: calc(33.333% - 16px);
14
+ margin: 0 8px;
15
+
16
+ @media #{$QUERY-sm} {
17
+ width: 100%;
18
+ margin: 0 0 70px;
19
+ }
20
+ }
21
+
22
+ .image {
23
+ width: 100%;
24
+ padding-top: 144%;
25
+ position: relative;
26
+ background: $color-gray;
27
+ margin-bottom: 30px;
28
+
29
+ @media #{$QUERY-sm} {
30
+ margin-bottom: 15px;
31
+ }
32
+
33
+ img {
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ width: 100%;
38
+ height: 100%;
39
+ object-fit: cover;
40
+ }
41
+ }
42
+
43
+ .text {
44
+ font-size: 16px;
45
+ line-height: 1.5;
46
+ color: $color-brown;
47
+
48
+ &.hasMargin {
49
+ margin-bottom: 1rem;
50
+ }
51
+
52
+ a {
53
+ &:hover {
54
+ color: $color-blue;
55
+ }
56
+ }
57
+ }
58
+
59
+ .heading {
60
+ font-size: 42px;
61
+ font-family: $font-secondary;
62
+ color: $color-brown;
63
+ }
64
+
65
+ .phone {
66
+ font-size: 16px;
67
+ color: $color-brown;
68
+ margin-top: 16px;
69
+ margin-bottom: 24px;
70
+ }
71
+
72
+ .address {
73
+ font-size: 16px;
74
+ color: $color-brown;
75
+
76
+ &:hover {
77
+ text-decoration: underline;
78
+ }
79
+ }
@@ -0,0 +1,15 @@
1
+ import Container from "../../Container";
2
+ import Offices from "../Offices/Loading";
3
+ import styles from "./styles.module.scss";
4
+
5
+ const index = () => {
6
+ return (
7
+ <div className={styles.officesSection}>
8
+ <Container>
9
+ <Offices />
10
+ </Container>
11
+ </div>
12
+ );
13
+ };
14
+
15
+ export default index;
@@ -0,0 +1,22 @@
1
+ import Container from "../../Container";
2
+ import Offices from "../Offices";
3
+ import styles from "./styles.module.scss";
4
+ import { NextImage, OfficeDetails } from "../../../types";
5
+
6
+ const index = ({
7
+ details,
8
+ Image,
9
+ }: {
10
+ details: OfficeDetails;
11
+ Image: NextImage;
12
+ }) => {
13
+ return (
14
+ <div className={styles.officesSection}>
15
+ <Container>
16
+ <Offices details={details} Image={Image} />
17
+ </Container>
18
+ </div>
19
+ );
20
+ };
21
+
22
+ export default index;
@@ -0,0 +1,9 @@
1
+ @use "../../variables" as *;
2
+
3
+ .officesSection {
4
+ padding-bottom: 64px;
5
+
6
+ @media #{$QUERY-sm} {
7
+ padding-bottom: 0;
8
+ }
9
+ }
@@ -0,0 +1,52 @@
1
+ import styles from "./styles.module.scss";
2
+ import Container from "../../Container";
3
+
4
+ const Posts = () => {
5
+ const posts = [
6
+ {
7
+ id: "post1",
8
+ },
9
+ {
10
+ id: "post2",
11
+ },
12
+ {
13
+ id: "post3",
14
+ },
15
+ {
16
+ id: "post4",
17
+ },
18
+ {
19
+ id: "post5",
20
+ },
21
+ {
22
+ id: "post6",
23
+ },
24
+ ];
25
+ return (
26
+ <section className={styles.section}>
27
+ <Container>
28
+ {posts.map((item) => {
29
+ return (
30
+ <div key={item.id} className={styles.item}>
31
+ <div className={styles.wrapper}>
32
+ <div className={`${styles.image} ${styles.imageloading}`} />
33
+ <div className={styles.texts}>
34
+ <span className={styles.date}>date...</span>
35
+ <h2 className={styles.title}>
36
+ <a>Loading title...</a>
37
+ </h2>
38
+ <div className={styles.excerpt}>Loading excerpt...</div>
39
+ <div className={styles.button}>
40
+ <a>Read more</a>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ );
46
+ })}
47
+ </Container>
48
+ </section>
49
+ );
50
+ };
51
+
52
+ export default Posts;
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import { useState } from "react";
3
+ import styles from "./styles.module.scss";
4
+ import Hourglass from "../../../assets/svg/hourglass.svg?react";
5
+ import { translate } from "../../../utils";
6
+ import { getPosts } from "../../../queries";
7
+ import { NextImage, NextLink, Post } from "../../../types";
8
+
9
+ const More = ({
10
+ endCursor,
11
+ Link,
12
+ Image,
13
+ }: {
14
+ endCursor: string;
15
+ Link: NextLink;
16
+ Image: NextImage;
17
+ }) => {
18
+ const [loading, setLoading] = useState(false);
19
+ const [news, setNews] = useState<Post[]>([]);
20
+ const [end, setEnd] = useState<string | null>(endCursor);
21
+ const [finished, setFinished] = useState(false);
22
+
23
+ const handleMore = async () => {
24
+ setLoading(true);
25
+
26
+ const { posts, pageInfo } = await getPosts({ params: { after: end } });
27
+
28
+ if (!pageInfo.hasNextPage) {
29
+ setFinished(true);
30
+ }
31
+
32
+ setNews([...news, ...posts]);
33
+ setEnd(pageInfo.endCursor);
34
+ setLoading(false);
35
+ };
36
+
37
+ return (
38
+ <>
39
+ {news &&
40
+ news.map((item) => {
41
+ const date = new Date(item.date).toLocaleDateString("de-DE");
42
+
43
+ return (
44
+ <div key={item.id} className={styles.item}>
45
+ <div className={styles.wrapper}>
46
+ <div className={styles.image}>
47
+ {item.CustomFieldsPosts.thumbnailImage && (
48
+ <Image
49
+ src={item.CustomFieldsPosts.thumbnailImage.sourceUrl}
50
+ alt={item.title || ""}
51
+ width={626}
52
+ height={375}
53
+ />
54
+ )}
55
+ </div>
56
+ <div className={styles.texts}>
57
+ {date && <span className={styles.date}>{date}</span>}
58
+ <h2 className={styles.title}>
59
+ <Link href={`/news/${item.uri}`}>{item.title}</Link>
60
+ </h2>
61
+ <div className={styles.excerpt}>
62
+ {item.CustomFieldsPosts.excerpt}
63
+ </div>
64
+ <div className={styles.btn}>
65
+ <Link href={`/news/${item.uri}`}>
66
+ {translate("Read more")}
67
+ </Link>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ );
73
+ })}
74
+ <div className={styles.bottom}>
75
+ {loading && (
76
+ <div className={styles.loading}>
77
+ <Hourglass />
78
+ </div>
79
+ )}
80
+ {!loading && !finished && (
81
+ <button
82
+ type="button"
83
+ className={styles.loadMore}
84
+ onClick={handleMore}
85
+ >
86
+ {translate("Load more")}
87
+ </button>
88
+ )}
89
+ </div>
90
+ </>
91
+ );
92
+ };
93
+
94
+ export default More;
@@ -0,0 +1,61 @@
1
+ import styles from "./styles.module.scss";
2
+ import Container from "../../Container";
3
+ import { translate } from "../../../utils";
4
+ import { NextImage, NextLink, Post } from "../../../types";
5
+ import More from "./More";
6
+
7
+ const Posts = ({
8
+ posts,
9
+ endCursor,
10
+ Link,
11
+ Image,
12
+ }: {
13
+ posts: Post[];
14
+ endCursor: string;
15
+ Link: NextLink;
16
+ Image: NextImage;
17
+ }) => {
18
+ return (
19
+ <section className={styles.section}>
20
+ <Container>
21
+ {posts.map((item) => {
22
+ const date = new Date(item.date).toLocaleDateString("de-DE");
23
+
24
+ return (
25
+ <div key={item.id} className={styles.item}>
26
+ <div className={styles.wrapper}>
27
+ <div className={styles.image}>
28
+ {item.CustomFieldsPosts.thumbnailImage && (
29
+ <Image
30
+ src={item.CustomFieldsPosts.thumbnailImage.sourceUrl}
31
+ alt={item.title || ""}
32
+ width={626}
33
+ height={375}
34
+ />
35
+ )}
36
+ </div>
37
+ <div className={styles.texts}>
38
+ {date && <span className={styles.date}>{date}</span>}
39
+ <h2 className={styles.title}>
40
+ <Link href={`/news/${item.uri}`}>{item.title}</Link>
41
+ </h2>
42
+ <div className={styles.excerpt}>
43
+ {item.CustomFieldsPosts.excerpt}
44
+ </div>
45
+ <div className={styles.buttonWrapper}>
46
+ <Link className={styles.button} href={`/news/${item.uri}`}>
47
+ {translate("Read more")}
48
+ </Link>
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </div>
53
+ );
54
+ })}
55
+ <More endCursor={endCursor} Link={Link} Image={Image} />
56
+ </Container>
57
+ </section>
58
+ );
59
+ };
60
+
61
+ export default Posts;
@@ -0,0 +1,171 @@
1
+ @use "../../variables" as *;
2
+
3
+ .section {
4
+ // Add any section specific styles
5
+ }
6
+
7
+ .item {
8
+ margin-bottom: 70px;
9
+ }
10
+
11
+ .wrapper {
12
+ display: flex;
13
+ align-items: center;
14
+
15
+ @media #{$QUERY-md} {
16
+ display: block;
17
+ }
18
+ }
19
+
20
+ .image {
21
+ height: 375px;
22
+ width: 600px;
23
+ max-width: 50%;
24
+ flex-shrink: 0;
25
+ background-color: $color-gray-light;
26
+ margin-right: 100px;
27
+
28
+ @media #{$QUERY-lg} {
29
+ margin-right: 0;
30
+ }
31
+
32
+ @media #{$QUERY-md} {
33
+ width: 100%;
34
+ max-width: 100%;
35
+ height: 350px;
36
+ }
37
+
38
+ img {
39
+ width: 100%;
40
+ height: 100%;
41
+ object-fit: cover;
42
+ }
43
+
44
+ &.imageloading {
45
+ background-color: $color-gray-light;
46
+ }
47
+ }
48
+
49
+ .texts {
50
+ width: 600px;
51
+ max-width: 50%;
52
+ flex-shrink: 0;
53
+ box-sizing: border-box;
54
+
55
+ @media #{$QUERY-lg} {
56
+ padding-left: 50px;
57
+ }
58
+
59
+ @media #{$QUERY-md} {
60
+ width: 100%;
61
+ max-width: 100%;
62
+ padding: 30px 0 0;
63
+ }
64
+ }
65
+
66
+ .date {
67
+ font-size: 20px;
68
+ font-weight: 500;
69
+ color: $color-blue;
70
+ margin-bottom: 10px;
71
+ display: inline-block;
72
+ }
73
+
74
+ .title {
75
+ a {
76
+ font-size: 42px;
77
+ line-height: 1.2;
78
+ font-family: $font-secondary;
79
+ font-weight: 400;
80
+ margin-bottom: 15px;
81
+ color: $color-brown;
82
+ display: block;
83
+
84
+ @media #{$QUERY-md} {
85
+ font-size: 31px;
86
+ }
87
+
88
+ &:hover {
89
+ text-decoration: underline;
90
+ }
91
+ }
92
+ }
93
+
94
+ .excerpt {
95
+ font-size: 22px;
96
+ margin-bottom: 30px;
97
+ color: $color-brown;
98
+
99
+ @media #{$QUERY-md} {
100
+ font-size: 18px;
101
+ }
102
+ }
103
+
104
+ .buttonWrapper {
105
+ }
106
+
107
+ .button {
108
+ display: inline-block;
109
+ }
110
+
111
+ .loadMore {
112
+ background: none;
113
+ border: solid 1px $color-black;
114
+ width: 150px;
115
+ text-align: center;
116
+ padding: 15px;
117
+ margin: 0 auto;
118
+ cursor: pointer;
119
+ display: block;
120
+
121
+ &:hover {
122
+ background-color: $color-black;
123
+ color: $color-white;
124
+ }
125
+ }
126
+
127
+ .loading {
128
+ margin: 0 auto;
129
+ width: 180px;
130
+ position: absolute;
131
+ top: 50%;
132
+ left: 50%;
133
+ transform: translate(-50%, -65%);
134
+
135
+ @media #{$QUERY-lg} {
136
+ width: 100px;
137
+ }
138
+
139
+ svg {
140
+ max-width: 100%;
141
+ }
142
+ }
143
+
144
+ .rotateRight {
145
+ animation: rotate 8s linear infinite;
146
+ transform-origin: center;
147
+ }
148
+
149
+ .rotateLeft {
150
+ animation: rotate 8s linear infinite reverse;
151
+ transform-origin: center;
152
+ }
153
+
154
+ .bottom {
155
+ min-height: 130px;
156
+ margin-top: 120px;
157
+ position: relative;
158
+
159
+ @media #{$QUERY-lg} {
160
+ min-height: 100px;
161
+ }
162
+ }
163
+
164
+ @keyframes rotate {
165
+ from {
166
+ transform: rotate(0deg);
167
+ }
168
+ to {
169
+ transform: rotate(360deg);
170
+ }
171
+ }
@@ -0,0 +1,18 @@
1
+ import Container from "../../Container";
2
+ import styles from "./styles.module.scss";
3
+ import { type CenterColumn } from "../../../types";
4
+
5
+ function CenterColumn({ section }: { section: CenterColumn }) {
6
+ return (
7
+ <section className={styles.section}>
8
+ <Container>
9
+ <div
10
+ className={styles.content}
11
+ dangerouslySetInnerHTML={{ __html: section.text }}
12
+ />
13
+ </Container>
14
+ </section>
15
+ );
16
+ }
17
+
18
+ export default CenterColumn;
@@ -0,0 +1,60 @@
1
+ import styles from "./styles.module.scss";
2
+ import Container from "../../Container";
3
+ import { NextImage, type FullWidthImage } from "../../../types";
4
+
5
+ function FullWidthImage({
6
+ section,
7
+ Image,
8
+ }: {
9
+ section: FullWidthImage;
10
+ Image: NextImage;
11
+ }) {
12
+ if (!section || !section.image) return null;
13
+
14
+ const {
15
+ image: { sourceUrl },
16
+ caption,
17
+ } = section;
18
+
19
+ return (
20
+ <section className={styles.section}>
21
+ {!section.fullWidth && (
22
+ <Container>
23
+ <div className={styles.fullWidthImage}>
24
+ {sourceUrl && (
25
+ <Image
26
+ className={styles.image}
27
+ src={sourceUrl}
28
+ alt={caption ? caption : "foundry digital agency"}
29
+ layout="intrinsic"
30
+ width={1252}
31
+ height={600}
32
+ />
33
+ )}
34
+ </div>
35
+ </Container>
36
+ )}
37
+ {section.fullWidth && (
38
+ <div className={styles.fullWidthImage}>
39
+ {sourceUrl && (
40
+ <Image
41
+ className={styles.image}
42
+ src={sourceUrl}
43
+ alt={caption ? caption : "foundry digital agency"}
44
+ layout="intrinsic"
45
+ width={1400}
46
+ height={600}
47
+ />
48
+ )}
49
+ </div>
50
+ )}
51
+ {caption && (
52
+ <Container>
53
+ <div className={styles.caption}>{caption}</div>
54
+ </Container>
55
+ )}
56
+ </section>
57
+ );
58
+ }
59
+
60
+ export default FullWidthImage;
@@ -0,0 +1,12 @@
1
+ import Container from "../../Container";
2
+ import styles from "./styles.module.scss";
3
+
4
+ function Content() {
5
+ return (
6
+ <div className={styles.wrapper}>
7
+ <Container>loading content...</Container>
8
+ </div>
9
+ );
10
+ }
11
+
12
+ export default Content;
@@ -0,0 +1,80 @@
1
+ import styles from "../styles.module.scss";
2
+ import Video from "../Video";
3
+ import { ColumnOption, NextImage } from "../../../../types";
4
+
5
+ const Left = ({
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_Left_Text" && (
18
+ <div
19
+ className={styles.text}
20
+ dangerouslySetInnerHTML={{ __html: section.text }}
21
+ />
22
+ )}
23
+ {section.fieldGroupName === "Case_Case_Content_Twocolumns_Left_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 === "Case_Case_Content_Twocolumns_Left_Video" && (
40
+ <Video section={section} />
41
+ )}
42
+
43
+ {/* post */}
44
+ {section.fieldGroupName ===
45
+ "Post_Customfieldsposts_Content_Twocolumns_Left_Text" && (
46
+ <div
47
+ className={styles.text}
48
+ dangerouslySetInnerHTML={{ __html: section.text }}
49
+ />
50
+ )}
51
+ {section.fieldGroupName ===
52
+ "Post_Customfieldsposts_Content_Twocolumns_Left_Image" &&
53
+ section.image && (
54
+ <>
55
+ {section.image.sourceUrl && (
56
+ <Image
57
+ className={styles.image}
58
+ src={section.image.sourceUrl}
59
+ alt={
60
+ section.caption ? section.caption : "foundry digital agency"
61
+ }
62
+ layout="intrinsic"
63
+ width={600}
64
+ height={600}
65
+ />
66
+ )}
67
+ {section.caption && (
68
+ <div className={styles.caption}>{section.caption}</div>
69
+ )}
70
+ </>
71
+ )}
72
+ {section.fieldGroupName ===
73
+ "Post_Customfieldsposts_Content_Twocolumns_Left_Video" && (
74
+ <Video section={section} />
75
+ )}
76
+ </div>
77
+ );
78
+ };
79
+
80
+ export default Left;