Skip to content

Commit 4b418d7

Browse files
committed
Bump matching-engine and add discontinuation banner
1 parent 95be32b commit 4b418d7

3 files changed

Lines changed: 61 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "https://foerderfunke.org/",
66
"dependencies": {
7-
"@foerderfunke/matching-engine": "1.5.8",
7+
"@foerderfunke/matching-engine": "1.5.9",
88
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
99
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
1010
"@emotion/react": "^11.11.4",

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ThemeProvider } from '@mui/material/styles';
55
import ViewportUpdater from './ui/shared-components/ViewportUpdater';
66
import ScrollToTop from './ScrollToTop';
77
import AppRoutes from './AppRoutes';
8+
import DiscontinuationBanner from './ui/shared-components/DiscontinuationBanner';
89
import theme from './theme';
910
import { AppInitialisationProvider } from './AppInitialisationProvider';
1011

@@ -15,6 +16,7 @@ const App = () => {
1516
<ViewportUpdater />
1617
<Router basename={process.env.PUBLIC_URL}>
1718
<ScrollToTop />
19+
<DiscontinuationBanner />
1820
<AppRoutes />
1921
</Router>
2022
</ThemeProvider>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import React from "react";
2+
import { Link, Typography } from "@mui/material";
3+
import { VBox } from "./LayoutBoxes";
4+
import useTranslation, { pickLang } from "@/ui/language/useTranslation";
5+
6+
const GITHUB_URL = "https://github.com/Citizen-Knowledge-Graph";
7+
const CONTACT_EMAIL = "benjamin.degenhart@foerderfunke.org";
8+
9+
// Kept out of translations.js: that file has no de_es section (de_es falls back
10+
// to de wholesale), while pickLang supports a dedicated Einfache-Sprache variant.
11+
const texts = {
12+
en: {
13+
part1: "FörderFunke has been discontinued and there will be no further updates — thanks for your interest! The code is ",
14+
codeLink: "open source",
15+
part2: ", and ",
16+
nameLink: "Benjamin",
17+
part3: " is happy to walk you through the code or the concept. Just get in touch."
18+
},
19+
de: {
20+
part1: "FörderFunke wurde eingestellt und es wird keine weiteren Updates geben – danke für euer Interesse! Der Code ist ",
21+
codeLink: "Open Source",
22+
part2: " und ",
23+
nameLink: "Benjamin",
24+
part3: " führt gerne durch Code oder Konzept. Meldet euch einfach."
25+
},
26+
de_es: {
27+
part1: "FörderFunke gibt es nicht mehr. Es gibt keine neuen Updates. Danke für Ihr Interesse! Der Code ist ",
28+
codeLink: "offen für alle",
29+
part2: ". ",
30+
nameLink: "Benjamin",
31+
part3: " zeigt Ihnen gerne den Code oder die Idee. Schreiben Sie ihm einfach."
32+
},
33+
};
34+
35+
const linkStyle = { color: 'inherit', textDecoration: 'underline', fontWeight: 500 };
36+
37+
const DiscontinuationBanner = () => {
38+
const { language } = useTranslation();
39+
const text = pickLang(texts, language, texts.en);
40+
41+
return (
42+
<VBox sx={{ backgroundColor: 'primary.main', padding: '8px 16px', alignItems: 'center' }}>
43+
<Typography variant="body2" sx={{ textAlign: 'center' }}>
44+
{text.part1}
45+
<Link href={GITHUB_URL} target="_blank" rel="noopener noreferrer" sx={linkStyle}>
46+
{text.codeLink}
47+
</Link>
48+
{text.part2}
49+
<Link href={`mailto:${CONTACT_EMAIL}`} sx={linkStyle}>
50+
{text.nameLink}
51+
</Link>
52+
{text.part3}
53+
</Typography>
54+
</VBox>
55+
);
56+
};
57+
58+
export default DiscontinuationBanner;

0 commit comments

Comments
 (0)