2025-09-27 01:04:28 +03:00
|
|
|
import "./Footer.css";
|
2025-09-27 13:37:31 +03:00
|
|
|
import Icon from "./Icon";
|
|
|
|
|
import githubIcon from "../assets/boxicons/bx-github.svg?raw";
|
|
|
|
|
import githubDiscussionsIcon from "../assets/boxicons/bx-discussion.svg?raw";
|
|
|
|
|
import matrixIcon from "../assets/boxicons/bx-message-dots.svg?raw";
|
|
|
|
|
import redditIcon from "../assets/boxicons/bx-reddit.svg?raw";
|
2025-09-27 14:02:49 +03:00
|
|
|
import { Link } from "./Button";
|
2025-09-27 01:04:28 +03:00
|
|
|
|
2025-09-26 23:24:28 +03:00
|
|
|
export default function Footer() {
|
|
|
|
|
return (
|
|
|
|
|
<footer>
|
|
|
|
|
<div class="content-wrapper">
|
2025-09-27 13:37:31 +03:00
|
|
|
<div class="footer-text">
|
2025-09-27 15:22:06 +03:00
|
|
|
© 2024-2025 <Link href="https://github.com/eliandoran" openExternally>Elian Doran</Link> and the <Link href="https://github.com/TriliumNext/Trilium/graphs/contributors" openExternally>community</Link>.<br />
|
2025-09-27 14:02:49 +03:00
|
|
|
© 2017-2024 <Link href="https://github.com/zadam" openExternally>zadam</Link>.
|
2025-09-27 13:37:31 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="social-buttons">
|
|
|
|
|
<SocialButton
|
|
|
|
|
name="GitHub"
|
|
|
|
|
iconSvg={githubIcon}
|
|
|
|
|
url="https://github.com/TriliumNext/Trilium"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<SocialButton
|
|
|
|
|
name="GitHub Discussions"
|
|
|
|
|
iconSvg={githubDiscussionsIcon}
|
|
|
|
|
url="https://github.com/orgs/TriliumNext/discussions"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<SocialButton
|
|
|
|
|
name="Matrix"
|
|
|
|
|
iconSvg={matrixIcon}
|
|
|
|
|
url="https://matrix.to/#/#triliumnext:matrix.org"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<SocialButton
|
|
|
|
|
name="Reddit"
|
|
|
|
|
iconSvg={redditIcon}
|
|
|
|
|
url="https://www.reddit.com/r/Trilium/"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2025-09-26 23:24:28 +03:00
|
|
|
</div>
|
|
|
|
|
</footer>
|
|
|
|
|
)
|
|
|
|
|
}
|
2025-09-27 13:37:31 +03:00
|
|
|
|
|
|
|
|
function SocialButton({ name, iconSvg, url }: { name: string, iconSvg: string, url: string }) {
|
|
|
|
|
return (
|
2025-09-27 14:02:49 +03:00
|
|
|
<Link className="social-button" href={url} openExternally title={name}>
|
2025-09-27 13:37:31 +03:00
|
|
|
<Icon svg={iconSvg} />
|
2025-09-27 14:02:49 +03:00
|
|
|
</Link>
|
2025-09-27 13:37:31 +03:00
|
|
|
)
|
|
|
|
|
}
|