feat: update footer

This commit is contained in:
Maël Gangloff
2024-08-04 02:10:47 +02:00
parent 843960f6df
commit 0876093d67
2 changed files with 16 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
import {Button, Layout, Space, theme} from "antd";
import {Button, Layout, Space, theme, Typography} from "antd";
import {Link, Navigate, Route, Routes, useLocation, useNavigate} from "react-router-dom";
import TextPage from "./pages/TextPage";
import DomainSearchPage from "./pages/search/DomainSearchPage";
@@ -15,7 +15,10 @@ import ConnectorsPage from "./pages/tracking/ConnectorsPage";
import NotFoundPage from "./pages/NotFoundPage";
import useBreakpoint from "./hooks/useBreakpoint";
import {Sider} from "./components/Sider";
import {t} from "ttag";
import {jt, t} from "ttag";
const ProjectLink = <Link to='https://github.com/maelgangloff/domain-watchdog'>Domain Watchdog</Link>
const LicenseLink = <Link to='https://www.gnu.org/licenses/agpl-3.0.txt'>AGPL-3.0-or-later</Link>
export default function App() {
const {
@@ -98,9 +101,7 @@ export default function App() {
<Link to='/privacy'><Button type='text'>{t`Privacy Policy`}</Button></Link>
<Link to='/faq'><Button type='text'>{t`FAQ`}</Button></Link>
</Space>
<br/><br/>
<Link to='https://github.com/maelgangloff/domain-watchdog'>Domain
Watchdog</Link> is an open source project distributed under AGPL-3.0-or-later license.
<Typography.Paragraph>{jt`${ProjectLink} is an open source project distributed under the ${LicenseLink} license.`}</Typography.Paragraph>
</Layout.Footer>
</Layout>
</Layout>

View File

@@ -508,14 +508,21 @@ msgid ""
"another"
msgstr ""
#: assets/App.tsx:97
#: assets/App.tsx:100
msgid "TOS"
msgstr ""
#: assets/App.tsx:98
#: assets/App.tsx:101
msgid "Privacy Policy"
msgstr ""
#: assets/App.tsx:99
#: assets/App.tsx:102
msgid "FAQ"
msgstr ""
#: assets/App.tsx:104
#, javascript-format
msgid ""
"${ ProjectLink } is an open source project distributed under the ${ "
"LicenseLink } license."
msgstr ""