slate/pages/slate-for-chrome.js

184 lines
4.5 KiB
JavaScript
Raw Normal View History

2020-09-27 21:30:53 +03:00
import * as React from "react";
import * as Constants from "~/common/constants";
import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper";
import WebsiteHeader from "~/components/core/WebsiteHeader";
import WebsiteFooter from "~/components/core/WebsiteFooter";
2020-09-27 21:30:53 +03:00
2020-11-30 08:24:22 +03:00
import { css } from "@emotion/react";
2020-09-27 21:30:53 +03:00
2020-09-27 23:03:00 +03:00
const STYLES_ROOT = css`
width: 100%;
height: 100%;
overflow: hidden;
min-height: 100vh;
background-color: ${Constants.semantic.bgLight};
color: ${Constants.semantic.textGrayDark};
`;
const STYLES_CONTAINER = css`
max-width: 1080px;
margin: 0 auto;
padding: 160px 24px;
2020-09-27 23:03:00 +03:00
@media (max-width: ${Constants.sizes.mobile}px) {
max-width: 480px;
padding: 96px 16px;
2020-09-27 23:03:00 +03:00
}
`;
const STYLES_HERO_TEXT = css`
display: flex;
align-items: center;
2020-09-27 23:03:00 +03:00
@media (max-width: ${Constants.sizes.mobile}px) {
display: block;
2020-09-27 23:03:00 +03:00
}
`;
const STYLES_HEADING = css`
font-family: ${Constants.font.semiBold};
flex-shrink: 0;
color: ${Constants.semantic.textBlack};
flex-shrink: 0;
min-width: 50%;
max-width: 100%;
2020-09-27 23:03:00 +03:00
`;
const STYLES_HEADING1 = css`
${STYLES_HEADING};
font-size: 84px;
line-height: 88px;
letter-spacing: -0.05em;
display: flex;
align-items: baseline;
2020-09-27 23:03:00 +03:00
@media (max-width: ${Constants.sizes.tablet}px) {
font-size: 64px;
line-height: 68px;
letter-spacing: -0.04em;
2020-09-27 23:03:00 +03:00
}
@media (max-width: ${Constants.sizes.mobile}px) {
font-size: 48px;
line-height: 52px;
letter-spacing: -0.04em;
2020-09-27 23:03:00 +03:00
}
`;
const STYLES_BODY1 = css`
font-family: ${Constants.font.text};
font-size: 24px;
line-height: 36px;
letter-spacing: -0.02em;
margin-bottom: 32px;
2020-09-27 23:03:00 +03:00
@media (max-width: ${Constants.sizes.tablet}px) {
font-size: 20px;
line-height: 28px;
margin-bottom: 20px;
2020-09-27 23:03:00 +03:00
}
`;
const STYLES_IMG = css`
max-width: 100%;
overflow: hidden;
box-shadow: 0px 10.8725px 57.9866px rgba(174, 176, 178, 0.3);
max-width: calc(50% - 24px);
`;
2020-09-27 23:03:00 +03:00
const STYLES_IMG_HERO = css`
${STYLES_IMG};
max-width: 100%;
border: 12px solid ${Constants.semantic.textBlack};
border-radius: 40px;
@media (max-width: ${Constants.sizes.tablet}px) {
border: 8px solid ${Constants.semantic.textBlack};
border-radius: 24px;
2020-09-27 23:03:00 +03:00
}
`;
const STYLES_BUTTON = css`
cursor: poitner;
2020-09-27 23:03:00 +03:00
display: inline-flex;
flex-grow: 0;
2020-09-27 23:03:00 +03:00
justify-content: center;
align-items: center;
box-shadow: ${Constants.shadow.lightMedium};
2020-09-28 19:56:13 +03:00
text-decoration: none;
font-family: ${Constants.font.medium};
font-size: 14px;
line-height: 20px;
letter-spacing: -0.006px;
2020-09-27 23:03:00 +03:00
cursor: pointer;
`;
const STYLES_BUTTON_PRIMARY = css`
${STYLES_BUTTON};
color: ${Constants.semantic.textWhite};
background-color: ${Constants.system.blue};
2020-09-27 23:03:00 +03:00
`;
const STYLES_BUTTON_PRIMARY_BIG = css`
${STYLES_BUTTON_PRIMARY};
padding: 18px 28px 18px 24px;
border-radius: 20px;
font-size: 16px;
line-height: 24px;
2020-09-27 23:03:00 +03:00
`;
const STYLES_BUTTON_PRIMARY_BIG_HERO = css`
${STYLES_BUTTON_PRIMARY_BIG};
margin-bottom: 48px;
2020-09-27 23:03:00 +03:00
@media (max-width: ${Constants.sizes.mobile}px) {
margin-bottom: 32px;
2020-09-27 23:03:00 +03:00
}
`;
const STYLES_FEATURE_IMG = css`
display: block;
margin: 0 20px;
width: 60%;
border: ${Constants.semantic.borderGrayLight4};
border-radius: 16px;
box-shadow: ${Constants.shadow.darkMedium};
`;
export default class SlateForChromePage extends React.Component {
2020-09-27 21:30:53 +03:00
render() {
const title = `Slate for Chrome`;
2020-10-02 07:40:14 +03:00
const description = "Upload images to Slate from anywhere on the web";
2020-09-27 21:30:53 +03:00
const url = "https://slate.host/slate-for-chrome";
2020-10-08 04:21:13 +03:00
const image =
"https://slate.textile.io/ipfs/bafybeidi6z774yoge5uowzwkdrrnrzi5bzqgzrwfizw4dg4xdjxfjoa5ei";
2020-09-27 21:30:53 +03:00
return (
2020-10-06 00:17:09 +03:00
<WebsitePrototypeWrapper title={title} description={description} url={url} image={image}>
<WebsiteHeader />
2020-09-27 23:03:00 +03:00
<div css={STYLES_ROOT}>
<div css={STYLES_CONTAINER}>
<div css={STYLES_HEADING1}>Slate web extension</div>
<br />
<div css={STYLES_BODY1}>
Access Slate anytime, anywhere when you browse the Internet.
2020-09-27 23:03:00 +03:00
</div>
<a css={STYLES_BUTTON_PRIMARY_BIG_HERO}>Get Slate for Chrome</a>
<img
css={STYLES_IMG_HERO}
src="https://slate.textile.io/ipfs/bafybeihsrxgjk5ax4wzbnfnq2kyg4djylrvpsbzrhitvnmcjixupbk5qjm"
/>
<img
css={STYLES_FEATURE_IMG}
style={{ margin: "-50% auto 48px auto" }}
src="https://slate.textile.io/ipfs/bafkreidm2ffwdjgk5j5w4ja2p7fjrflfeldyhak2qigkpatvhazc5rsvda"
/>
2020-09-27 23:03:00 +03:00
</div>
</div>
<WebsiteFooter />
2020-09-27 21:30:53 +03:00
</WebsitePrototypeWrapper>
);
}
}