foundry-component-library 0.2.16 → 0.2.18
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/Footer/index.tsx +2 -2
- package/lib/components/Header/Menu.tsx +1 -2
- package/lib/components/HubsAccordion/Hub.tsx +3 -15
- package/lib/components/HubsAccordion/index.tsx +1 -13
- package/lib/components/ServiceHubsTeaserEffects/TileBalls.tsx +3 -3
- package/lib/components/ServiceHubsTeaserEffects/TileFluid.tsx +2 -2
- package/lib/components/ServiceHubsTeaserEffects/TileGlass.tsx +2 -2
- package/lib/components/TeamBenefits/styles.module.scss +2 -2
- package/lib/components/TeamPhotos/styles.module.scss +3 -3
- package/lib/components/VideoTeaser/index.tsx +1 -0
- package/lib/components/case/Content/styles.module.scss +4 -0
- package/lib/components/cases/Pagination/styles.module.scss +5 -0
- package/package.json +1 -1
|
@@ -73,9 +73,9 @@ function Footer({
|
|
|
73
73
|
<li className={styles.menuItem}>
|
|
74
74
|
<Link href="/cases">Case Studies</Link>
|
|
75
75
|
</li>
|
|
76
|
-
<li className={styles.menuItem}>
|
|
76
|
+
{/* <li className={styles.menuItem}>
|
|
77
77
|
<Link href="/team">Team & Careers</Link>
|
|
78
|
-
</li>
|
|
78
|
+
</li> */}
|
|
79
79
|
<li className={styles.menuItem}>
|
|
80
80
|
<Link href="/news">News & Insights</Link>
|
|
81
81
|
</li>
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useRef,
|
|
4
|
-
useState,
|
|
5
|
-
useLayoutEffect,
|
|
6
|
-
Dispatch,
|
|
7
|
-
SetStateAction,
|
|
8
|
-
} from "react";
|
|
2
|
+
import { useRef, useState, useLayoutEffect } from "react";
|
|
9
3
|
import { motion, AnimatePresence } from "framer-motion";
|
|
10
4
|
import { NextImage, NextLink, type Hub } from "../../types";
|
|
11
5
|
import styles from "./styles.module.scss";
|
|
@@ -16,20 +10,17 @@ import Minus from "./minus.svg";
|
|
|
16
10
|
|
|
17
11
|
const Hub = ({
|
|
18
12
|
hub,
|
|
19
|
-
active,
|
|
20
|
-
setActive,
|
|
21
13
|
Link,
|
|
22
14
|
Image,
|
|
23
15
|
}: {
|
|
24
16
|
hub: Hub;
|
|
25
|
-
active: string;
|
|
26
|
-
setActive: Dispatch<SetStateAction<string>>;
|
|
27
17
|
Link: NextLink;
|
|
28
18
|
Image: NextImage;
|
|
29
19
|
}) => {
|
|
30
20
|
const casesRef = useRef<HTMLDivElement>(null);
|
|
31
21
|
const contentRef = useRef<HTMLDivElement>(null);
|
|
32
22
|
const [height, setHeight] = useState<number | "auto">(0);
|
|
23
|
+
const [isActive, setIsActive] = useState(false);
|
|
33
24
|
|
|
34
25
|
const {
|
|
35
26
|
handleMouseDown,
|
|
@@ -39,7 +30,6 @@ const Hub = ({
|
|
|
39
30
|
dragStyle,
|
|
40
31
|
} = useDrag(casesRef);
|
|
41
32
|
|
|
42
|
-
const isActive = active === hub.slug;
|
|
43
33
|
const customFields = hub.customFieldsHub;
|
|
44
34
|
|
|
45
35
|
useLayoutEffect(() => {
|
|
@@ -53,9 +43,7 @@ const Hub = ({
|
|
|
53
43
|
<div className={styles.top}>
|
|
54
44
|
<div className={styles.title}>{hub.title}</div>
|
|
55
45
|
<div className={styles.text}>{customFields.subheading}</div>
|
|
56
|
-
<button
|
|
57
|
-
className={styles.icon}
|
|
58
|
-
onClick={() => setActive(isActive ? "" : hub.slug)}>
|
|
46
|
+
<button className={styles.icon} onClick={() => setIsActive(!isActive)}>
|
|
59
47
|
{isActive ? <Minus /> : <Plus />}
|
|
60
48
|
</button>
|
|
61
49
|
</div>
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useState } from "react";
|
|
3
2
|
import Container from "../Container";
|
|
4
3
|
import styles from "./styles.module.scss";
|
|
5
4
|
import Hub from "./Hub";
|
|
@@ -14,23 +13,12 @@ const HubsAccordion = ({
|
|
|
14
13
|
Link: NextLink;
|
|
15
14
|
Image: NextImage;
|
|
16
15
|
}) => {
|
|
17
|
-
const [active, setActive] = useState("");
|
|
18
|
-
|
|
19
16
|
return (
|
|
20
17
|
<div className={styles.hubsAccordion}>
|
|
21
18
|
<Container noMobilePadding>
|
|
22
19
|
<div className={styles.hubs}>
|
|
23
20
|
{hubs.map((hub) => {
|
|
24
|
-
return
|
|
25
|
-
<Hub
|
|
26
|
-
key={hub.id}
|
|
27
|
-
hub={hub}
|
|
28
|
-
active={active}
|
|
29
|
-
setActive={setActive}
|
|
30
|
-
Link={Link}
|
|
31
|
-
Image={Image}
|
|
32
|
-
/>
|
|
33
|
-
);
|
|
21
|
+
return <Hub key={hub.id} hub={hub} Link={Link} Image={Image} />;
|
|
34
22
|
})}
|
|
35
23
|
</div>
|
|
36
24
|
</Container>
|
|
@@ -9,7 +9,7 @@ const TileBalls = () => {
|
|
|
9
9
|
shadows
|
|
10
10
|
dpr={[1, 2]}
|
|
11
11
|
gl={{ antialias: false }}
|
|
12
|
-
camera={{
|
|
12
|
+
camera={{ position: [0, 0, 20], fov: 15 }}>
|
|
13
13
|
<color attach="background" args={["#380de8"]} />
|
|
14
14
|
<fog attach="fog" args={["red", 20, -5]} />
|
|
15
15
|
<ambientLight intensity={1.5} />
|
|
@@ -24,8 +24,8 @@ const TileBalls = () => {
|
|
|
24
24
|
position={[0, 0, 0]}
|
|
25
25
|
fontSize={0.4}
|
|
26
26
|
textAlign="center"
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
color="#fff"
|
|
28
|
+
font="/Karelia-Medium.otf">
|
|
29
29
|
Content and{"\n"}Campaigning
|
|
30
30
|
</Text>
|
|
31
31
|
</Canvas>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@media #{$QUERY-sm} {
|
|
10
10
|
font-size: 28px;
|
|
11
11
|
margin-bottom: 24px;
|
|
12
|
-
padding: 0
|
|
12
|
+
padding: 0 40px;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -63,13 +63,13 @@
|
|
|
63
63
|
|
|
64
64
|
&:first-child {
|
|
65
65
|
@media #{$QUERY-sm} {
|
|
66
|
-
margin-left:
|
|
66
|
+
margin-left: 40px;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&:last-child {
|
|
71
71
|
@media #{$QUERY-sm} {
|
|
72
|
-
margin-right:
|
|
72
|
+
margin-right: 40px;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -56,6 +56,9 @@
|
|
|
56
56
|
min-height: 350px;
|
|
57
57
|
font-size: 18px;
|
|
58
58
|
line-height: 1.4;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
justify-content: center;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
.twoColumns {
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
.threeColumns {
|
|
71
74
|
display: flex;
|
|
72
75
|
justify-content: space-between;
|
|
76
|
+
gap: 20px;
|
|
73
77
|
|
|
74
78
|
@media #{$QUERY-sm} {
|
|
75
79
|
display: block;
|