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.
@@ -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>
@@ -20,8 +20,7 @@ function Menu({
20
20
  className={styles.close}
21
21
  onClick={() => {
22
22
  setMenuOpen(false);
23
- }}
24
- >
23
+ }}>
25
24
  <Close />
26
25
  </div>
27
26
  <div className={styles.menuWrapper}>
@@ -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={{ fov: 15, position: [0, 0, 20] }}>
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
- fontWeight={600}
28
- color="#fff">
27
+ color="#fff"
28
+ font="/Karelia-Medium.otf">
29
29
  Content and{"\n"}Campaigning
30
30
  </Text>
31
31
  </Canvas>
@@ -15,8 +15,8 @@ const TileFluid = () => {
15
15
  position={[0, 0, 0]}
16
16
  fontSize={0.4}
17
17
  textAlign="center"
18
- fontWeight={600}
19
- color="#380de8">
18
+ color="#380de8"
19
+ font="/Karelia-Medium.otf">
20
20
  Branding &{"\n"}Corporate ID
21
21
  </Text>
22
22
  <EffectComposer>
@@ -10,8 +10,8 @@ const TileGlass = () => {
10
10
  position={[0, 0, 0]}
11
11
  fontSize={0.4}
12
12
  textAlign="center"
13
- fontWeight={600}
14
- color="#491b11">
13
+ color="#491b11"
14
+ font="/Karelia-Medium.otf">
15
15
  Strategy &{"\n"}
16
16
  Positioning
17
17
  </Text>
@@ -56,13 +56,13 @@
56
56
 
57
57
  &:first-child {
58
58
  @media #{$QUERY-sm} {
59
- margin-left: 20px;
59
+ margin-left: 40px;
60
60
  }
61
61
  }
62
62
 
63
63
  &:last-child {
64
64
  @media #{$QUERY-sm} {
65
- margin-right: 20px;
65
+ margin-right: 40px;
66
66
  }
67
67
  }
68
68
  }
@@ -9,7 +9,7 @@
9
9
  @media #{$QUERY-sm} {
10
10
  font-size: 28px;
11
11
  margin-bottom: 24px;
12
- padding: 0 20px;
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: 20px;
66
+ margin-left: 40px;
67
67
  }
68
68
  }
69
69
 
70
70
  &:last-child {
71
71
  @media #{$QUERY-sm} {
72
- margin-right: 20px;
72
+ margin-right: 40px;
73
73
  }
74
74
  }
75
75
  }
@@ -48,6 +48,7 @@ function VideoTeaser({ url }: { url: string }) {
48
48
  width="100%"
49
49
  height="100%"
50
50
  muted={isMuted}
51
+ loop={true}
51
52
  config={{
52
53
  file: { attributes: { poster: "/video-poster.jpg" } },
53
54
  }}
@@ -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;
@@ -15,6 +15,11 @@
15
15
  background-color: transparent;
16
16
  font-size: 16px;
17
17
  border: none;
18
+ color: $color-black;
19
+
20
+ &:visited {
21
+ color: $color-black;
22
+ }
18
23
 
19
24
  &:not(span):hover {
20
25
  background-color: $color-gray-light;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foundry-component-library",
3
- "version": "0.2.16",
3
+ "version": "0.2.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",