Skip to content

Commit 54a651e

Browse files
Tilman AdlerTilman Adler
authored andcommitted
Add an attribution footer
1 parent 25ecb50 commit 54a651e

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

frontend/app/components/page/page.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@
4747
z-index: calc(var(--z-index-nav-positioned) + 2);
4848
}
4949

50+
.attributionFooter {
51+
margin: 0;
52+
padding: 0;
53+
text-align: center;
54+
height: min-content;
55+
min-block-size: 0;
56+
}
57+
5058
.globalButtonContainer {
5159
display: inline-flex;
5260
align-items: center;

frontend/app/components/page/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ export function Page({
176176
<footer className={"no-padding " + styles.globalFooter}>
177177
{isLoggedIn ? <ActionBar /> : <></>}
178178
</footer>
179+
<footer className={styles.attributionFooter}>
180+
<p className="small-text">
181+
Made by <a href="https://t-animal.de">t.animal</a> for{" "}
182+
<a href="https://zam-haus.de">ZAM-Haus</a> | Fork me on{" "}
183+
<a href="https://github.com/ZAM-haus/wissenslandkarte">GitHub</a> |{" "}
184+
<a href="https://www.zam.haus/impressum/">Impressum</a>
185+
</p>
186+
</footer>
179187
</>
180188
);
181189
}

frontend/app/routes/faq.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useLoaderData } from "@remix-run/react";
22
import { useTranslation } from "react-i18next";
3+
import Markdown from "react-markdown";
34

45
import { Page } from "~/components/page/page";
56
import { isLoggedInLoader } from "~/lib/authorization.server";
@@ -25,7 +26,7 @@ export default function FaqPage() {
2526
<h3 className="small">{item.question}</h3>
2627
</summary>
2728
<div className="padding">
28-
<p>{item.answer}</p>
29+
<Markdown>{item.answer}</Markdown>
2930
</div>
3031
</details>
3132
))}

frontend/public/locales/de/faq.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
{
1313
"question": "Wie funktioniert das, wenn nach Hilfe suche?",
1414
"answer": "Nutze die Suchfunktion um ein Projekt zu finden, das deinem ähnelt. Dann kannst du entweder nachsehen, wie andere es bisher gemacht haben, oder diese kontaktieren und um Rat fragen."
15+
},
16+
{
17+
"question": "Kann ich mit Entwicklung helfen?",
18+
"answer": "Ja, du kannst bei der Entwicklung helfen. Du kannst den Quellcode auf GitHub finden unter [https://github.com/ZAM-haus/wissenslandkarte](https://github.com/ZAM-haus/wissenslandkarte) und dort mitwirken. Wenn du Ideen für Verbesserungen hast, lass es uns bitte wissen."
1519
}
1620
]
1721
}

frontend/public/locales/en/faq.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
{
1313
"question": "How does it work if I am looking for help?",
1414
"answer": "Use the search function to find a project similar to yours. Then you can either see how others have done it so far or contact them to ask for advice."
15+
},
16+
{
17+
"question": "Can I help with development?",
18+
"answer": "Yes, you can help with development. You can find the source code on GitHub at [https://github.com/ZAM-haus/wissenslandkarte](https://github.com/ZAM-haus/wissenslandkarte) and contribute to it. If you have any ideas for improvements, please let us know."
1519
}
1620
]
1721
}

0 commit comments

Comments
 (0)