Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/web/components/Footer.tsx
blob: ba68adaee3b930bca46f181129a51b89b7dfb278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1

import { Brand } from "./Brand";
import { getHomeMessages } from "@/lib/home-messages";
import { getMessages, type Locale } from "@/lib/localization";
import { policyUrls } from "@/lib/policies";
import { getPolicyMessages } from "@/lib/policy-messages";
import { getCatalogMessages } from "@/lib/products";

export function Footer({ locale }: { locale: Locale }) {
  const { footer } = getMessages(locale);
  const policies = getPolicyMessages(locale);
  const site = getHomeMessages(locale).navigation;
  const catalog = getCatalogMessages(locale);
  return (
    <footer className="site-footer">
      <div className="shell footer-grid">
        <div>
          <Brand />
          <p>{footer.summary}</p>
        </div>
        <div>
          <strong>{footer.products}</strong>
          <a href="https://product.progmasoft.com/">{catalog.back}</a>
          <a href="https://console.progmasoft.com/">{site.developers}</a>
          <a href="https://github.com/Progmasoft">{footer.openSource}</a>
        </div>
        <div>
          <strong>{footer.organization}</strong>
          <a href="mailto:support@progmasoft.com">{footer.support}</a>
          <a href="https://account.progmasoft.com/">
            {getMessages(locale).navigation.account}
          </a>
          <a href="https://github.com/Progmasoft/progmaweb">
            {footer.websiteSource}
          </a>
          <a href={policyUrls.privacy}>{policies.privacy.title}</a>
          <a href={policyUrls.security}>{policies.security.title}</a>
        </div>
      </div>
      <div className="shell footer-bottom">
        <span>© 2026 Progmasoft</span>
        <span>{footer.closing}</span>
      </div>
    </footer>
  );
}