foundry-component-library 0.2.38 → 0.2.39

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.
@@ -71,7 +71,9 @@ const Awards = ({
71
71
  return (
72
72
  <div key={image.sourceUrl + i} className={styles.award}>
73
73
  <div className={styles.image}>
74
- {image && <Image src={image.sourceUrl} alt="" fill />}
74
+ {image && (
75
+ <Image src={image.sourceUrl} alt="" fill unoptimized />
76
+ )}
75
77
  </div>
76
78
  {heading && <div className={styles.text}>{heading}</div>}
77
79
  {text && <div className={styles.client}>{text}</div>}
@@ -1,8 +1,10 @@
1
+ "use client";
1
2
  import Container from "../Container";
2
3
  import styles from "./styles.module.scss";
3
4
  import { translate } from "../../utils";
4
5
  import Logo from "../../assets/svg/footer-logo.svg";
5
6
  import { NextLink } from "../../types";
7
+ import { usePathname } from "next/navigation";
6
8
 
7
9
  function Footer({
8
10
  details,
@@ -26,6 +28,12 @@ function Footer({
26
28
  const { berlinEmail, zurichEmail, newyorkEmail } = details;
27
29
  const year = new Date().getFullYear();
28
30
 
31
+ const path = usePathname();
32
+ const currentLang = path.startsWith("/de") ? "DE" : "EN";
33
+
34
+ const langPrefix =
35
+ currentLang === "EN" ? "" : `/${currentLang.toLowerCase()}`;
36
+
29
37
  return (
30
38
  <footer className={styles.footer}>
31
39
  <Container>
@@ -69,22 +77,32 @@ function Footer({
69
77
  <div className={styles.right}>
70
78
  <ul className={styles.menu}>
71
79
  <li className={styles.menuItem}>
72
- <Link href="/hubs">{translate("Service Hubs", lang)}</Link>
80
+ <Link href={`${langPrefix}/hubs`}>
81
+ {translate("Service Hubs", lang)}
82
+ </Link>
73
83
  </li>
74
84
  <li className={styles.menuItem}>
75
- <Link href="/about-us">{translate("About Us", lang)}</Link>
85
+ <Link href={`${langPrefix}/about-us`}>
86
+ {translate("About Us", lang)}
87
+ </Link>
76
88
  </li>
77
89
  <li className={styles.menuItem}>
78
- <Link href="/cases">{translate("Case Studies", lang)}</Link>
90
+ <Link href={`${langPrefix}/cases`}>
91
+ {translate("Case Studies", lang)}
92
+ </Link>
79
93
  </li>
80
94
  {/* <li className={styles.menuItem}>
81
95
  <Link href="/team">Team & Careers</Link>
82
96
  </li> */}
83
97
  <li className={styles.menuItem}>
84
- <Link href="/news">{translate("News & Insights", lang)}</Link>
98
+ <Link href={`${langPrefix}/news`}>
99
+ {translate("News & Insights", lang)}
100
+ </Link>
85
101
  </li>
86
102
  <li className={styles.menuItem}>
87
- <Link href="/contact">{translate("Contact", lang)}</Link>
103
+ <Link href={`${langPrefix}/contact`}>
104
+ {translate("Contact", lang)}
105
+ </Link>
88
106
  </li>
89
107
  </ul>
90
108
  <div className={styles.social}>
@@ -114,9 +132,11 @@ function Footer({
114
132
  <div className={styles.bottom}>
115
133
  <div>FOUNDRY © {year}</div>
116
134
  <div className={styles.bottomLinks}>
117
- <Link href="/imprint">{translate("Imprint", lang)}</Link>
118
- <Link href="/terms">{translate("Terms", lang)}</Link>
119
- <Link href="/privacy-policy">
135
+ <Link href={`${langPrefix}/imprint`}>
136
+ {translate("Imprint", lang)}
137
+ </Link>
138
+ <Link href={`${langPrefix}/terms`}>{translate("Terms", lang)}</Link>
139
+ <Link href={`${langPrefix}/privacy-policy`}>
120
140
  {translate("Privacy policy", lang)}
121
141
  </Link>
122
142
  </div>
@@ -42,23 +42,29 @@ const Hub = ({
42
42
  }
43
43
  }, [isActive, customFields]);
44
44
 
45
- console.log("asd", hub);
45
+ console.log(hub);
46
46
 
47
47
  return (
48
48
  <div className={`${styles.hub} ${isActive ? styles.active : ""}`}>
49
49
  <div className={styles.top}>
50
50
  <div className={styles.tile}>
51
51
  <a href={hub.uri}>
52
- {hub.slug === "content-campaigning" && <TileBalls />}
52
+ {(hub.slug === "content-campaigning" ||
53
+ hub.slug === "strategie-positionierung") && <TileBalls />}
53
54
  </a>
54
55
  <a href={hub.uri}>
55
- {hub.slug === "social-media-performance" && <TileRays />}
56
+ {(hub.slug === "social-media-performance" ||
57
+ hub.slug === "soziale-medien-leistung") && <TileRays />}
56
58
  </a>
57
59
  <a href={hub.uri}>
58
- {hub.slug === "branding-corporate-id" && <TileFluid />}
60
+ {(hub.slug === "branding-corporate-id" ||
61
+ hub.slug === "markenbildung-unternehmensidentitaet") && (
62
+ <TileFluid />
63
+ )}
59
64
  </a>
60
65
  <a href={hub.uri}>
61
- {hub.slug === "strategy-positioning" && <TileGlass />}
66
+ {(hub.slug === "strategy-positioning" ||
67
+ hub.slug === "inhalte-kampagnen") && <TileGlass />}
62
68
  </a>
63
69
  </div>
64
70
  <div className={styles.title}>{hub.title}</div>
@@ -62,6 +62,7 @@ function Other({
62
62
  alt={item.title || ""}
63
63
  width={308}
64
64
  height={220}
65
+ unoptimized
65
66
  />
66
67
  )}
67
68
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foundry-component-library",
3
- "version": "0.2.38",
3
+ "version": "0.2.39",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",