foundry-component-library 0.2.37 → 0.2.38
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/components/Header/Menu.tsx +1 -1
- package/lib/components/HubsAccordion/Hub.tsx +20 -0
- package/lib/components/HubsAccordion/styles.module.scss +7 -1
- package/lib/components/TeamPhotos/index.tsx +3 -1
- package/lib/components/VideoTeaser/index.tsx +1 -0
- package/lib/components/VideoTeaser/styles.module.scss +15 -0
- package/lib/components/case/Content/FullWidthImage.tsx +2 -0
- package/lib/components/case/Content/ThreeColumns/Center.tsx +1 -0
- package/lib/components/case/Content/ThreeColumns/Left.tsx +1 -0
- package/lib/components/case/Content/ThreeColumns/Right.tsx +1 -0
- package/lib/components/case/Content/TwoColumns/Left.tsx +1 -0
- package/lib/components/case/Content/TwoColumns/Right.tsx +1 -0
- package/lib/components/case/Top/index.tsx +6 -1
- package/package.json +1 -1
|
@@ -7,6 +7,10 @@ import Arrow from "../../assets/svg/arrow.svg";
|
|
|
7
7
|
import useDrag from "../../hooks/useDrag";
|
|
8
8
|
import Plus from "./plus.svg";
|
|
9
9
|
import Minus from "./minus.svg";
|
|
10
|
+
import TileGlass from "../ServiceHubsTeaserEffects/TileGlass";
|
|
11
|
+
import TileFluid from "../ServiceHubsTeaserEffects/TileFluid";
|
|
12
|
+
import TileBalls from "../ServiceHubsTeaserEffects/TileBalls";
|
|
13
|
+
import TileRays from "../ServiceHubsTeaserEffects/TileRays";
|
|
10
14
|
|
|
11
15
|
const Hub = ({
|
|
12
16
|
hub,
|
|
@@ -38,9 +42,25 @@ const Hub = ({
|
|
|
38
42
|
}
|
|
39
43
|
}, [isActive, customFields]);
|
|
40
44
|
|
|
45
|
+
console.log("asd", hub);
|
|
46
|
+
|
|
41
47
|
return (
|
|
42
48
|
<div className={`${styles.hub} ${isActive ? styles.active : ""}`}>
|
|
43
49
|
<div className={styles.top}>
|
|
50
|
+
<div className={styles.tile}>
|
|
51
|
+
<a href={hub.uri}>
|
|
52
|
+
{hub.slug === "content-campaigning" && <TileBalls />}
|
|
53
|
+
</a>
|
|
54
|
+
<a href={hub.uri}>
|
|
55
|
+
{hub.slug === "social-media-performance" && <TileRays />}
|
|
56
|
+
</a>
|
|
57
|
+
<a href={hub.uri}>
|
|
58
|
+
{hub.slug === "branding-corporate-id" && <TileFluid />}
|
|
59
|
+
</a>
|
|
60
|
+
<a href={hub.uri}>
|
|
61
|
+
{hub.slug === "strategy-positioning" && <TileGlass />}
|
|
62
|
+
</a>
|
|
63
|
+
</div>
|
|
44
64
|
<div className={styles.title}>{hub.title}</div>
|
|
45
65
|
<div className={styles.text}>{customFields.approach}</div>
|
|
46
66
|
<button className={styles.icon} onClick={() => setIsActive(!isActive)}>
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
padding: 64px 0;
|
|
44
44
|
display: flex;
|
|
45
45
|
justify-content: space-between;
|
|
46
|
+
gap: 30px;
|
|
46
47
|
|
|
47
48
|
@media #{$QUERY-sm} {
|
|
48
49
|
flex-wrap: wrap;
|
|
@@ -68,7 +69,7 @@
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
.text {
|
|
71
|
-
font-size:
|
|
72
|
+
font-size: 21px;
|
|
72
73
|
width: 600px;
|
|
73
74
|
font-family: $font-secondary;
|
|
74
75
|
|
|
@@ -271,3 +272,8 @@
|
|
|
271
272
|
flex-shrink: 0;
|
|
272
273
|
}
|
|
273
274
|
}
|
|
275
|
+
|
|
276
|
+
.tile {
|
|
277
|
+
width: 250px;
|
|
278
|
+
height: 250px;
|
|
279
|
+
}
|
|
@@ -10,9 +10,11 @@ import useDrag from "../../hooks/useDrag";
|
|
|
10
10
|
const TheamPhotos = ({
|
|
11
11
|
people,
|
|
12
12
|
Image,
|
|
13
|
+
lang,
|
|
13
14
|
}: {
|
|
14
15
|
people: Person[];
|
|
15
16
|
Image: NextImage;
|
|
17
|
+
lang?: "EN" | "DE";
|
|
16
18
|
}) => {
|
|
17
19
|
const sectionRef = useRef(null);
|
|
18
20
|
const { handleMouseDown, handleMouseMove, handleMouseUp, dragStyle } =
|
|
@@ -20,7 +22,7 @@ const TheamPhotos = ({
|
|
|
20
22
|
|
|
21
23
|
return (
|
|
22
24
|
<Container noMobilePadding>
|
|
23
|
-
<div className={styles.heading}>{translate("Our Lovely Team",
|
|
25
|
+
<div className={styles.heading}>{translate("Our Lovely Team", lang)}</div>
|
|
24
26
|
<div
|
|
25
27
|
ref={sectionRef}
|
|
26
28
|
className={styles.people}
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
top: 0;
|
|
57
57
|
left: 0;
|
|
58
58
|
background-color: $color-gray-light;
|
|
59
|
+
z-index: 2;
|
|
59
60
|
|
|
60
61
|
&:after {
|
|
61
62
|
content: "";
|
|
@@ -132,3 +133,17 @@
|
|
|
132
133
|
transform: translate(34.5%, 39.5%);
|
|
133
134
|
}
|
|
134
135
|
}
|
|
136
|
+
|
|
137
|
+
.overlayMobile {
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: 0;
|
|
140
|
+
left: 0;
|
|
141
|
+
width: 100%;
|
|
142
|
+
height: 100%;
|
|
143
|
+
z-index: 2;
|
|
144
|
+
display: none;
|
|
145
|
+
|
|
146
|
+
@media #{$QUERY-sm} {
|
|
147
|
+
display: block;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -29,6 +29,7 @@ function FullWidthImage({
|
|
|
29
29
|
layout="intrinsic"
|
|
30
30
|
width={1252}
|
|
31
31
|
height={600}
|
|
32
|
+
unoptimized
|
|
32
33
|
/>
|
|
33
34
|
)}
|
|
34
35
|
</div>
|
|
@@ -44,6 +45,7 @@ function FullWidthImage({
|
|
|
44
45
|
layout="intrinsic"
|
|
45
46
|
width={1400}
|
|
46
47
|
height={600}
|
|
48
|
+
unoptimized
|
|
47
49
|
/>
|
|
48
50
|
)}
|
|
49
51
|
</div>
|
|
@@ -23,7 +23,12 @@ function Top({
|
|
|
23
23
|
<div className={styles.top}>
|
|
24
24
|
{data.case.mainImage && (
|
|
25
25
|
<div className={styles.mainImage}>
|
|
26
|
-
<Image
|
|
26
|
+
<Image
|
|
27
|
+
src={data.case.mainImage.sourceUrl}
|
|
28
|
+
alt={title}
|
|
29
|
+
fill
|
|
30
|
+
unoptimized
|
|
31
|
+
/>
|
|
27
32
|
</div>
|
|
28
33
|
)}
|
|
29
34
|
<Container>
|