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";
|
2021-06-09 01:53:30 +03:00
|
|
|
import WebsitePrototypeHeader from "~/components/core/NewWebsitePrototypeHeader";
|
2020-09-27 21:30:53 +03:00
|
|
|
import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter";
|
|
|
|
|
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`
|
2020-09-30 01:29:33 +03:00
|
|
|
width: 100%;
|
2020-09-27 23:03:00 +03:00
|
|
|
margin: -88px auto 0 auto;
|
2020-09-30 01:29:33 +03:00
|
|
|
padding: 0 88px 128px 88px;
|
2020-09-27 23:03:00 +03:00
|
|
|
background-color: ${Constants.system.wallLight};
|
2020-09-30 01:29:33 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-30 05:27:28 +03:00
|
|
|
padding: 48px 24px;
|
2020-09-30 01:29:33 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_CONTAINER = css`
|
|
|
|
max-width: 1440px;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto;
|
2020-09-27 23:03:00 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_H1 = css`
|
|
|
|
font-family: ${Constants.font.medium};
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: ${Constants.typescale.lvl4};
|
|
|
|
letter-spacing: -0.022rem;
|
|
|
|
line-height: 1.3;
|
|
|
|
color: ${Constants.system.slate};
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
width: 95%;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
font-size: ${Constants.typescale.lvl3};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_H2 = css`
|
|
|
|
font-family: ${Constants.font.medium};
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: ${Constants.typescale.lvl2};
|
|
|
|
letter-spacing: -0.017rem;
|
|
|
|
line-height: 1.3;
|
|
|
|
color: ${Constants.system.newBlue};
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
width: 95%;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
font-size: ${Constants.typescale.lvl1};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_P = css`
|
|
|
|
font-family: ${Constants.font.text};
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: ${Constants.typescale.lvl1};
|
|
|
|
letter-spacing: -0.011rem;
|
|
|
|
line-height: 1.5;
|
|
|
|
margin: 4px 0 0 0;
|
|
|
|
color: ${Constants.system.slate};
|
|
|
|
width: 80%;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SECTION_WRAPPER = css`
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2020-09-30 01:29:33 +03:00
|
|
|
padding: 120px 0;
|
2020-09-27 23:03:00 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-30 01:29:33 +03:00
|
|
|
padding: 120px 0 48px 0;
|
2020-09-27 23:03:00 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SECTION_FLEXWRAPPER = css`
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_TEXT_BLOCK = css`
|
|
|
|
width: 33.33%;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_BUTTON_PRIMARY = css`
|
|
|
|
margin: 32px 0 0 0;
|
|
|
|
min-height: 48px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 0 32px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
user-select: none;
|
|
|
|
background-color: ${Constants.system.newBlue};
|
|
|
|
color: ${Constants.system.white};
|
2020-09-28 19:56:13 +03:00
|
|
|
text-decoration: none;
|
2020-09-27 23:03:00 +03:00
|
|
|
font-family: ${Constants.font.semiBold};
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: ${Constants.typescale.lvl1};
|
|
|
|
letter-spacing: -0.011rem;
|
|
|
|
transition: 200ms ease all;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_BUTTON_SECONDARY = css`
|
|
|
|
margin: 32px 0 16px 0;
|
|
|
|
min-height: 48px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border: 1px solid ${Constants.system.darkGray};
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 0 32px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
user-select: none;
|
|
|
|
background-color: ${Constants.system.wallLight};
|
|
|
|
color: ${Constants.system.newBlue};
|
2020-09-28 19:56:13 +03:00
|
|
|
text-decoration: none;
|
2020-09-27 23:03:00 +03:00
|
|
|
font-family: ${Constants.font.semiBold};
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: ${Constants.typescale.lvl1};
|
|
|
|
letter-spacing: -0.011rem;
|
|
|
|
transition: 200ms ease all;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_BLUE = css`
|
|
|
|
color: ${Constants.system.newBlue};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_HALFBLOCK = css`
|
|
|
|
width: 50%;
|
|
|
|
margin-bottom: 64px;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const styleCenterBlock = {
|
|
|
|
textAlign: `center`,
|
|
|
|
margin: `0 auto`,
|
|
|
|
};
|
|
|
|
|
|
|
|
const STYLES_IMG = css`
|
|
|
|
width: 70%;
|
|
|
|
margin: 0 auto;
|
|
|
|
display: block;
|
2020-09-30 05:27:28 +03:00
|
|
|
box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.1);
|
2020-09-27 23:03:00 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_VR = css`
|
|
|
|
width: 1px;
|
|
|
|
height: 48px;
|
|
|
|
background-color: ${Constants.system.darkGray};
|
|
|
|
margin: 0 auto;
|
|
|
|
`;
|
|
|
|
|
2020-09-30 05:27:28 +03:00
|
|
|
const STYLES_IMG_OVERLAY = css`
|
|
|
|
width: 24%;
|
|
|
|
margin: -30% 0 0 70%;
|
|
|
|
display: block;
|
|
|
|
box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
|
|
|
margin: -30% 0 0 60%;
|
|
|
|
width: 30%;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-30 01:29:33 +03:00
|
|
|
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}>
|
2020-09-27 21:30:53 +03:00
|
|
|
<WebsitePrototypeHeader />
|
2020-09-27 23:03:00 +03:00
|
|
|
<div css={STYLES_ROOT}>
|
2020-09-30 01:29:33 +03:00
|
|
|
<div css={STYLES_CONTAINER}>
|
|
|
|
<div css={STYLES_SECTION_WRAPPER}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK} style={styleCenterBlock}>
|
|
|
|
<h1 css={STYLES_H1}>
|
2020-09-30 05:27:28 +03:00
|
|
|
<span css={STYLES_BLUE}>Upload images to Slate</span> <br />
|
|
|
|
from anywhere on the web
|
2020-09-30 01:29:33 +03:00
|
|
|
</h1>
|
|
|
|
<a
|
|
|
|
css={STYLES_BUTTON_PRIMARY}
|
|
|
|
href="https://chrome.google.com/webstore/detail/slate/gloembacbehhbfbkcfjmloikeeaebnoc"
|
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
Add Slate to Chrome
|
|
|
|
</a>
|
|
|
|
<div css={STYLES_VR} />
|
|
|
|
</div>
|
|
|
|
<img
|
|
|
|
css={STYLES_IMG}
|
2020-10-08 04:21:13 +03:00
|
|
|
src="https://slate.textile.io/ipfs/bafybeiarvezzcqx3f7vjmx25kzog3metgz35n4p5gtiexwl7hcgwzev64a"
|
2020-09-30 05:27:28 +03:00
|
|
|
/>
|
|
|
|
<img
|
|
|
|
css={STYLES_IMG_OVERLAY}
|
2020-10-05 22:49:01 +03:00
|
|
|
src="https://slate.textile.io/ipfs/bafkreig2ynqlvfynv3zvft73fh2igyyks5bgmthugtq7azeed6rehd3s5u"
|
2020-09-30 01:29:33 +03:00
|
|
|
/>
|
2020-09-27 23:03:00 +03:00
|
|
|
</div>
|
2020-09-30 01:29:33 +03:00
|
|
|
<div css={STYLES_SECTION_FLEXWRAPPER}>
|
|
|
|
<div css={STYLES_HALFBLOCK}>
|
|
|
|
<h2 css={STYLES_H2}>Contribute</h2>
|
|
|
|
<p css={STYLES_P}>
|
2020-10-08 04:28:29 +03:00
|
|
|
We would love for you to join us. You are welcome to file an issue or submit a
|
2020-10-08 04:21:13 +03:00
|
|
|
pull request on Github.
|
2020-09-30 01:29:33 +03:00
|
|
|
</p>
|
2020-10-08 04:21:13 +03:00
|
|
|
<a
|
|
|
|
css={STYLES_BUTTON_PRIMARY}
|
|
|
|
href="https://github.com/jasonleyser/slate-for-chrome"
|
|
|
|
target="_blank"
|
|
|
|
>
|
2020-09-30 01:29:33 +03:00
|
|
|
View Github
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_HALFBLOCK}>
|
|
|
|
<h2 css={STYLES_H2}>Release</h2>
|
2020-10-08 04:21:13 +03:00
|
|
|
<p css={STYLES_P}>
|
|
|
|
Slate for Chrome is open source and past versions are also available for download.
|
|
|
|
</p>
|
2020-09-30 01:29:33 +03:00
|
|
|
<a
|
|
|
|
css={STYLES_BUTTON_SECONDARY}
|
2020-12-02 22:39:13 +03:00
|
|
|
href="https://slate.textile.io/ipfs/bafybeibxdmhrddveho4mkyveixhhpiabjmtyvp2h7s3byexbkr3if74rwu"
|
2020-09-30 01:29:33 +03:00
|
|
|
download="Slate Chrome extension.zip"
|
|
|
|
>
|
|
|
|
Download Slate for Chrome
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-09-27 23:03:00 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-27 21:30:53 +03:00
|
|
|
<WebsitePrototypeFooter />
|
|
|
|
</WebsitePrototypeWrapper>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|