blob: 5cc0c28fd4904a4d64885a5d271871a113bae25c [file] [log] [blame]
import { Link } from "react-router-dom";
import { Divider, Button, Space } from "antd";
import {
GithubOutlined,
SlackOutlined,
TwitterOutlined,
} from "@ant-design/icons";
import { useTranslation } from "../../hooks";
import { GITHUB_LINK, TWITTER_LINK, SLACK_LINK } from "../../config";
import "./index.scss";
const Footer = () => {
const { locale, t } = useTranslation();
return (
<footer className="footer">
<section className="footer-content">
<div className="footer-links">
<Link className="footer-link" to={`/${locale}/download`}>
{t("download")}
</Link>
<Divider type="vertical" />
<Link className="footer-link" to={`/${locale}/docs`}>
{t("doc")}
</Link>
<Divider type="vertical" />
<Link className="footer-link" to={`/${locale}/community`}>
{t("community")}
</Link>
<Divider type="vertical" />
<Link className="footer-link" to={`/${locale}/events`}>
{t("events")}
</Link>
<Divider type="vertical" />
<Link className="footer-link" to={`/${locale}/blog`}>
{t("blog")}
</Link>
<Divider type="vertical" />
<Link className="footer-link" to={`/${locale}/use_case`}>
{t("use_case")}
</Link>
<Divider type="vertical" />
<Link className="footer-link" to={`/${locale}/support`}>
{t("support")}
</Link>
</div>
<div className="footer-desc">
<div className="footer-left">
<div className="footer-logo">
<div className="footer-logo-white"></div>
</div>
<div className="footer-copyright">
Copyright © 2019-{new Date().getFullYear()} The Apache Software
Foundation. Apache DolphinScheduler, DolphinScheduler, and its
feather logo are trademarks of The Apache Software Foundation.
</div>
</div>
<div className="footer-right">
<div className="footer-contacts">
<div className="footer-contacts-label">Contacts</div>
<Space>
<Button
icon={<GithubOutlined />}
type="text"
size="large"
shape="circle"
href={GITHUB_LINK}
target="_blank"
/>
<Button
icon={<SlackOutlined />}
type="text"
size="large"
shape="circle"
href={SLACK_LINK}
target="_blank"
/>
<Button
icon={<TwitterOutlined />}
type="text"
size="large"
shape="circle"
href={TWITTER_LINK}
target="_blank"
/>
</Space>
</div>
<div className="footer-email">
{`${t("email")}: users-subscribe@dolphinscheduler.apache.org`}
</div>
</div>
</div>
</section>
</footer>
);
};
export default Footer;