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";
|
2020-07-17 13:24:20 +03:00
|
|
|
import * as Actions from "~/common/actions";
|
2020-07-09 06:19:08 +03:00
|
|
|
|
|
|
|
import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper";
|
2020-09-06 23:26:08 +03:00
|
|
|
import WebsitePrototypeHeader from "~/components/core/NewWebsitePrototypeHeader";
|
|
|
|
import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter";
|
2020-09-11 09:23:28 +03:00
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
import { css } from "@emotion/react";
|
2020-09-11 09:23:28 +03:00
|
|
|
|
|
|
|
const USER_SLATES = [
|
|
|
|
{
|
|
|
|
name: "Urban gardens",
|
|
|
|
url: "https://slate.host/gndclouds/urban-gardens",
|
|
|
|
username: "gndclouds",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafybeiff7y4kz4e2z4nfso4nsgdbkfsyroa62jvvldoxafuaf34m7lticu",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Shapes and Letters",
|
|
|
|
url: "https://slate.host/haris/shapes-and-letters",
|
|
|
|
username: "haris",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafybeifgxtl7mq5djnorxedzi35hkizjmbjvdy3nnoitd3xvdnqpmruxbm",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Mountains",
|
|
|
|
url: "https://slate.host/jason/mountains",
|
|
|
|
username: "jason",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafkreies6uykgocrkunrsndxfubntyqvfqzo5wuwyos42vak6d4qnvtdn4",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Loom",
|
|
|
|
url: "https://slate.host/tara/loom",
|
|
|
|
username: "tara",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafybeifl5xzy4vjctrsr3jywdlv5ceq3hpaadhcii2ekjx2gljyagveqna",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Brand",
|
|
|
|
url: "https://slate.host/slate/brand",
|
|
|
|
username: "slate",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafybeiaerbu2nivrgncqtwgwom27caji25netswvjbo6tcmbka47ucmupa",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Montreal underground",
|
|
|
|
url: "https://slate.host/tcosta/montreal-underground",
|
|
|
|
username: "tcosta",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafybeieblkyt6d7wg4xmltshvxm6w7tz4c3zjpjuu4yfhiak36debqccda",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Monet",
|
|
|
|
url: "https://slate.host/slate/monet",
|
|
|
|
username: "slate",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafkreieb4yfiamtipapmhoihl547lxeod2vfku67dimrhmab5tcglr5bli",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Books",
|
|
|
|
url: "https://slate.host/haris/books",
|
|
|
|
username: "haris",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafkreihe7ismqfyytekj6yvbv6mpbc5de3gozk6n7a47smodbcsnrhbpri",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Papers",
|
|
|
|
url: "https://slate.host/slate/papers",
|
|
|
|
username: "slate",
|
2020-09-22 03:58:51 +03:00
|
|
|
preview: "https://slate.textile.io/ipfs/bafkreif7l2vxkvdyrydcjwjjrrmqq73id3tdrdkf3z54tp2fotc75wkdwm",
|
2020-09-14 03:48:47 +03:00
|
|
|
},
|
2020-09-11 09:23:28 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
const ASSET_HERO = {
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeidfr2x5ftxzixjxtrgiqm6iuotzip25tlrpase226jog3tqenqd4a",
|
2020-09-14 03:48:47 +03:00
|
|
|
backgroundImage: `https://slate.textile.io/ipfs/bafybeict43te7wcy7pdw3v45dwwedwxw7yjthbytdsja6dpsiqkgil7iey`,
|
2020-09-11 09:23:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const ASSET_HERO_COLLABORATE = {
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeih63zq5f7htbhkmrog447ybytyid2yi6fix4k6z3pbegxpcq2r2qa",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafkreiagwjqvmisseb6voj7cwd3lhjudigkel63hqg6efpqjmhlfv5ucj4",
|
2020-09-11 09:23:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
const ASSETS_SMALL = [
|
|
|
|
{
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeiawzns4vxqp3llkzmc4shvytzpurysh26yj3aljde4d4fsgf7wlze",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafybeihez3rtyqqftx7mkyktwozyqjkwdtk2kglxqjc4zspah26bva3yk4",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeiczug4d6uyr4pkejdwirkeffbzkkzrbaprxvreid6iitw3pmjzq3q",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafybeidnt2l3lslxi7ofkxs5ffncsh4fw5h2ohbukxumngrqj5pdrooaou",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafkreid7wl4443p764ozdlqtodh7dmsej6ffayp4tc3lr3hil2qkclrohi",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafkreibb3onijljnmonrbs7qguimjf5qwbnkx3m33pouxbtar2yb7hupti",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
{
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeicjovnsnhvt7xwjw3igdwwpb4ms2m23fayoydj3oevrwyi7dzjtga",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafkreiefuyyk6dcjhyk3hl2httqvdlnl3mo6wrfzgmponexrc75jop757y",
|
2020-09-14 03:48:47 +03:00
|
|
|
},
|
2020-09-11 09:23:28 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
const ASSETS_MEDIUM = [
|
|
|
|
{
|
|
|
|
title: "Create moodboards",
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeib46kplzcylnzviaojgbogua52wyrzbvnj6uulvo4zwrxm4hnxeqe",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafybeicoaponp2nv3ikpsjgcgu7pio6aercflsvsiyxrpaonza7ncg73dq",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
title: "Organize research",
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeigstyjfpzazdlmgkfuhw4yxrneux3opvbls7nmv6gq7dbnhmy6xwy",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafybeie4p45yfvbjdzc2rgw67e7crcltpu7o544xtugs3wyv3qh3t3oegi",
|
2020-09-11 09:23:28 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
title: "Share presentations",
|
2020-09-22 03:58:51 +03:00
|
|
|
src: "https://slate.textile.io/ipfs/bafybeiampkmsxeihxnuz2hkgbhtzosgkwghslpwm7dsrxrzlqwa7tvzreq",
|
|
|
|
backgroundImage: "https://slate.textile.io/ipfs/bafkreiglefskwq7bpa3aazihegawd4qwxockl6shipnps7zlokrbnu4f7u",
|
2020-09-14 03:48:47 +03:00
|
|
|
},
|
2020-09-11 09:23:28 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
const ASSET_CHROME_EXTENSION =
|
2020-09-12 06:43:28 +03:00
|
|
|
"https://slate.textile.io/ipfs/bafybeibwppu23j5wgshqvm5qyqv3c6pmhp3y5irdwn3ivvnnrpexiguzbi";
|
2020-09-11 09:23:28 +03:00
|
|
|
|
2020-09-22 03:58:51 +03:00
|
|
|
const ASSET_SLATE_CUBE = "https://slate.textile.io/ipfs/bafybeiaex6rorqtumulc4x3u4sbl5pdbn5sx45mvm6uvbebu4cxgk3okjy";
|
2020-09-09 17:35:28 +03:00
|
|
|
|
2020-07-16 08:48:51 +03:00
|
|
|
const STYLES_ROOT = css`
|
2020-08-03 06:22:47 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
2020-09-06 23:26:08 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_LINK = css`
|
|
|
|
text-decoration: none;
|
|
|
|
color: ${Constants.system.white};
|
|
|
|
transition: 200ms ease all;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
color: ${Constants.system.blue};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_H1 = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl5};
|
2020-09-13 05:47:06 +03:00
|
|
|
font-family: ${Constants.font.medium};
|
|
|
|
font-weight: 400;
|
2020-09-10 09:10:57 +03:00
|
|
|
line-height: 1.3;
|
|
|
|
padding: 0px 0px 24px 0px;
|
|
|
|
letter-spacing: -0.021rem;
|
2020-09-06 23:26:08 +03:00
|
|
|
width: 100%;
|
|
|
|
color: ${Constants.system.white};
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl5};
|
|
|
|
padding: 0px 0px 16px 0px;
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
2020-08-03 06:22:47 +03:00
|
|
|
|
2020-08-09 01:04:17 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl3};
|
2020-07-16 08:48:51 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_H2 = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl3};
|
2020-09-13 05:47:06 +03:00
|
|
|
font-family: ${Constants.font.medium};
|
|
|
|
font-weight: 400;
|
2020-09-10 09:10:57 +03:00
|
|
|
line-height: 1.3;
|
|
|
|
letter-spacing: -0.019rem;
|
|
|
|
padding: 0 0 24px 0;
|
2020-09-06 23:26:08 +03:00
|
|
|
width: 100%;
|
|
|
|
color: ${Constants.system.darkGray};
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl3};
|
|
|
|
line-height: 1.5;
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl2};
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_H3 = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl2};
|
2020-09-13 05:47:06 +03:00
|
|
|
font-family: ${Constants.font.medium};
|
|
|
|
font-weight: 400;
|
2020-09-06 23:26:08 +03:00
|
|
|
line-height: 1.5;
|
2020-09-10 09:10:57 +03:00
|
|
|
letter-spacing: -0.014rem;
|
|
|
|
padding: 0 0 8px 0;
|
2020-09-06 23:26:08 +03:00
|
|
|
color: ${Constants.system.darkGray};
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl2};
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl1};
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_HIGHLIGHT = css`
|
|
|
|
color: ${Constants.system.white};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_HIGHLIGHT_BLACK = css`
|
|
|
|
color: ${Constants.system.slate};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SECTION_HERO = css`
|
|
|
|
width: 100vw;
|
|
|
|
padding: 30vh 88px 88px 88px;
|
2020-08-03 06:22:47 +03:00
|
|
|
display: flex;
|
2020-09-06 23:26:08 +03:00
|
|
|
flex-direction: column;
|
2020-08-03 06:22:47 +03:00
|
|
|
justify-content: center;
|
2020-09-06 23:26:08 +03:00
|
|
|
margin: -88px 0px 0px 0px;
|
2020-09-10 09:10:57 +03:00
|
|
|
background: ${Constants.system.pitchBlack};
|
2020-09-06 23:26:08 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
padding: 40vh 24px 48px 24px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SECTION_SLATE_WALL = css`
|
|
|
|
display: flex;
|
2020-08-03 06:22:47 +03:00
|
|
|
flex-direction: column;
|
2020-09-06 23:26:08 +03:00
|
|
|
width: 100vw;
|
|
|
|
padding: 88px;
|
2020-09-10 09:10:57 +03:00
|
|
|
background: ${Constants.system.foreground};
|
2020-09-06 23:26:08 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
padding: 64px 24px;
|
|
|
|
display: block;
|
|
|
|
}
|
2020-08-03 06:22:47 +03:00
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_SECTION_SLATE = css`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 88px;
|
|
|
|
width: 100vw;
|
2020-09-10 09:10:57 +03:00
|
|
|
background: ${Constants.system.pitchBlack};
|
2020-09-06 23:26:08 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
padding: 64px 24px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_FILETYPE = css`
|
|
|
|
display: flex;
|
2020-09-07 00:50:28 +03:00
|
|
|
flex-wrap: wrap;
|
2020-08-03 06:22:47 +03:00
|
|
|
width: 100%;
|
2020-09-07 00:50:28 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-13 00:21:24 +03:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2020-09-07 00:50:28 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_FILETYPE_GRID_ITEM = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
padding: 0 24px 24px 0;
|
2020-09-13 00:21:24 +03:00
|
|
|
width: 25%;
|
2020-09-07 00:50:28 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-13 00:21:24 +03:00
|
|
|
width: 50%;
|
2020-09-07 00:50:28 +03:00
|
|
|
padding: 0 0 24px 0;
|
|
|
|
}
|
2020-08-03 06:22:47 +03:00
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_VIDEO_BIG = css`
|
2020-09-07 00:50:28 +03:00
|
|
|
display: block;
|
2020-09-11 09:23:28 +03:00
|
|
|
background-size: cover;
|
|
|
|
background-position: 50% 50%;
|
2020-09-07 05:05:30 +03:00
|
|
|
background-color: ${Constants.system.moonstone};
|
2020-09-07 01:18:40 +03:00
|
|
|
padding: 0;
|
|
|
|
outline: 0;
|
2020-09-10 09:10:57 +03:00
|
|
|
margin: 40px auto 80px auto;
|
2020-09-06 23:26:08 +03:00
|
|
|
border-radius: 4px;
|
2020-08-03 06:22:47 +03:00
|
|
|
width: 100%;
|
2020-09-06 23:26:08 +03:00
|
|
|
box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
|
|
|
margin: 32px auto 64px auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
margin: 16px auto 48px auto;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_VIDEO_MEDIUM = css`
|
|
|
|
display: block;
|
2020-09-11 09:23:28 +03:00
|
|
|
background-size: cover;
|
|
|
|
background-position: 50% 50%;
|
2020-09-10 09:10:57 +03:00
|
|
|
background-color: ${Constants.system.moonstone};
|
|
|
|
padding: 0;
|
|
|
|
outline: 0;
|
|
|
|
margin: 24px auto 96px auto;
|
|
|
|
border-radius: 4px;
|
|
|
|
width: 100%;
|
2020-09-13 00:21:24 +03:00
|
|
|
max-width: 56vw;
|
2020-09-10 09:10:57 +03:00
|
|
|
box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
|
|
|
margin: 16px auto 64px auto;
|
2020-09-13 00:21:24 +03:00
|
|
|
width: 100%;
|
|
|
|
max-width: 100vw;
|
2020-09-10 09:10:57 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
margin: 8px auto 48px auto;
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
2020-08-03 06:22:47 +03:00
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_VIDEO_SMALL = css`
|
2020-09-07 00:50:28 +03:00
|
|
|
display: block;
|
2020-09-11 09:23:28 +03:00
|
|
|
width: 100%;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: 50% 50%;
|
2020-09-07 05:05:30 +03:00
|
|
|
background-color: ${Constants.system.moonstone};
|
2020-09-07 01:18:40 +03:00
|
|
|
padding: 0;
|
|
|
|
outline: 0;
|
2020-09-06 23:26:08 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_MEDIA_LEFT = css`
|
|
|
|
margin: 64px 0 0 -240px;
|
|
|
|
width: 80vw;
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.1);
|
2020-08-03 06:22:47 +03:00
|
|
|
|
2020-08-09 01:04:17 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-06 23:26:08 +03:00
|
|
|
margin: 24px 0 0 -80px;
|
2020-07-17 13:24:20 +03:00
|
|
|
}
|
2020-07-16 08:48:51 +03:00
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_MEDIA_RIGHT_OVERLAP = css`
|
|
|
|
float: right;
|
|
|
|
margin: -40px 240px 0 0;
|
|
|
|
width: 24vw;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
|
|
|
margin: 24px 0 0 80px;
|
|
|
|
width: 32vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
margin: 24px 0 0 80px;
|
|
|
|
width: 48vw;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_TEXT_BLOCK = css`
|
2020-08-03 06:22:47 +03:00
|
|
|
display: flex;
|
2020-09-06 23:26:08 +03:00
|
|
|
flex-direction: column;
|
2020-08-03 06:22:47 +03:00
|
|
|
justify-content: space-between;
|
2020-09-10 09:10:57 +03:00
|
|
|
max-width: 56vw;
|
|
|
|
width: 100%;
|
2020-09-06 23:26:08 +03:00
|
|
|
align-self: center;
|
2020-09-13 00:21:24 +03:00
|
|
|
margin-bottom: 16px;
|
2020-08-03 06:22:47 +03:00
|
|
|
|
2020-08-09 01:04:17 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-13 00:21:24 +03:00
|
|
|
width: 100%;
|
2020-09-13 02:29:02 +03:00
|
|
|
max-width: 100vw;
|
2020-08-03 06:22:47 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_ACTIONS_RIGHT = css`
|
2020-08-09 01:04:17 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-06 23:26:08 +03:00
|
|
|
display: block;
|
|
|
|
padding: 16px 0 8px 0;
|
2020-08-03 06:22:47 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_BUTTON_PRIMARY = css`
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-radius: 2px;
|
|
|
|
outline: 0;
|
|
|
|
border: 0;
|
2020-09-07 01:18:40 +03:00
|
|
|
min-height: 48px;
|
2020-09-06 23:26:08 +03:00
|
|
|
padding: 0px 24px 0px 24px;
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-09-13 09:45:07 +03:00
|
|
|
font-size: ${Constants.typescale.lvl1};
|
2020-09-06 23:26:08 +03:00
|
|
|
letter-spacing: 0.2px;
|
|
|
|
font-family: ${Constants.font.semiBold};
|
|
|
|
transition: 200ms ease all;
|
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
2020-09-10 09:10:57 +03:00
|
|
|
background-color: ${Constants.system.slate};
|
|
|
|
color: ${Constants.system.white};
|
2020-09-06 23:26:08 +03:00
|
|
|
box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.1);
|
|
|
|
|
|
|
|
:hover {
|
2020-09-10 09:10:57 +03:00
|
|
|
background-color: ${Constants.system.white};
|
2020-09-06 23:26:08 +03:00
|
|
|
box-shadow: 0px 10px 90px 20px rgba(207, 206, 211, 0.3);
|
2020-09-10 09:10:57 +03:00
|
|
|
color: ${Constants.system.slate};
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
:focus {
|
|
|
|
box-shadow: inset 0 0 5px 2px rgba(0, 0, 0, 0.3);
|
|
|
|
background-color: ${Constants.system.pitchBlack};
|
|
|
|
color: ${Constants.system.wall};
|
|
|
|
outline: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
2020-08-03 06:22:47 +03:00
|
|
|
`;
|
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_LINK_WHITE = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
color: ${Constants.system.darkGray};
|
2020-08-03 06:22:47 +03:00
|
|
|
text-decoration: none;
|
|
|
|
transition: 200ms ease color;
|
2020-09-13 09:45:07 +03:00
|
|
|
font-size: ${Constants.typescale.lvl2};
|
2020-09-06 23:26:08 +03:00
|
|
|
padding: 24px 0 0 0;
|
2020-08-03 06:22:47 +03:00
|
|
|
|
|
|
|
:visited {
|
2020-09-06 23:26:08 +03:00
|
|
|
color: ${Constants.system.white};
|
2020-08-03 06:22:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
:hover {
|
2020-09-06 23:26:08 +03:00
|
|
|
color: ${Constants.system.brand};
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-13 09:45:07 +03:00
|
|
|
font-size: ${Constants.typescale.lvl0};
|
2020-07-17 13:24:20 +03:00
|
|
|
}
|
2020-07-16 08:48:51 +03:00
|
|
|
`;
|
2020-04-09 00:29:13 +03:00
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
const STYLES_SLATE_CARD_GROUP = css`
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
width: 100%;
|
2020-09-11 09:23:28 +03:00
|
|
|
margin-top: 48px;
|
2020-09-06 23:26:08 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SLATE_CARD = css`
|
2020-09-10 23:48:28 +03:00
|
|
|
width: 33.33%;
|
2020-09-24 03:35:21 +03:00
|
|
|
height: 25vh;
|
2020-09-10 23:48:28 +03:00
|
|
|
margin: -1px 0 0 -1px;
|
2020-09-06 23:26:08 +03:00
|
|
|
transition: 200ms ease box-shadow;
|
2020-09-10 09:10:57 +03:00
|
|
|
border: 1px solid ${Constants.system.darkGray};
|
2020-09-11 09:23:28 +03:00
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
:hover {
|
|
|
|
transition: 200ms ease box-shadow;
|
|
|
|
box-shadow: 0px 10px 40px 20px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-10 09:10:57 +03:00
|
|
|
const STYLES_SLATE_CARD_CTA = css`
|
2020-09-06 23:26:08 +03:00
|
|
|
width: 100%;
|
|
|
|
height: calc(100vh / 2);
|
|
|
|
margin-left: -1px;
|
|
|
|
box-shadow: 0px 4px 80px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
text-decoration: none;
|
2020-09-11 09:23:28 +03:00
|
|
|
transition: 200ms ease all;
|
2020-08-19 21:17:12 +03:00
|
|
|
|
2020-09-11 09:23:28 +03:00
|
|
|
:hover {
|
|
|
|
box-shadow: 0px 4px 120px 4px rgba(0, 0, 0, 0.1);
|
|
|
|
transform: scale(1.01);
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SLATE_CARD_TEXT = css`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: left;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 12px;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SLATE_CARD_TITLE = css`
|
|
|
|
padding: 12px;
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl1};
|
2020-09-13 00:21:24 +03:00
|
|
|
letter-spacing: -0.021rem;
|
|
|
|
font-weight: 400;
|
2020-09-06 23:26:08 +03:00
|
|
|
text-align: left;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
padding: 0px;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SLATE_CARD_CTA_TITLE = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl5};
|
2020-09-13 05:47:06 +03:00
|
|
|
font-family: ${Constants.font.medium};
|
|
|
|
font-weight: 400;
|
2020-09-06 23:26:08 +03:00
|
|
|
text-align: left;
|
|
|
|
line-height: 1.25;
|
|
|
|
padding: 12px;
|
2020-09-07 00:41:07 +03:00
|
|
|
overflow-wrap: break-word;
|
2020-09-06 23:26:08 +03:00
|
|
|
width: 100%;
|
|
|
|
color: ${Constants.system.darkGray};
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.tablet}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl4};
|
2020-09-06 23:26:08 +03:00
|
|
|
}
|
2020-09-11 09:23:28 +03:00
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl3};
|
2020-09-06 23:26:08 +03:00
|
|
|
padding: 0px 0px 8px 0px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SLATE_CARD_EXPLAINER = css`
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
width: 100%;
|
|
|
|
padding: 12px;
|
2020-09-10 09:10:57 +03:00
|
|
|
|
2020-09-06 23:26:08 +03:00
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
padding: 0px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SLATE_CARD_PARAGRAPH = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl0};
|
2020-09-06 23:26:08 +03:00
|
|
|
text-align: left;
|
|
|
|
text-decoration: none;
|
2020-09-11 09:23:28 +03:00
|
|
|
color: ${Constants.system.pitchBlack};
|
|
|
|
transition: 200ms ease all;
|
|
|
|
|
|
|
|
:hover,
|
|
|
|
:active {
|
|
|
|
color: ${Constants.system.pitchBlack};
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2020-09-06 23:26:08 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
font-size: 0.78rem;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const STYLES_SLATE_CARD_CTA_PARAGRAPH = css`
|
2020-09-10 09:10:57 +03:00
|
|
|
font-size: ${Constants.typescale.lvl2};
|
2020-09-06 23:26:08 +03:00
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-14 03:48:47 +03:00
|
|
|
const SlateCardElement = (props) => {
|
2020-09-11 09:23:28 +03:00
|
|
|
return (
|
|
|
|
<div css={STYLES_SLATE_CARD}>
|
|
|
|
<div
|
|
|
|
css={css`
|
|
|
|
transition: 200ms ease all;
|
|
|
|
height: 100%;
|
|
|
|
background-color: transparent;
|
|
|
|
background-position: 50% 50%;
|
|
|
|
background-size: cover;
|
|
|
|
|
|
|
|
:hover {
|
|
|
|
background-color: ${Constants.system.pitchBlack};
|
|
|
|
background-image: url("${props.preview}");
|
|
|
|
}
|
2020-09-19 02:30:56 +03:00
|
|
|
`}
|
|
|
|
>
|
2020-09-11 09:23:28 +03:00
|
|
|
<a css={STYLES_SLATE_CARD_PARAGRAPH} href={props.url} target="_blank">
|
|
|
|
<div css={STYLES_SLATE_CARD_TEXT}>
|
|
|
|
<div css={STYLES_SLATE_CARD_TITLE}>{props.name}</div>
|
|
|
|
<div css={STYLES_SLATE_CARD_EXPLAINER}>
|
|
|
|
<div>{`@${props.username}`}</div>
|
|
|
|
<div>-></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2020-09-20 20:40:51 +03:00
|
|
|
function preloadVideo(video) {
|
|
|
|
const src = video.getAttribute("data-src");
|
|
|
|
if (!src) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
video.src = src;
|
|
|
|
}
|
|
|
|
|
2020-09-14 03:48:47 +03:00
|
|
|
export const getServerSideProps = async (context) => {
|
2020-04-09 00:29:13 +03:00
|
|
|
return {
|
2020-09-14 03:48:47 +03:00
|
|
|
props: { ...context.query },
|
2020-04-09 00:29:13 +03:00
|
|
|
};
|
|
|
|
};
|
2020-02-19 09:30:47 +03:00
|
|
|
|
|
|
|
export default class IndexPage extends React.Component {
|
2020-07-17 13:24:20 +03:00
|
|
|
async componentDidMount() {
|
2020-09-20 03:16:35 +03:00
|
|
|
const videos = document.querySelectorAll("[data-src]");
|
|
|
|
const config = {
|
|
|
|
root: null,
|
|
|
|
rootMargin: "0px",
|
|
|
|
threshold: 0.1,
|
|
|
|
};
|
|
|
|
|
2020-09-22 03:58:51 +03:00
|
|
|
const observer = new IntersectionObserver(function (entries, self) {
|
2020-09-20 03:16:35 +03:00
|
|
|
entries.forEach((entry) => {
|
|
|
|
if (entry.isIntersecting) {
|
|
|
|
preloadVideo(entry.target);
|
|
|
|
self.unobserve(entry.target);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}, config);
|
2020-09-20 20:40:51 +03:00
|
|
|
|
2020-09-20 03:16:35 +03:00
|
|
|
videos.forEach((video) => {
|
|
|
|
observer.observe(video);
|
|
|
|
});
|
2020-09-11 09:23:28 +03:00
|
|
|
}
|
2020-07-17 13:24:20 +03:00
|
|
|
|
2020-02-19 09:30:47 +03:00
|
|
|
render() {
|
2020-07-16 08:48:51 +03:00
|
|
|
const title = `Slate`;
|
2020-09-22 03:58:51 +03:00
|
|
|
const description = "Welcome to the future of file sharing. Powered by Textile, Filecoin, and IPFS.";
|
2020-07-16 08:48:51 +03:00
|
|
|
const url = "https://slate.host";
|
2020-09-11 09:23:28 +03:00
|
|
|
|
2020-02-19 09:30:47 +03:00
|
|
|
return (
|
2020-09-22 03:58:51 +03:00
|
|
|
<WebsitePrototypeWrapper title={title} description={description} url={url}>
|
2020-09-11 09:23:28 +03:00
|
|
|
<WebsitePrototypeHeader />
|
|
|
|
<div css={STYLES_ROOT}>
|
|
|
|
<div css={STYLES_SECTION_HERO}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
|
|
|
<h1 css={STYLES_H1}>
|
|
|
|
A file storage network <br />
|
|
|
|
for you, your files, and your friends.
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div css={STYLES_ACTIONS_RIGHT}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<div css={STYLES_BUTTON_PRIMARY} onClick={() => window.open("/_")}>
|
2020-09-13 02:54:27 +03:00
|
|
|
Use slate
|
2020-09-06 23:26:08 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<video
|
|
|
|
css={STYLES_VIDEO_BIG}
|
2020-09-20 03:16:35 +03:00
|
|
|
data-src={ASSET_HERO.src}
|
2020-09-11 09:23:28 +03:00
|
|
|
autoPlay
|
|
|
|
loop
|
|
|
|
muted
|
|
|
|
type="video/m4v"
|
|
|
|
playsInline
|
|
|
|
style={{
|
2020-09-14 03:48:47 +03:00
|
|
|
backgroundImage: `url('${ASSET_HERO.backgroundImage}')`,
|
2020-09-11 09:23:28 +03:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
|
|
|
<h2 css={STYLES_H2}>
|
|
|
|
Slate{" "}
|
|
|
|
<span css={STYLES_HIGHLIGHT}>
|
|
|
|
is a{" "}
|
2020-09-22 03:58:51 +03:00
|
|
|
<a css={STYLES_LINK} href={"https://github.com/filecoin-project/slate"} target="_blank">
|
2020-09-11 09:23:28 +03:00
|
|
|
fully open-source
|
|
|
|
</a>{" "}
|
|
|
|
file sharing network designed for research and collaboration.
|
|
|
|
</span>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<span css={STYLES_HIGHLIGHT}>Store</span> your data,
|
|
|
|
<br />
|
2020-09-22 03:58:51 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT}>organize</span> it any way you like, <br />
|
2020-09-25 07:02:08 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT}>and share</span> it with the world.
|
2020-09-11 09:23:28 +03:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
</h2>
|
|
|
|
<h3 css={STYLES_H3}>Powered by</h3>
|
|
|
|
<h2 css={STYLES_H2}>
|
|
|
|
<span css={STYLES_HIGHLIGHT}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<a href="https://textile.io" css={STYLES_LINK} target="_blank">
|
2020-09-11 09:23:28 +03:00
|
|
|
Textile
|
|
|
|
</a>{" "}
|
2020-09-10 09:10:57 +03:00
|
|
|
<br />
|
2020-09-22 03:58:51 +03:00
|
|
|
<a href="https://filecoin.io" css={STYLES_LINK} target="_blank">
|
2020-09-11 09:23:28 +03:00
|
|
|
Filecoin
|
|
|
|
</a>
|
2020-09-10 09:10:57 +03:00
|
|
|
<br />
|
2020-09-11 09:23:28 +03:00
|
|
|
<a href="https://ipfs.io" css={STYLES_LINK} target="_blank">
|
|
|
|
IPFS
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</h2>
|
2020-09-10 23:48:28 +03:00
|
|
|
</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
|
|
|
<div css={STYLES_SECTION_SLATE}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
|
|
|
<h1 css={STYLES_H1}>
|
2020-09-22 03:58:51 +03:00
|
|
|
A new home <span css={STYLES_HIGHLIGHT}>for your images, video, audio, ePUBs, and PDFs</span>
|
2020-09-11 09:23:28 +03:00
|
|
|
</h1>
|
|
|
|
<h3 css={STYLES_H3} style={{ marginBottom: 48 }}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT}>Easily upload </span>any kind of media file to your storage system.
|
2020-09-11 09:23:28 +03:00
|
|
|
<br />
|
|
|
|
</h3>
|
2020-09-13 00:21:24 +03:00
|
|
|
</div>
|
|
|
|
<div css={STYLES_FILETYPE}>
|
|
|
|
<div css={STYLES_FILETYPE_GRID_ITEM}>
|
|
|
|
<video
|
2020-09-20 03:16:35 +03:00
|
|
|
preload="none"
|
2020-09-13 00:21:24 +03:00
|
|
|
css={STYLES_VIDEO_SMALL}
|
2020-09-20 03:16:35 +03:00
|
|
|
data-src={ASSETS_SMALL[0].src}
|
2020-09-13 00:21:24 +03:00
|
|
|
autoPlay
|
|
|
|
loop
|
|
|
|
muted
|
|
|
|
type="video/mp4"
|
|
|
|
playsInline
|
|
|
|
style={{
|
2020-09-22 03:58:51 +03:00
|
|
|
backgroundImage: `url('${ASSETS_SMALL[0].backgroundImage}')`,
|
2020-09-13 00:21:24 +03:00
|
|
|
}}
|
|
|
|
/>
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
2020-09-13 00:21:24 +03:00
|
|
|
<div css={STYLES_FILETYPE_GRID_ITEM}>
|
|
|
|
<video
|
|
|
|
css={STYLES_VIDEO_SMALL}
|
2020-09-20 03:16:35 +03:00
|
|
|
data-src={ASSETS_SMALL[1].src}
|
2020-09-13 00:21:24 +03:00
|
|
|
autoPlay
|
|
|
|
loop
|
|
|
|
muted
|
|
|
|
type="video/mp4"
|
|
|
|
playsInline
|
|
|
|
style={{
|
2020-09-22 03:58:51 +03:00
|
|
|
backgroundImage: `url('${ASSETS_SMALL[1].backgroundImage}')`,
|
2020-09-13 00:21:24 +03:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_FILETYPE_GRID_ITEM}>
|
|
|
|
<video
|
|
|
|
css={STYLES_VIDEO_SMALL}
|
2020-09-20 03:16:35 +03:00
|
|
|
data-src={ASSETS_SMALL[2].src}
|
2020-09-13 00:21:24 +03:00
|
|
|
autoPlay
|
|
|
|
loop
|
|
|
|
muted
|
|
|
|
type="video/mp4"
|
|
|
|
playsInline
|
|
|
|
style={{
|
2020-09-22 03:58:51 +03:00
|
|
|
backgroundImage: `url('${ASSETS_SMALL[2].backgroundImage}')`,
|
2020-09-13 00:21:24 +03:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div css={STYLES_FILETYPE_GRID_ITEM}>
|
|
|
|
<video
|
|
|
|
css={STYLES_VIDEO_SMALL}
|
2020-09-20 03:16:35 +03:00
|
|
|
data-src={ASSETS_SMALL[3].src}
|
2020-09-13 00:21:24 +03:00
|
|
|
autoPlay
|
|
|
|
loop
|
|
|
|
muted
|
|
|
|
type="video/mp4"
|
|
|
|
playsInline
|
|
|
|
style={{
|
2020-09-22 03:58:51 +03:00
|
|
|
backgroundImage: `url('${ASSETS_SMALL[3].backgroundImage}')`,
|
2020-09-13 00:21:24 +03:00
|
|
|
}}
|
|
|
|
/>
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_SECTION_SLATE}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
|
|
|
<h1 css={STYLES_H1}>
|
|
|
|
Upload from <span css={STYLES_HIGHLIGHT}>anywhere</span>
|
|
|
|
</h1>
|
|
|
|
<h3 css={STYLES_H3}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT}>The Slate Chrome extension</span> lets you seamlessly upload files to your
|
|
|
|
slates from anywhere on the web.
|
2020-09-11 09:23:28 +03:00
|
|
|
</h3>
|
2020-09-22 03:25:05 +03:00
|
|
|
<div css={STYLES_ACTIONS_RIGHT}>
|
|
|
|
<div
|
|
|
|
css={STYLES_BUTTON_PRIMARY}
|
|
|
|
style={{ marginTop: 16 }}
|
|
|
|
onClick={() =>
|
|
|
|
window.open(
|
|
|
|
"https://chrome.google.com/webstore/detail/slate/gloembacbehhbfbkcfjmloikeeaebnoc?hl=en"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
>
|
|
|
|
Add Slate to Chrome
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<img
|
|
|
|
css={STYLES_MEDIA_LEFT}
|
|
|
|
src={ASSET_CHROME_EXTENSION}
|
|
|
|
alt="Slate Web Clipper being used in chrome dropdown menu"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_SECTION_SLATE}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
|
|
|
<h1 css={STYLES_H1}>
|
|
|
|
<span css={STYLES_HIGHLIGHT}>Organize and publish</span>
|
|
|
|
</h1>
|
|
|
|
<h3 css={STYLES_H3}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT}>A modular interface</span> for your files, giving you complete flexibility.
|
2020-09-11 09:23:28 +03:00
|
|
|
</h3>
|
2020-09-13 00:21:24 +03:00
|
|
|
</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
|
2020-09-14 03:48:47 +03:00
|
|
|
{ASSETS_MEDIUM.map((each) => {
|
2020-09-13 00:21:24 +03:00
|
|
|
return (
|
|
|
|
<React.Fragment key={each.title}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
2020-09-11 09:23:28 +03:00
|
|
|
<h3 css={STYLES_H3}>
|
|
|
|
<span css={STYLES_HIGHLIGHT}>{each.title}</span>
|
|
|
|
</h3>
|
2020-09-13 00:21:24 +03:00
|
|
|
</div>
|
|
|
|
<video
|
|
|
|
css={STYLES_VIDEO_MEDIUM}
|
|
|
|
autoPlay
|
|
|
|
loop
|
|
|
|
muted
|
2020-09-20 03:16:35 +03:00
|
|
|
data-src={each.src}
|
2020-09-13 00:21:24 +03:00
|
|
|
type="video/mp4"
|
|
|
|
playsInline
|
|
|
|
style={{
|
2020-09-14 03:48:47 +03:00
|
|
|
backgroundImage: `url('${each.backgroundImage}')`,
|
2020-09-13 00:21:24 +03:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</React.Fragment>
|
|
|
|
);
|
|
|
|
})}
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
2020-09-10 09:10:57 +03:00
|
|
|
|
2020-09-11 09:23:28 +03:00
|
|
|
<div css={STYLES_SECTION_SLATE}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
|
|
|
<h1 css={STYLES_H1}>
|
|
|
|
<span css={STYLES_HIGHLIGHT}>Collaborate and connect</span>
|
|
|
|
</h1>
|
|
|
|
<h3 css={STYLES_H3}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT}>A file sharing network</span> built on top of a storage system making it
|
|
|
|
possible to connect with other people on the Filecoin network.
|
2020-09-11 09:23:28 +03:00
|
|
|
</h3>
|
2020-09-10 23:48:28 +03:00
|
|
|
</div>
|
2020-09-10 09:10:57 +03:00
|
|
|
|
2020-09-11 09:23:28 +03:00
|
|
|
<video
|
|
|
|
css={STYLES_VIDEO_BIG}
|
2020-09-20 03:16:35 +03:00
|
|
|
data-src={ASSET_HERO_COLLABORATE.src}
|
2020-09-11 09:23:28 +03:00
|
|
|
autoPlay
|
|
|
|
loop
|
|
|
|
muted
|
|
|
|
type="video/mp4"
|
|
|
|
playsInline
|
|
|
|
style={{
|
2020-09-22 03:58:51 +03:00
|
|
|
backgroundImage: `url('${ASSET_HERO_COLLABORATE.backgroundImage}')`,
|
2020-09-11 09:23:28 +03:00
|
|
|
}}
|
|
|
|
/>
|
|
|
|
</div>
|
2020-09-06 23:26:08 +03:00
|
|
|
|
2020-09-11 09:23:28 +03:00
|
|
|
<div css={STYLES_SECTION_SLATE}>
|
|
|
|
<div css={STYLES_TEXT_BLOCK}>
|
|
|
|
<h1 css={STYLES_H1}>
|
2020-09-25 07:02:08 +03:00
|
|
|
Built on <span css={STYLES_HIGHLIGHT}>trust and privacy</span>
|
2020-09-11 09:23:28 +03:00
|
|
|
</h1>
|
|
|
|
<h3 css={STYLES_H3}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT}>Slate is built on Filecoin and IPFS</span> — technologies built around
|
|
|
|
ownership and transparency for the future of the web.
|
2020-09-11 09:23:28 +03:00
|
|
|
</h3>
|
2020-09-22 03:58:51 +03:00
|
|
|
<a css={STYLES_LINK_WHITE} href="https://filecoin.io" target="_blank">
|
2020-09-11 09:23:28 +03:00
|
|
|
Learn more about Filecoin ->
|
|
|
|
</a>
|
2020-09-10 23:48:28 +03:00
|
|
|
</div>
|
2020-09-10 09:10:57 +03:00
|
|
|
|
2020-09-11 09:23:28 +03:00
|
|
|
<div>
|
|
|
|
<img css={STYLES_MEDIA_RIGHT_OVERLAP} src={ASSET_SLATE_CUBE} />
|
2020-09-10 23:48:28 +03:00
|
|
|
</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
2020-09-10 09:10:57 +03:00
|
|
|
|
2020-09-11 09:23:28 +03:00
|
|
|
<div css={STYLES_SECTION_SLATE_WALL}>
|
|
|
|
<div css={STYLES_SLATE_CARD_CTA}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<a css={STYLES_SLATE_CARD_PARAGRAPH} href="https://slate.host/_" target="_blank">
|
2020-09-11 09:23:28 +03:00
|
|
|
<div css={STYLES_SLATE_CARD_TEXT}>
|
|
|
|
<h1 css={STYLES_SLATE_CARD_CTA_TITLE}>
|
|
|
|
Join us <br />
|
2020-09-25 07:02:08 +03:00
|
|
|
<span css={STYLES_HIGHLIGHT_BLACK}>in our open network</span>
|
2020-09-11 09:23:28 +03:00
|
|
|
</h1>
|
|
|
|
<div css={STYLES_SLATE_CARD_EXPLAINER}>
|
2020-09-22 03:58:51 +03:00
|
|
|
<div css={STYLES_SLATE_CARD_CTA_PARAGRAPH}>Create your first slate</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
<div css={STYLES_SLATE_CARD_CTA_PARAGRAPH}>-></div>
|
2020-08-19 21:17:12 +03:00
|
|
|
</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div css={STYLES_SLATE_CARD_GROUP}>
|
2020-09-14 03:48:47 +03:00
|
|
|
{USER_SLATES.map((each) => (
|
2020-09-11 09:23:28 +03:00
|
|
|
<SlateCardElement
|
|
|
|
key={each.name}
|
|
|
|
preview={each.preview}
|
|
|
|
url={each.url}
|
|
|
|
name={each.name}
|
|
|
|
username={each.username}
|
|
|
|
/>
|
|
|
|
))}
|
2020-09-10 23:48:28 +03:00
|
|
|
</div>
|
2020-09-09 17:35:28 +03:00
|
|
|
</div>
|
2020-07-16 08:48:51 +03:00
|
|
|
</div>
|
2020-09-11 09:23:28 +03:00
|
|
|
<WebsitePrototypeFooter />
|
2020-07-16 08:48:51 +03:00
|
|
|
</WebsitePrototypeWrapper>
|
2020-02-19 09:30:47 +03:00
|
|
|
);
|
|
|
|
}
|
2020-08-03 06:22:47 +03:00
|
|
|
}
|