slate/components/core/WebsiteFooter.js
2022-01-25 20:21:40 -08:00

117 lines
2.9 KiB
JavaScript

import * as React from "react";
import * as Constants from "~/common/constants";
import { css } from "@emotion/react";
const STYLES_ROOT = css`
width: 100%;
margin: 0 auto;
background-color: ${Constants.semantic.bgGrayLight};
`;
const STYLES_CONTAINER = css`
max-width: 1080px;
margin: 0 auto;
width: 100%;
font-family: ${Constants.font.medium};
font-weight: 400;
font-size: 14px;
line-height: 28px;
letter-spacing: -0.01px;
padding: 96px 24px;
@media (max-width: ${Constants.sizes.mobile}px) {
max-width: 480px;
padding: 40px 16px;
}
`;
const STYLES_LINK = css`
text-decoration: none;
font-family: ${Constants.font.text};
font-weight: 400;
font-size: 14px;
line-height: 28px;
letter-spacing: -0.01px;
margin: 4px 0 0 0;
color: ${Constants.semantic.textGrayDark};
`;
const STYLES_FLEX = css`
display: flex;
@media (max-width: ${Constants.sizes.mobile}px) {
display: block;
}
`;
const STYLES_CONTENT_BLOCK = css`
width: 25%;
margin-bottom: 24px;
@media (max-width: ${Constants.sizes.tablet}px) {
width: 50%;
}
`;
const STYLES_HR = css`
background-color: ${Constants.semantic.borderGrayLight4};
width: 100%;
height: 1px;
margin: 12px 0;
`;
const styleFlexFull = {
justifyContent: `space-between`,
};
export const WebsiteFooter = (props) => {
const discordURL = "https://discord.gg/NRsUjpCypr";
const twitterURL = "https://twitter.com/_slate";
const githubURL = "https://github.com/filecoin-project/slate/issues/126";
const extensionURL =
"https://chrome.google.com/webstore/detail/slate-web-extension/gloembacbehhbfbkcfjmloikeeaebnoc";
return (
<div css={STYLES_ROOT}>
<div css={STYLES_CONTAINER} style={props.style}>
<div>Slate - Your personal search engine</div>
<div css={STYLES_HR} />
<div css={STYLES_FLEX}>
<div css={STYLES_CONTENT_BLOCK}>
<div>Resources</div>
<a css={STYLES_LINK} href={extensionURL}>
Slate for Chrome
</a>
<br />
<a css={STYLES_LINK} href={githubURL} target="_blank">
Github
</a>
</div>
<div css={STYLES_CONTENT_BLOCK}>
<div>Contact & Support</div>
<a css={STYLES_LINK} href={twitterURL} target="_blank">
Twitter
</a>
<br />
<a css={STYLES_LINK} href={discordURL} target="_blank">
Discord
</a>
</div>
</div>
<div css={STYLES_HR} />
<div css={STYLES_FLEX} style={styleFlexFull}>
<div />
<div>
<a css={STYLES_LINK} style={{ marginRight: `32px` }} href="/terms">
Terms of service
</a>
<a css={STYLES_LINK} href="/guidelines">
Community guidelines
</a>
</div>
</div>
</div>
</div>
);
};
export default WebsiteFooter;