slate/pages/index.js

84 lines
2.0 KiB
JavaScript
Raw Normal View History

2020-07-09 06:19:08 +03:00
import * as React from "react";
2020-07-16 08:48:51 +03:00
import * as Constants from "~/common/constants";
import * as Actions from "~/common/actions";
2020-07-09 06:19:08 +03:00
2020-07-16 08:48:51 +03:00
import { css } from "@emotion/react";
2020-07-09 06:19:08 +03:00
import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper";
2020-07-16 08:48:51 +03:00
const STYLES_ROOT = css`
padding: 128px 88px 256px 88px;
2020-07-16 08:48:51 +03:00
@media (max-width: 768px) {
padding: 128px 24px 128px 24px;
}
`;
const STYLES_HEADING = css`
font-weight: 400;
font-size: 2.88rem;
line-height: 1.5;
color: ${Constants.system.black};
@media (max-width: 768px) {
font-size: 1rem;
}
2020-07-16 08:48:51 +03:00
`;
const STYLES_PARAGRAPH = css`
font-weight: 400;
font-size: 2.88rem;
line-height: 1.5;
color: ${Constants.system.pitchBlack};
@media (max-width: 768px) {
font-size: 1rem;
}
2020-07-16 08:48:51 +03:00
`;
export const getServerSideProps = async (context) => {
return {
2020-07-16 08:48:51 +03:00
props: { ...context.query },
};
};
2020-02-19 09:30:47 +03:00
export default class IndexPage extends React.Component {
async componentDidMount() {
const response = await Actions.health();
console.log("HEALTH_CHECK", response);
}
2020-02-19 09:30:47 +03:00
render() {
2020-07-16 08:48:51 +03:00
const title = `Slate`;
const description =
"The place for all of your assets. Powered by Textile and Filecoin.";
2020-07-16 08:48:51 +03:00
const url = "https://slate.host";
2020-02-19 09:30:47 +03:00
return (
2020-07-16 08:48:51 +03:00
<WebsitePrototypeWrapper
title={title}
description={description}
url={url}
>
<div css={STYLES_ROOT}>
<h1 css={STYLES_HEADING}>Slate</h1>
<p css={STYLES_PARAGRAPH}>
One place for all of your assets. Powered by{" "}
2020-07-16 08:48:51 +03:00
<a href="https://docs.textile.io/">Textile</a> and{" "}
<a href="https://filecoin.io/">Filecoin</a>.
<br />
<br />
2020-07-23 04:25:19 +03:00
<a href="/application">Run Slate {Constants.values.version}</a>
2020-07-16 08:48:51 +03:00
<br />
2020-07-21 09:00:04 +03:00
<a href="/system">Use Slate's Design System</a>
2020-07-23 04:25:19 +03:00
<br />
<a href="https://github.com/filecoin-project/slate">
View Source
</a>
2020-07-16 08:48:51 +03:00
</p>
</div>
</WebsitePrototypeWrapper>
2020-02-19 09:30:47 +03:00
);
}
}