slate/pages/new-index.js
2020-08-11 18:40:43 -07:00

142 lines
3.6 KiB
JavaScript

import * as React from "react";
import * as Constants from "~/common/constants";
import * as Actions from "~/common/actions";
import * as System from "~/components/system";
import { css } from "@emotion/react";
import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper";
import WebsitePrototypeHeader from "~/components/core/WebsitePrototypeHeader";
import WebsitePrototypeFooter from "~/components/core/WebsitePrototypeFooter";
const STYLES_ROOT = css`
display: flex;
flex-direction: column;
justify-content: space-between;
h1{
font-size: 4.768rem;
color: ${Constants.system.black};
padding: 0px 0px 32px 0px;
width: 64%;
}
h2{
font-size: 1.953rem;
color: ${Constants.system.black};
width: 48%;
}
p{
font-size: 1rem;
color: ${Constants.system.black};
}
@media (max-width: ${Constants.sizes.mobile}px) {
h1{
font-size: 2.441rem;
}
h2{
font-size: 1.25rem;
}
p{
font-size: 0.78rem;
}
}
`;
const STYLES_HERO = css`
padding: 88px 24px;
width: 100vw;
height: 100vh;
background: ${Constants.system.foreground};
`;
const STYLES_SECTION_WHITE = css`
padding: 88px 24px;
width: 100vw;
height: 100vh;
background: ${Constants.system.white};
`;
const STYLES_SECTION_GRAY = css`
padding: 88px 24px;
width: 100vw;
height: 100vh;
background: ${Constants.system.gray};
`;
const STYLES_SECTION_FOREGROUND = css`
padding: 88px 24px;
width: 100vw;
height: 100vh;
background: ${Constants.system.foreground};
`;
export const getServerSideProps = async (context) => {
return {
props: { ...context.query },
};
};
export default class IndexPage extends React.Component {
async componentDidMount() {
const response = await Actions.health();
console.log("HEALTH_CHECK", response);
}
render() {
const title = `Slate`;
const description = "The place for all of your assets. Powered by Textile and Filecoin.";
const url = "https://slate.host";
return (
<WebsitePrototypeWrapper title={title} description={description} url={url}>
<div css={STYLES_ROOT}>
<WebsitePrototypeHeader />
<section css={STYLES_HERO}>
<System.H1>Store your files, turn them into collections, and share them with the world with Slate.</System.H1>
<br/>
</section>
<section css={STYLES_SECTION_WHITE}>
<h1>Simple, intuitive</h1>
<h2>Words about things</h2>
</section>
<section css={STYLES_SECTION_FOREGROUND}>
<h1>Private & Secure</h1>
<h2>All your files are encryped and only acessible by you and the people you chose to share.</h2>
</section>
<section css={STYLES_SECTION_WHITE}>
<h1>Store files</h1>
<h2>Words about things</h2>
</section>
<section css={STYLES_SECTION_FOREGROUND}>
<h1>Creating Slates</h1>
<h2>Words about things</h2>
</section>
<section css={STYLES_SECTION_WHITE}>
<h1>Share with</h1>
<h2>Words about things</h2>
</section>
<section css={STYLES_SECTION_FOREGROUND}>
<h1>Open Source</h1>
<h2>Words about things</h2>
</section>
<section css={STYLES_SECTION_WHITE}>
<h1>Free, unlimited storage, for now</h1>
<h2>Words about things</h2>
</section>
<WebsitePrototypeFooter />
</div>
</WebsitePrototypeWrapper>
);
}
}