import * as React from "react"; import * as Constants from "~/common/constants"; import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper"; import WebsitePrototypeHeader from "~/components/core/NewWebsitePrototypeHeader"; import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter"; import { css } from "@emotion/react"; const USER_SLATES = [ { name: "Urban gardens", url: "https://slate.host/gndclouds/urban-gardens", username: "gndclouds", preview: "https://slate.textile.io/ipfs/bafybeiff7y4kz4e2z4nfso4nsgdbkfsyroa62jvvldoxafuaf34m7lticu", }, { name: "Shapes and Letters", url: "https://slate.host/haris/shapes-and-letters", username: "haris", preview: "https://slate.textile.io/ipfs/bafybeifgxtl7mq5djnorxedzi35hkizjmbjvdy3nnoitd3xvdnqpmruxbm", }, { name: "Loom", url: "https://slate.host/tara/loom", username: "tara", preview: "https://slate.textile.io/ipfs/bafybeifl5xzy4vjctrsr3jywdlv5ceq3hpaadhcii2ekjx2gljyagveqna", }, { name: "Brand", url: "https://slate.host/slate/brand", username: "slate", preview: "https://slate.textile.io/ipfs/bafybeiaerbu2nivrgncqtwgwom27caji25netswvjbo6tcmbka47ucmupa", }, { name: "Start your first slate", url: "/_", username: "", preview: "", style: { backgroundColor: Constants.system.newBlue, color: Constants.system.white }, }, { name: "Montreal underground", url: "https://slate.host/tcosta/montreal-underground", username: "tcosta", preview: "https://slate.textile.io/ipfs/bafybeieblkyt6d7wg4xmltshvxm6w7tz4c3zjpjuu4yfhiak36debqccda", }, { name: "Monet", url: "https://slate.host/slate/monet", username: "slate", preview: "https://slate.textile.io/ipfs/bafkreieb4yfiamtipapmhoihl547lxeod2vfku67dimrhmab5tcglr5bli", }, { name: "Books", url: "https://slate.host/haris/books", username: "haris", preview: "https://slate.textile.io/ipfs/bafkreihe7ismqfyytekj6yvbv6mpbc5de3gozk6n7a47smodbcsnrhbpri", }, { name: "Papers", url: "https://slate.host/slate/papers", username: "slate", preview: "https://slate.textile.io/ipfs/bafkreif7l2vxkvdyrydcjwjjrrmqq73id3tdrdkf3z54tp2fotc75wkdwm", }, ]; const STYLES_ROOT = css` max-width: 1440px; margin: -88px auto 0 auto; background-color: ${Constants.system.wallLight}; `; 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: 16px; @media (max-width: ${Constants.sizes.tablet}px) { font-size: ${Constants.typescale.lvl3}; } `; 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: 64%; @media (max-width: ${Constants.sizes.tablet}px) { width: 100%; } `; const STYLES_TEXT_BLOCK = css` display: block; width: 50%; @media (max-width: ${Constants.sizes.mobile}px) { width: 100%; } `; const STYLES_TEXT_BLOCK_CENTER = css` display: block; margin: 0 auto; width: 50%; text-align: center; @media (max-width: ${Constants.sizes.mobile}px) { margin-top: 48px; width: 100%; } `; const STYLES_SECTION_WRAPPER = css` width: 100%; height: 100%; padding: 120px 88px; display: flex; align-items: flex-start; @media (max-width: ${Constants.sizes.tablet}px) { padding: 88px; } @media (max-width: ${Constants.sizes.mobile}px) { padding: 48px 24px; display: block; } `; const STYLES_SECTIONCTA_WRAPPER = css` padding: 88px 88px 240px 88px; width: 100%; height: 100%; @media (max-width: ${Constants.sizes.tablet}px) { padding: 48px 24px 160px 24px; } @media (max-width: ${Constants.sizes.mobile}px) { padding: 0 24px 88px 24px; } `; const STYLES_LINK = css` color: ${Constants.system.newBlue}; text-decoration: none; transition: 200ms ease none; font-family: ${Constants.font.medium}; font-weight: 400; font-size: ${Constants.typescale.lvl1}; letter-spacing: -0.011rem; line-height: 1.5; margin: 4px 0 0 0; :hover { opacity: 0.9; } `; const STYLES_LIST = css` list-style-type: none; font-family: ${Constants.font.medium}; 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}; padding: 0; `; const STYLES_HIGHLIGHT_GREEN = css` color: ${Constants.system.newGreen}; `; const STYLES_HIGHLIGHT_YELLOW = css` color: ${Constants.system.newYellow}; `; const STYLES_HIGHLIGHT_BLUE = css` color: ${Constants.system.newBlue}; `; const STYLES_HIGHLIGHT_RED = css` color: ${Constants.system.newRed}; `; const STYLES_HR_GREEN = css` border: 0; border-top: 1px solid ${Constants.system.newGreen}; @media (max-width: ${Constants.sizes.mobile}px) { margin-left: 0; width: 10%; border-top: 2px solid ${Constants.system.newGreen}; } `; const STYLES_HR_YELLOW = css` border: 0; border-top: 1px solid ${Constants.system.newYellow}; @media (max-width: ${Constants.sizes.mobile}px) { margin-left: 0; width: 10%; border-top: 2px solid ${Constants.system.newYellow}; } `; const STYLES_IMG = css` width: 100%; margin: 48px -88px 0 0; overflow: hidden; box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.2); `; const STYLES_SLATE_CARD_GROUP = css` width: 100%; display: flex; flex-wrap: wrap; margin-top: 48px; `; const STYLES_SLATE_CARD = css` width: calc(33.33% - 1px); height: 20vh; margin: -1px -1px 0 0; transition: 200ms ease box-shadow; border: 1px solid ${Constants.system.darkGray}; :hover { transition: 200ms ease box-shadow; box-shadow: 0px 10px 40px 20px rgba(0, 0, 0, 0.1); } `; const STYLES_CLEAN_SLATE = css` width: calc(33.33% - 1px); margin: 0 auto; height: 20vh; transition: 200ms ease box-shadow; border: 1px solid ${Constants.system.darkGray}; background-color: ${Constants.system.newBlue}; :hover { transition: 200ms ease box-shadow; box-shadow: 0px 10px 40px 20px rgba(0, 0, 0, 0.1); } `; const STYLES_SLATE_CARD_LINK = css` text-decoration: none; `; const STYLES_SLATE_CARD_TEXT = css` display: flex; justify-content: space-between; padding: 8px 16px; width: 100%; height: 100%; @media (max-width: ${Constants.sizes.mobile}px) { flex-direction: column; justify-content: space-between; } `; const STYLES_CARDP = 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}; @media (max-width: ${Constants.sizes.tablet}px) { font-size: ${Constants.typescale.lvl0}; } `; const SlateCard = (props) => { return (
); }; export const getServerSideProps = async (context) => { return { props: { ...context.query }, }; }; export default class IndexPage extends React.Component { render() { const title = `Slate`; const description = "Welcome to the future of file sharing. Powered by Textile, Filecoin, and IPFS."; const url = "https://slate.host"; return (for a new file-sharing experience that makes it possible for people to collect, organize, and link files together.
Slate is the new home for information that matters to you.
A modular interface for your files, giving you complete flexibility.
Information is only meaningful when it's shared. Slate is fundamentally a file sharing network built on top of a storage system, making it possible to connect with other people.