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.
- package/lib/assets/image/fallbackVideo.png +0 -0
- package/lib/assets/image/pause.png +0 -0
- package/lib/assets/image/placeholder.png +0 -0
- package/lib/assets/image/play.png +0 -0
- package/lib/assets/svg/arrow.svg +3 -0
- package/lib/assets/svg/caret-down.svg +3 -0
- package/lib/assets/svg/caret-right.svg +4 -0
- package/lib/assets/svg/close.svg +5 -0
- package/lib/assets/svg/comment.svg +18 -0
- package/lib/assets/svg/facebook.svg +10 -0
- package/lib/assets/svg/footer-logo.svg +16 -0
- package/lib/assets/svg/hourglass.svg +1 -0
- package/lib/assets/svg/linkedin.svg +3 -0
- package/lib/assets/svg/logo.svg +3 -0
- package/lib/assets/svg/mute.svg +1 -0
- package/lib/assets/svg/muted.svg +1 -0
- package/lib/assets/svg/play-button.svg +4 -0
- package/lib/assets/svg/plus.svg +5 -0
- package/lib/assets/svg/unicorn.svg +3 -0
- package/lib/components/AgencyNumbers/index.tsx +50 -0
- package/lib/components/AgencyNumbers/styles.module.scss +71 -0
- package/lib/components/Awards/index.tsx +48 -0
- package/lib/components/Awards/styles.module.scss +52 -0
- package/lib/components/Capabilities/Item.tsx +139 -0
- package/lib/components/Capabilities/index.tsx +49 -0
- package/lib/components/Capabilities/styles.module.scss +154 -0
- package/lib/components/CaseStudyTeaser/index.tsx +77 -0
- package/lib/components/CaseStudyTeaser/styles.module.scss +88 -0
- package/lib/components/ContactButton/index.tsx +14 -0
- package/lib/components/ContactButton/styles.module.scss +25 -0
- package/lib/components/ContactTeaser/index.tsx +36 -0
- package/lib/components/ContactTeaser/styles.module.scss +46 -0
- package/lib/components/Container/index.tsx +19 -0
- package/lib/components/Container/styles.module.scss +22 -0
- package/lib/components/DoubleTiles/Tile.tsx +28 -0
- package/lib/components/DoubleTiles/index.tsx +43 -0
- package/lib/components/DoubleTiles/styles.module.scss +87 -0
- package/lib/components/Footer/index.tsx +109 -0
- package/lib/components/Footer/styles.module.scss +147 -0
- package/lib/components/Header/Menu.tsx +77 -0
- package/lib/components/Header/index.tsx +49 -0
- package/lib/components/Header/styles.module.scss +169 -0
- package/lib/components/Hero/Loading.tsx +36 -0
- package/lib/components/Hero/index.tsx +72 -0
- package/lib/components/Hero/styles.module.scss +63 -0
- package/lib/components/HubsAccordion/Hub.tsx +127 -0
- package/lib/components/HubsAccordion/index.tsx +41 -0
- package/lib/components/HubsAccordion/styles.module.scss +206 -0
- package/lib/components/ImageTitle/index.tsx +39 -0
- package/lib/components/ImageTitle/styles.module.scss +60 -0
- package/lib/components/LargeText/Loading.tsx +7 -0
- package/lib/components/LargeText/Word.tsx +26 -0
- package/lib/components/LargeText/index.tsx +56 -0
- package/lib/components/LargeText/styles.module.scss +51 -0
- package/lib/components/LogoSection/Dropdown.tsx +82 -0
- package/lib/components/LogoSection/Logos.tsx +112 -0
- package/lib/components/LogoSection/index.tsx +45 -0
- package/lib/components/LogoSection/styles.module.scss +142 -0
- package/lib/components/Management/index.tsx +97 -0
- package/lib/components/Management/styles.module.scss +80 -0
- package/lib/components/MarketingStats/index.tsx +64 -0
- package/lib/components/MarketingStats/styles.module.scss +77 -0
- package/lib/components/NewsTeaser/index.tsx +71 -0
- package/lib/components/NewsTeaser/styles.module.scss +121 -0
- package/lib/components/OfficesTeaser/index.tsx +32 -0
- package/lib/components/OfficesTeaser/styles.module.scss +40 -0
- package/lib/components/PartnerNetwork/index.tsx +47 -0
- package/lib/components/PartnerNetwork/styles.module.scss +32 -0
- package/lib/components/QuoteSection/index.tsx +59 -0
- package/lib/components/QuoteSection/styles.module.scss +84 -0
- package/lib/components/ServiceHubsTeaser/Tile.tsx +34 -0
- package/lib/components/ServiceHubsTeaser/index.tsx +72 -0
- package/lib/components/ServiceHubsTeaser/styles.module.scss +69 -0
- package/lib/components/TeamBenefits/Tile.tsx +18 -0
- package/lib/components/TeamBenefits/index.tsx +41 -0
- package/lib/components/TeamBenefits/styles.module.scss +57 -0
- package/lib/components/TeamPhotos/Item.tsx +31 -0
- package/lib/components/TeamPhotos/Loading.tsx +42 -0
- package/lib/components/TeamPhotos/index.tsx +26 -0
- package/lib/components/TeamPhotos/styles.module.scss +79 -0
- package/lib/components/TextSection/Loading.tsx +36 -0
- package/lib/components/TextSection/index.tsx +40 -0
- package/lib/components/TextSection/styles.module.scss +75 -0
- package/lib/components/Tiles/Tile.tsx +21 -0
- package/lib/components/Tiles/index.tsx +43 -0
- package/lib/components/Tiles/styles.module.scss +60 -0
- package/lib/components/VideoTeaser/Loading.tsx +7 -0
- package/lib/components/VideoTeaser/index.tsx +56 -0
- package/lib/components/VideoTeaser/styles.module.scss +93 -0
- package/lib/components/_variables.scss +146 -0
- package/lib/components/case/Content/CenterColumn.tsx +18 -0
- package/lib/components/case/Content/FullWidthImage.tsx +60 -0
- package/lib/components/case/Content/Numbers/index.tsx +46 -0
- package/lib/components/case/Content/Numbers/styles.module.scss +41 -0
- package/lib/components/case/Content/Results/index.tsx +44 -0
- package/lib/components/case/Content/Results/styles.module.scss +34 -0
- package/lib/components/case/Content/TwoColumns/Left.tsx +46 -0
- package/lib/components/case/Content/TwoColumns/Right.tsx +47 -0
- package/lib/components/case/Content/TwoColumns/index.tsx +32 -0
- package/lib/components/case/Content/Video.tsx +88 -0
- package/lib/components/case/Content/index.tsx +86 -0
- package/lib/components/case/Content/styles.module.scss +175 -0
- package/lib/components/case/Other/index.tsx +66 -0
- package/lib/components/case/Other/styles.module.scss +118 -0
- package/lib/components/case/ShareButton/index.tsx +27 -0
- package/lib/components/case/ShareButton/styles.module.scss +5 -0
- package/lib/components/case/Top/Loading.tsx +51 -0
- package/lib/components/case/Top/index.tsx +94 -0
- package/lib/components/case/Top/styles.module.scss +162 -0
- package/lib/components/cases/Items/More.tsx +103 -0
- package/lib/components/cases/Items/Video.tsx +47 -0
- package/lib/components/cases/Items/index.tsx +123 -0
- package/lib/components/cases/Items/styles.module.scss +165 -0
- package/lib/components/cases/Pagination/index.tsx +61 -0
- package/lib/components/cases/Pagination/styles.module.scss +27 -0
- package/lib/components/cases/Top/Dropdown.tsx +94 -0
- package/lib/components/cases/Top/index.tsx +67 -0
- package/lib/components/cases/Top/styles.module.scss +151 -0
- package/lib/components/contact/Accounts/index.tsx +50 -0
- package/lib/components/contact/Accounts/styles.module.scss +61 -0
- package/lib/components/contact/Contacts/index.tsx +50 -0
- package/lib/components/contact/Contacts/styles.module.scss +67 -0
- package/lib/components/contact/Offices/Loading.tsx +45 -0
- package/lib/components/contact/Offices/index.tsx +106 -0
- package/lib/components/contact/Offices/styles.module.scss +79 -0
- package/lib/components/contact/OfficesSection/Loading.tsx +15 -0
- package/lib/components/contact/OfficesSection/index.tsx +22 -0
- package/lib/components/contact/OfficesSection/styles.module.scss +9 -0
- package/lib/components/news/Posts/Loading.tsx +52 -0
- package/lib/components/news/Posts/More.tsx +94 -0
- package/lib/components/news/Posts/index.tsx +61 -0
- package/lib/components/news/Posts/styles.module.scss +171 -0
- package/lib/components/single/Content/CenterColumn.tsx +18 -0
- package/lib/components/single/Content/FullWidthImage.tsx +60 -0
- package/lib/components/single/Content/Loading.tsx +12 -0
- package/lib/components/single/Content/TwoColumns/Left.tsx +80 -0
- package/lib/components/single/Content/TwoColumns/Right.tsx +79 -0
- package/lib/components/single/Content/TwoColumns/index.tsx +32 -0
- package/lib/components/single/Content/Video.tsx +88 -0
- package/lib/components/single/Content/index.tsx +107 -0
- package/lib/components/single/Content/styles.module.scss +205 -0
- package/lib/components/single/Other/index.tsx +55 -0
- package/lib/components/single/Other/styles.module.scss +114 -0
- package/lib/components/single/ShareBar/index.tsx +53 -0
- package/lib/components/single/ShareBar/styles.module.scss +63 -0
- package/lib/components/single/Top/Breadcrumbs.tsx +34 -0
- package/lib/components/single/Top/Loading.tsx +14 -0
- package/lib/components/single/Top/index.tsx +20 -0
- package/lib/components/single/Top/styles.module.scss +163 -0
- package/lib/hooks/useClickOutside.ts +27 -0
- package/lib/hooks/useDrag.ts +59 -0
- package/lib/hooks/useOnScreen.ts +27 -0
- package/lib/index.ts +83 -0
- package/lib/queries/client.ts +6 -0
- package/lib/queries/getAboutPage.ts +164 -0
- package/lib/queries/getBrands.ts +26 -0
- package/lib/queries/getCaseBySlug.ts +187 -0
- package/lib/queries/getCases.ts +124 -0
- package/lib/queries/getCasesPage.ts +217 -0
- package/lib/queries/getCategories.ts +23 -0
- package/lib/queries/getContactPage.ts +100 -0
- package/lib/queries/getHomePage.ts +215 -0
- package/lib/queries/getHubBySlug.ts +143 -0
- package/lib/queries/getHubs.ts +131 -0
- package/lib/queries/getHubsPage.ts +246 -0
- package/lib/queries/getMetadataBySlug.ts +48 -0
- package/lib/queries/getNewsPage.ts +170 -0
- package/lib/queries/getPageBySlug.ts +19 -0
- package/lib/queries/getPeoplePage.ts +117 -0
- package/lib/queries/getPerformanceHubPage.ts +170 -0
- package/lib/queries/getPostBySlug.ts +132 -0
- package/lib/queries/getPosts.ts +123 -0
- package/lib/queries/index.ts +39 -0
- package/lib/types/index.ts +316 -0
- package/lib/utils.ts +3 -0
- package/lib/vite-env.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,86 @@
|
|
|
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 { type Content, NextImage } from "../../../types";
|
|
8
|
+
import Results from "./Results";
|
|
9
|
+
import Numbers from "./Numbers";
|
|
10
|
+
import QuoteSection from "../../QuoteSection";
|
|
11
|
+
|
|
12
|
+
function CaseContent({
|
|
13
|
+
content,
|
|
14
|
+
Image,
|
|
15
|
+
}: {
|
|
16
|
+
content: Content;
|
|
17
|
+
Image: NextImage;
|
|
18
|
+
}) {
|
|
19
|
+
if (!content) return null;
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div className={styles.content}>
|
|
23
|
+
{content.map((section, i) => {
|
|
24
|
+
if (section.fieldGroupName === "Case_Case_Content_Quote") {
|
|
25
|
+
return (
|
|
26
|
+
<QuoteSection
|
|
27
|
+
key={section.fieldGroupName + i}
|
|
28
|
+
items={[
|
|
29
|
+
{
|
|
30
|
+
name: section.name,
|
|
31
|
+
position: section.position,
|
|
32
|
+
text: section.text,
|
|
33
|
+
},
|
|
34
|
+
]}
|
|
35
|
+
/>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
if (section.fieldGroupName === "Case_Case_Content_Results") {
|
|
39
|
+
return <Results key={section.fieldGroupName + i} section={section} />;
|
|
40
|
+
}
|
|
41
|
+
if (section.fieldGroupName === "Case_Case_Content_Numbers") {
|
|
42
|
+
return <Numbers key={section.fieldGroupName + i} section={section} />;
|
|
43
|
+
}
|
|
44
|
+
if (section.fieldGroupName === "Case_Case_Content_FullWidthImage") {
|
|
45
|
+
return (
|
|
46
|
+
<FullWidthImage
|
|
47
|
+
key={section.fieldGroupName + i}
|
|
48
|
+
section={section}
|
|
49
|
+
Image={Image}
|
|
50
|
+
/>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
if (section.fieldGroupName === "Case_Case_Content_CenterColumn") {
|
|
54
|
+
return (
|
|
55
|
+
<CenterColumn key={section.fieldGroupName + i} section={section} />
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
if (section.fieldGroupName === "Case_Case_Content_Twocolumns") {
|
|
59
|
+
return (
|
|
60
|
+
<TwoColumns
|
|
61
|
+
key={section.fieldGroupName + i}
|
|
62
|
+
section={section}
|
|
63
|
+
Image={Image}
|
|
64
|
+
/>
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
if (section.fieldGroupName === "Case_Case_Content_Video") {
|
|
68
|
+
return (
|
|
69
|
+
<section
|
|
70
|
+
className={styles.section}
|
|
71
|
+
key={section.fieldGroupName + i}
|
|
72
|
+
>
|
|
73
|
+
<Container>
|
|
74
|
+
<Video section={section} />
|
|
75
|
+
</Container>
|
|
76
|
+
</section>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return undefined;
|
|
81
|
+
})}
|
|
82
|
+
</div>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export default CaseContent;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
@use "../../variables" as *;
|
|
2
|
+
|
|
3
|
+
.section {
|
|
4
|
+
padding: 32px 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.fullWidthImage {
|
|
8
|
+
width: 100%;
|
|
9
|
+
|
|
10
|
+
@media #{$QUERY-md} {
|
|
11
|
+
// height: 400px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@media #{$QUERY-sm} {
|
|
15
|
+
// height: 300px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.image {
|
|
19
|
+
width: 100%;
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
|
|
22
|
+
& div:first-child {
|
|
23
|
+
max-width: 100% !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media #{$QUERY-sm} {
|
|
27
|
+
min-height: 160px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.wysywig {
|
|
33
|
+
width: 620px;
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
margin: 0 auto;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.text {
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
min-height: 350px;
|
|
41
|
+
font-size: 18px;
|
|
42
|
+
line-height: 1.4;
|
|
43
|
+
|
|
44
|
+
h1,
|
|
45
|
+
h2,
|
|
46
|
+
h3,
|
|
47
|
+
h4,
|
|
48
|
+
h5,
|
|
49
|
+
h6 {
|
|
50
|
+
font-family: $font-secondary;
|
|
51
|
+
font-size: 42px;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
margin-bottom: 32px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
h3 {
|
|
57
|
+
font-size: 30px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.twoColumns {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
|
|
65
|
+
@media #{$QUERY-sm} {
|
|
66
|
+
display: block;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.column {
|
|
71
|
+
width: 600px;
|
|
72
|
+
max-width: calc(50% - 20px);
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
position: relative;
|
|
76
|
+
|
|
77
|
+
@media #{$QUERY-sm} {
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
width: 100%;
|
|
80
|
+
margin-bottom: 16px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.image {
|
|
84
|
+
width: 100%;
|
|
85
|
+
object-fit: cover;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.columnContent {
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.video {
|
|
94
|
+
max-width: 100%;
|
|
95
|
+
margin: 0 auto;
|
|
96
|
+
position: relative;
|
|
97
|
+
background-color: #eee;
|
|
98
|
+
background-position: center;
|
|
99
|
+
background-repeat: no-repeat;
|
|
100
|
+
|
|
101
|
+
&.playing {
|
|
102
|
+
cursor: url("/svg/pause.svg"), auto;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:not(.playing) {
|
|
106
|
+
cursor: url("/svg/play.svg"), auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.player {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 0;
|
|
112
|
+
left: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
iframe,
|
|
116
|
+
video {
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 100%;
|
|
119
|
+
display: block;
|
|
120
|
+
margin: auto;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.btnMobile {
|
|
125
|
+
width: 40px;
|
|
126
|
+
height: 40px;
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 50%;
|
|
129
|
+
left: 50%;
|
|
130
|
+
transform: translate(-50%, -50%);
|
|
131
|
+
background-size: contain;
|
|
132
|
+
background-repeat: no-repeat;
|
|
133
|
+
z-index: 5;
|
|
134
|
+
display: none;
|
|
135
|
+
background: transparent;
|
|
136
|
+
border: none;
|
|
137
|
+
|
|
138
|
+
&.playing {
|
|
139
|
+
background-image: url("/svg/pause.svg");
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:not(.playing) {
|
|
143
|
+
background-image: url("/svg/play.svg");
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media #{$QUERY-sm} {
|
|
147
|
+
display: block;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.overlay {
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 0;
|
|
154
|
+
left: 0;
|
|
155
|
+
width: 100%;
|
|
156
|
+
height: 100%;
|
|
157
|
+
z-index: 4;
|
|
158
|
+
|
|
159
|
+
&.playing {
|
|
160
|
+
cursor: url("/svg/pause.svg"), auto;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&:not(.playing) {
|
|
164
|
+
cursor: url("/svg/play.svg"), auto;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media #{$QUERY-sm} {
|
|
168
|
+
display: none;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.caption {
|
|
173
|
+
color: $color-gray;
|
|
174
|
+
margin: 1rem auto;
|
|
175
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Container from "../../Container";
|
|
3
|
+
import styles from "./styles.module.scss";
|
|
4
|
+
import Arrow from "../../../assets/svg/arrow.svg?react";
|
|
5
|
+
import { translate } from "../../../utils";
|
|
6
|
+
import { Case, NextImage, NextLink } from "../../../types";
|
|
7
|
+
|
|
8
|
+
function Other({
|
|
9
|
+
cases,
|
|
10
|
+
Link,
|
|
11
|
+
Image,
|
|
12
|
+
}: {
|
|
13
|
+
cases: Case[];
|
|
14
|
+
Link: NextLink;
|
|
15
|
+
Image: NextImage;
|
|
16
|
+
}) {
|
|
17
|
+
if (!cases) return;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Container>
|
|
21
|
+
<div className={styles.other}>
|
|
22
|
+
<div className={styles.caption}>{translate("Case Studies")}</div>
|
|
23
|
+
<h3 className={styles.heading}>
|
|
24
|
+
{translate("Success stories.\nWith proven results.")}
|
|
25
|
+
</h3>
|
|
26
|
+
|
|
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={308}
|
|
38
|
+
height={220}
|
|
39
|
+
/>
|
|
40
|
+
)}
|
|
41
|
+
</div>
|
|
42
|
+
<div className={styles.texts}>
|
|
43
|
+
<div>
|
|
44
|
+
<div className={styles.title}>{item.title}</div>
|
|
45
|
+
{item.case.excerpt && <div>{item.case.excerpt}</div>}
|
|
46
|
+
</div>
|
|
47
|
+
<div className={styles.more}>
|
|
48
|
+
{translate("See More")}
|
|
49
|
+
<Arrow />
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</Link>
|
|
53
|
+
</div>
|
|
54
|
+
))}
|
|
55
|
+
</div>
|
|
56
|
+
<div className={styles.buttonWrapper}>
|
|
57
|
+
<Link className={styles.button} href="/cases">
|
|
58
|
+
{translate("See All")}
|
|
59
|
+
</Link>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</Container>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default Other;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
@use "../../variables" as *;
|
|
2
|
+
|
|
3
|
+
.other {
|
|
4
|
+
padding: 64px 0 80px;
|
|
5
|
+
|
|
6
|
+
@media #{$QUERY-md} {
|
|
7
|
+
padding: 60px 0 120px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media #{$QUERY-sm} {
|
|
11
|
+
padding: 60px 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.caption {
|
|
16
|
+
font-size: 18px;
|
|
17
|
+
color: $color-blue;
|
|
18
|
+
text-transform: uppercase;
|
|
19
|
+
margin-bottom: 5px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.heading {
|
|
23
|
+
color: $color-brown;
|
|
24
|
+
font-size: 42px;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
white-space: pre-wrap;
|
|
27
|
+
margin-bottom: 56px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.buttonWrapper {
|
|
31
|
+
text-align: center;
|
|
32
|
+
padding: 32px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.button {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cases {
|
|
40
|
+
display: flex;
|
|
41
|
+
margin: 0 -10px;
|
|
42
|
+
|
|
43
|
+
@media #{$QUERY-sm} {
|
|
44
|
+
display: block;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.case {
|
|
50
|
+
width: calc(33.333% - 20px);
|
|
51
|
+
margin: 0 10px;
|
|
52
|
+
|
|
53
|
+
@media #{$QUERY-sm} {
|
|
54
|
+
width: 100%;
|
|
55
|
+
margin: 0;
|
|
56
|
+
margin-bottom: 50px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
a {
|
|
60
|
+
color: $color-black;
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
height: 100%;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
.more {
|
|
68
|
+
color: $color-pink;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
path {
|
|
72
|
+
stroke: $color-pink;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.image {
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 220px;
|
|
81
|
+
|
|
82
|
+
img {
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
object-fit: cover;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.texts {
|
|
90
|
+
border-left: solid 1px $color-gray-light;
|
|
91
|
+
border-right: solid 1px $color-gray-light;
|
|
92
|
+
border-bottom: solid 1px $color-gray-light;
|
|
93
|
+
padding: 24px 16px;
|
|
94
|
+
flex-grow: 2;
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
justify-content: space-between;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.title {
|
|
101
|
+
font-size: 20px;
|
|
102
|
+
margin-bottom: 16px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.more {
|
|
106
|
+
padding-top: 16px;
|
|
107
|
+
display: flex;
|
|
108
|
+
justify-content: space-between;
|
|
109
|
+
align-items: center;
|
|
110
|
+
font-size: 20px;
|
|
111
|
+
font-weight: 700;
|
|
112
|
+
color: $color-blue;
|
|
113
|
+
line-height: 1;
|
|
114
|
+
|
|
115
|
+
path {
|
|
116
|
+
stroke: $color-blue;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
|
+
import styles from "./styles.module.scss";
|
|
4
|
+
import { translate } from "../../../utils";
|
|
5
|
+
|
|
6
|
+
function ShareButton() {
|
|
7
|
+
const [url, setUrl] = useState("https://foundry.berlin");
|
|
8
|
+
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (document && document.URL) {
|
|
11
|
+
setUrl(document.URL);
|
|
12
|
+
}
|
|
13
|
+
}, []);
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<a
|
|
17
|
+
className={styles.button}
|
|
18
|
+
href={`http://www.facebook.com/share.php?u=${url}`}
|
|
19
|
+
target="_blank"
|
|
20
|
+
rel="noopener noreferrer"
|
|
21
|
+
>
|
|
22
|
+
{translate("Share")}
|
|
23
|
+
</a>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default ShareButton;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import styles from "./styles.module.scss";
|
|
2
|
+
import Container from "../../Container";
|
|
3
|
+
import ShareButton from "../ShareButton";
|
|
4
|
+
|
|
5
|
+
function Top() {
|
|
6
|
+
const details = [
|
|
7
|
+
{
|
|
8
|
+
heading: "lorem ipsum",
|
|
9
|
+
text: "lorem ipsum",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
heading: "lorem ipsum",
|
|
13
|
+
text: "lorem ipsum",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
heading: "lorem ipsum",
|
|
17
|
+
text: "lorem ipsum",
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
return (
|
|
21
|
+
<div className={styles.top}>
|
|
22
|
+
<div className={`${styles.mainImage} ${styles.loading}`} />
|
|
23
|
+
<Container>
|
|
24
|
+
<div className={styles.wrapper}>
|
|
25
|
+
<div className={styles.titleWrapper}>
|
|
26
|
+
<div>
|
|
27
|
+
<div className={styles.caption}>Loading caption...</div>
|
|
28
|
+
<h1 className={styles.title}>Loading title...</h1>
|
|
29
|
+
</div>
|
|
30
|
+
<ShareButton />
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div className={styles.details}>
|
|
34
|
+
{details.map((detail, i) => {
|
|
35
|
+
const { heading, text } = detail;
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div key={heading + i} className={styles.detail}>
|
|
39
|
+
<div className={styles.heading}>{heading}</div>
|
|
40
|
+
<div className={styles.paragraph}>{text}</div>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
})}
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</Container>
|
|
47
|
+
</div>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default Top;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import styles from "./styles.module.scss";
|
|
2
|
+
import Container from "../../Container";
|
|
3
|
+
import { translate } from "../../../utils";
|
|
4
|
+
import { Case, NextImage } from "../../../types";
|
|
5
|
+
import ShareButton from "../../case/ShareButton";
|
|
6
|
+
|
|
7
|
+
function Top({
|
|
8
|
+
data,
|
|
9
|
+
title,
|
|
10
|
+
isCase,
|
|
11
|
+
Image,
|
|
12
|
+
}: {
|
|
13
|
+
data?: Case;
|
|
14
|
+
title: string;
|
|
15
|
+
subtitle?: string;
|
|
16
|
+
isCase?: boolean;
|
|
17
|
+
Image: NextImage;
|
|
18
|
+
}) {
|
|
19
|
+
if (!data) return;
|
|
20
|
+
const { caption, details, awards } = data.case;
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<div className={styles.top}>
|
|
24
|
+
{data.case.mainImage && (
|
|
25
|
+
<div className={styles.mainImage}>
|
|
26
|
+
<Image src={data.case.mainImage.sourceUrl} alt={title} fill />
|
|
27
|
+
</div>
|
|
28
|
+
)}
|
|
29
|
+
<Container>
|
|
30
|
+
<div className={styles.wrapper}>
|
|
31
|
+
<div className={styles.titleWrapper}>
|
|
32
|
+
<div>
|
|
33
|
+
{caption && <div className={styles.caption}>{caption}</div>}
|
|
34
|
+
<h1 className={`${styles.title} ${isCase ? styles.isCase : ""}`}>
|
|
35
|
+
{title}
|
|
36
|
+
</h1>
|
|
37
|
+
</div>
|
|
38
|
+
<ShareButton />
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div className={styles.details}>
|
|
42
|
+
{details &&
|
|
43
|
+
details.map((detail, i) => {
|
|
44
|
+
const { heading, text } = detail;
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<div key={heading + i} className={styles.detail}>
|
|
48
|
+
{heading && <div className={styles.heading}>{heading}</div>}
|
|
49
|
+
{text && <div className={styles.paragraph}>{text}</div>}
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
})}
|
|
53
|
+
{awards && (
|
|
54
|
+
<div className={styles.awardsWrapper}>
|
|
55
|
+
<div className={styles.heading}>{translate("Awards")}</div>
|
|
56
|
+
<div className={styles.awards}>
|
|
57
|
+
{awards.map((award, i) => {
|
|
58
|
+
const { heading, text, image } = award;
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<div key={i} className={styles.award}>
|
|
62
|
+
{(heading || text) && (
|
|
63
|
+
<div className={styles.awardTexts}>
|
|
64
|
+
{heading && (
|
|
65
|
+
<h3
|
|
66
|
+
className={styles.awardHeading}
|
|
67
|
+
dangerouslySetInnerHTML={{ __html: heading }}
|
|
68
|
+
/>
|
|
69
|
+
)}
|
|
70
|
+
{text && (
|
|
71
|
+
<h4
|
|
72
|
+
className={styles.awardText}
|
|
73
|
+
dangerouslySetInnerHTML={{ __html: text }}
|
|
74
|
+
/>
|
|
75
|
+
)}
|
|
76
|
+
</div>
|
|
77
|
+
)}
|
|
78
|
+
<div className={styles.awardImage}>
|
|
79
|
+
<img src={image.sourceUrl} alt={heading} />
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
})}
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
)}
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</Container>
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export default Top;
|