cleaned with prettify

This commit is contained in:
William Felker 2020-08-22 07:37:00 +08:00
parent ef4eff8a4b
commit 4383f036ee
3 changed files with 269 additions and 147 deletions

View File

@ -1,4 +1,4 @@
import * as React from "react"; import * as React from "react";
import * as Constants from "~/common/constants"; import * as Constants from "~/common/constants";
import * as Actions from "~/common/actions"; import * as Actions from "~/common/actions";
import * as System from "~/components/system"; import * as System from "~/components/system";
@ -11,30 +11,30 @@ import WebsitePrototypeHeader from "~/components/core/WebsitePrototypeHeader";
import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter"; import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter";
const STYLES_ROOT = css` const STYLES_ROOT = css`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
h1{ h1 {
font-size: 4.768rem; font-size: 4.768rem;
padding: 0px 0px 32px 0px; padding: 0px 0px 32px 0px;
width: 100%; width: 100%;
} }
h2{ h2 {
font-size: 1.953rem; font-size: 1.953rem;
width: 48%; width: 48%;
} }
p{ p {
font-size: 1rem; font-size: 1rem;
color: ${Constants.system.black}; color: ${Constants.system.black};
} }
@media (max-width: ${Constants.sizes.mobile}px) { @media (max-width: ${Constants.sizes.mobile}px) {
h1{ h1 {
font-size: 2.441rem; font-size: 2.441rem;
} }
h2{ h2 {
font-size: 1.25rem; font-size: 1.25rem;
} }
p{ p {
font-size: 0.78rem; font-size: 0.78rem;
} }
} }
@ -51,7 +51,6 @@ const STYLES_MIDDLE = css`
padding: 24px; padding: 24px;
`; `;
export const getServerSideProps = async (context) => { export const getServerSideProps = async (context) => {
return { return {
props: { ...context.query }, props: { ...context.query },
@ -66,63 +65,77 @@ export default class IndexPage extends React.Component {
render() { render() {
const title = `Slate`; const title = `Slate`;
const description = "The place for all of your assets. Powered by Textile and Filecoin."; const description =
"The place for all of your assets. Powered by Textile and Filecoin.";
const url = "https://slate.host/community"; const url = "https://slate.host/community";
return ( return (
<WebsitePrototypeWrapper title={title} description={description} url={url}> <WebsitePrototypeWrapper
title={title}
description={description}
url={url}
>
<div css={STYLES_ROOT}> <div css={STYLES_ROOT}>
<WebsitePrototypeHeader /> <WebsitePrototypeHeader />
<section> <section>
<System.H1>Open source</System.H1> <System.H1>Open source</System.H1>
<System.P>Slate is designed and built by a growing community of hackers, artists, and creatives on the web. </System.P> <System.P>
Slate is designed and built by a growing community of hackers,
artists, and creatives on the web.{" "}
</System.P>
</section> </section>
<section> <section>
<System.H1>Contribute</System.H1> <System.H1>Contribute</System.H1>
<System.P>Get involved with the project and contribute.</System.P> <System.P>Get involved with the project and contribute.</System.P>
<a> <a>
<button>Contribute on Github</button> <button>Contribute on Github</button>
</a> </a>
<img src="" alt="" /> <img src="" alt="" />
<div></div> <System.P>
<System.P>Maybe put here an interesting quote about collaboration? Maybe put here an interesting quote about collaboration?
<span>Albert Einstein</span></System.P> <span>Albert Einstein</span>
</System.P>
</section> </section>
<section> <section>
<System.H1>Contact</System.H1> <System.H1>Contact</System.H1>
<System.P>Reach out to any of the core contributors, reach us on Twitter, or join our Slack.</System.P> <System.P>
<a> Reach out to any of the core contributors, reach us on Twitter, or
join our Slack.
</System.P>
<a>
<button>Join Slack Discussions</button> <button>Join Slack Discussions</button>
</a> </a>
<a> <a>
<button>Twitter @_slate</button> <button>Twitter @_slate</button>
</a> </a>
</section> </section>
<section> <section>
<System.H1>Integrate</System.H1> <System.H1>Integrate</System.H1>
<System.P>Explore our API and SDK and build on top of Slate</System.P> <System.P>
Explore our API and SDK and build on top of Slate
</System.P>
<CodeBlock>npm install --save slate-react-system</CodeBlock> <CodeBlock>npm install --save slate-react-system</CodeBlock>
<img src="" alt="" /> <img src="" alt="" />
</section> </section>
<section> <section>
<System.H1>Design System</System.H1> <System.H1>Design System</System.H1>
<System.P>Check out our open source design system. You can use these components, experiences, and constants in your own React projects. First, install the npm module: </System.P> <System.P>
Check out our open source design system. You can use these
components, experiences, and constants in your own React projects.
First, install the npm module:{" "}
</System.P>
<CodeBlock>npm install --save slate-react-system</CodeBlock> <CodeBlock>npm install --save slate-react-system</CodeBlock>
<img src="" alt="" /> <img src="" alt="" />
</section> </section>
<WebsitePrototypeFooter /> <WebsitePrototypeFooter />
</div> </div>
</WebsitePrototypeWrapper> </WebsitePrototypeWrapper>
); );
} }
} }

View File

@ -10,33 +10,33 @@ import WebsitePrototypeHeader from "~/components/core/WebsitePrototypeHeader";
import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter"; import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter";
const STYLES_ROOT = css` const STYLES_ROOT = css`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
h1{ h1 {
font-size: 4.768rem; font-size: 4.768rem;
padding: 0px 0px 32px 0px; padding: 0px 0px 32px 0px;
width: 100%; width: 100%;
}
h2{
font-size: 1.953rem;
width: 48%;
}
p{
font-size: 1rem;
color: ${Constants.system.black};
}
@media (max-width: ${Constants.sizes.mobile}px) {
h1{
font-size: 2.441rem;
} }
h2{ h2 {
font-size: 1.25rem; font-size: 1.953rem;
width: 48%;
} }
p{ p {
font-size: 0.78rem; 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_MIDDLE = css` const STYLES_MIDDLE = css`
@ -50,7 +50,6 @@ const STYLES_MIDDLE = css`
padding: 24px; padding: 24px;
`; `;
export const getServerSideProps = async (context) => { export const getServerSideProps = async (context) => {
return { return {
props: { ...context.query }, props: { ...context.query },
@ -65,44 +64,58 @@ export default class IndexPage extends React.Component {
render() { render() {
const title = `Slate`; const title = `Slate`;
const description = "The place for all of your assets. Powered by Textile and Filecoin."; const description =
"The place for all of your assets. Powered by Textile and Filecoin.";
const url = "https://slate.host/download"; const url = "https://slate.host/download";
return ( return (
<WebsitePrototypeWrapper title={title} description={description} url={url}> <WebsitePrototypeWrapper
title={title}
description={description}
url={url}
>
<div css={STYLES_ROOT}> <div css={STYLES_ROOT}>
<WebsitePrototypeHeader /> <WebsitePrototypeHeader />
<section> <section>
<System.H1>Slate client for Mac, Windows and Linux</System.H1> <System.H1>Slate client for Mac, Windows and Linux</System.H1>
<System.P>Local folder and offline client for seamless filesharing between your machine and the network</System.P> <System.P>
<a> Local folder and offline client for seamless filesharing between
<button>Download Slate for <span>Mac</span></button> your machine and the network
</System.P>
<a>
<button>
Download Slate for <span>Mac</span>
</button>
</a> </a>
<System.P>Also avaible for <a>Windows</a> and <a>Linux</a></System.P> <System.P>
Also avaible for <a>Windows</a> and <a>Linux</a>
</System.P>
<img src="" alt="" /> <img src="" alt="" />
</section> </section>
<section> <section>
<System.H1>Slate Chrome Extensions</System.H1> <System.H1>Slate Chrome Extensions</System.H1>
<System.P>Take any image on the web and save it to Slate right from your browser tab</System.P> <System.P>
<a> Take any image on the web and save it to Slate right from your
browser tab
</System.P>
<a>
<button>Get Chrome Extension</button> <button>Get Chrome Extension</button>
</a> </a>
<img src="" alt="" /> <img src="" alt="" />
</section> </section>
<section> <section>
<System.H1>Changelog</System.H1> <System.H1>Changelog</System.H1>
<System.P>List of releases</System.P> <System.P>List of releases</System.P>
<img src="" alt="" /> <img src="" alt="" />
</section> </section>
<WebsitePrototypeFooter /> <WebsitePrototypeFooter />
</div> </div>
</WebsitePrototypeWrapper> </WebsitePrototypeWrapper>
); );
} }
} }

View File

@ -11,30 +11,30 @@ import WebsitePrototypeHeader from "~/components/core/WebsitePrototypeHeader";
import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter"; import WebsitePrototypeFooter from "~/components/core/NewWebsitePrototypeFooter";
const STYLES_ROOT = css` const STYLES_ROOT = css`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
h1{ h1 {
font-size: 4.768rem; font-size: 4.768rem;
padding: 0px 0px 32px 0px; padding: 0px 0px 32px 0px;
width: 100%; width: 100%;
} }
h2{ h2 {
font-size: 1.953rem; font-size: 1.953rem;
width: 48%; width: 48%;
} }
p{ p {
font-size: 1rem; font-size: 1rem;
color: ${Constants.system.black}; color: ${Constants.system.black};
} }
@media (max-width: ${Constants.sizes.mobile}px) { @media (max-width: ${Constants.sizes.mobile}px) {
h1{ h1 {
font-size: 2.441rem; font-size: 2.441rem;
} }
h2{ h2 {
font-size: 1.25rem; font-size: 1.25rem;
} }
p{ p {
font-size: 0.78rem; font-size: 0.78rem;
} }
} }
@ -51,7 +51,6 @@ const STYLES_MIDDLE = css`
padding: 24px; padding: 24px;
`; `;
export const getServerSideProps = async (context) => { export const getServerSideProps = async (context) => {
return { return {
props: { ...context.query }, props: { ...context.query },
@ -66,77 +65,174 @@ export default class IndexPage extends React.Component {
render() { render() {
const title = `Slate`; const title = `Slate`;
const description = "The place for all of your assets. Powered by Textile and Filecoin."; const description =
"The place for all of your assets. Powered by Textile and Filecoin.";
const url = "https://slate.host/privacy"; const url = "https://slate.host/privacy";
return ( return (
<WebsitePrototypeWrapper title={title} description={description} url={url}> <WebsitePrototypeWrapper
title={title}
description={description}
url={url}
>
<div css={STYLES_ROOT}> <div css={STYLES_ROOT}>
<WebsitePrototypeHeader /> <WebsitePrototypeHeader />
<section> <section>
<System.H1>Slate Guidelines and Terms of Service</System.H1> <System.H1>Slate Guidelines and Terms of Service</System.H1>
<System.P>Slate is designed and built by a growing community of hackers, artists, and creatives on the web. </System.P> <System.P>
<System.P>We believe that our mission is best served in an environment that is friendly, safe, and accepting; free from intimidation or harassment. Towards this end, certain behaviors and practices will not be tolerated.</System.P> Slate is designed and built by a growing community of hackers,
<System.Ul> artists, and creatives on the web.{" "}
<System.Li>Be respectful.</System.Li> </System.P>
<System.Li>We're here to help: abuse@filecoin.io</System.Li> <System.P>
<System.Li>Abusive behavior is never tolerated.</System.Li> We believe that our mission is best served in an environment that
<System.Li>Violations of this code may result in swift and permanent expulsion from the Slate community.</System.Li> is friendly, safe, and accepting; free from intimidation or
<System.Li>"Too long, didn't read" is not a valid excuse for not knowing what is in this document.</System.Li> harassment. Towards this end, certain behaviors and practices will
</System.Ul> not be tolerated.
<System.P>We expect all members of the Slate community to abide by this Code of Conduct at all times in all Slate community venues, online and in person, and in one-on-one </System.P>
communications pertaining to Slate affairs.</System.P> <System.Ul>
<System.P>This policy covers the usage of Filecoin public infrastructure, as well as other Filecoin websites, Filecoin related events, and any other services offered by or on behalf of the Filecoin community. It also applies to behavior in the context of the Filecoin Open Source project communities, including but not limited to public GitHub repositories, IRC channels, social media, mailing lists, and public events.</System.P> <System.Li>Be respectful.</System.Li>
<System.Li>We're here to help: abuse@filecoin.io</System.Li>
<System.P>The definitions of various subjective terms such as "discriminatory", "hateful", or "confusing" will be decided at the sole discretion of the Filecoin abuse team.</System.P> <System.Li>Abusive behavior is never tolerated.</System.Li>
<System.Li>
<System.H2>Friendly Harassment-Free Space</System.H2>Friendly Harassment-Free Space Violations of this code may result in swift and permanent
<System.P>We are committed to providing a friendly, safe and welcoming environment for all, regardless of gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics.We ask that you please respect that people have differences of opinion regarding technical choices, and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a single right answer. A difference of technology preferences is not a license to be rude. expulsion from the Slate community.
</System.Li>
Any spamming, trolling, flaming, baiting, or other attention-stealing behavior is not welcome, and will not be tolerated. Harassing other users is never tolerated, whether via public or private media. Avoid using offensive or harassing nicknames, or other identifiers that might detract from a friendly, safe, and welcoming environment for all. <System.Li>
"Too long, didn't read" is not a valid excuse for not knowing
Harassment includes, but is not limited to: harmful or prejudicial verbal or written comments related to gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics; inappropriate use of nudity, sexual images, and/or sexually explicit language in public spaces; threats of physical or non-physical harm; deliberate intimidation, stalking or following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention. what is in this document.
</System.Li>
Media shared through public infrastructure run by the Filecoin team must not contain illegal or infringing content. You should only publish content via Filecoin public infrastructure if you have the right to do so. This include complying with all software license agreements or other intellectual property restrictions. You will be solely responsible for any violation of laws or others' intellectual property rights.</System.P> </System.Ul>
<System.P>
<System.H2>Avoid Marketing or Soliciting</System.H2> We expect all members of the Slate community to abide by this Code
<System.P>You are welcome to post endorsements of tools, products or services that you personally find useful, but please refrain from blatant advertising, marketing or any kind of spam. Selling commercial services or fundraising is not allowed.</System.P> of Conduct at all times in all Slate community venues, online and
in person, and in one-on-one communications pertaining to Slate
affairs.
<System.H2>Reporting Violations of this Code of Conduct</System.H2> </System.P>
<System.P>If you believe someone is harassing you or has otherwise violated this Code of Conduct, please contact us at abuse@filecoin.io to send us an abuse report. If this is the initial report of a problem, please include as much detail as possible. It is easiest for us to address issues when we have more context.</System.P> <System.P>
This policy covers the usage of Filecoin public infrastructure, as
well as other Filecoin websites, Filecoin related events, and any
<System.H2>Copyright Violations</System.H2> other services offered by or on behalf of the Filecoin community.
<System.P>We respect the intellectual property of others and ask that you do too. If you believe any content or other materials available through public Filecoin infrastructure violates a copyright held by you and you would like to submit a notice pursuant to the Digital Millennium Copyright Act or other similar international law, you can submit a notice to our agent for service of notice to: abuse@filecoin.io. Please make sure your notice meets the Digital Millennium Copyright Act requirements.</System.P> It also applies to behavior in the context of the Filecoin Open
Source project communities, including but not limited to public
GitHub repositories, IRC channels, social media, mailing lists,
<System.H2>Consequences</System.H2> and public events.
<System.P>All content published to public Filecoin infrastructure is hosted at the sole discretion of the Filecoin team. Unacceptable behavior from any community member will not be tolerated. Anyone asked to stop unacceptable behavior is expected to comply immediately. If a community member engages in unacceptable behavior, the Filecoin team may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event or service).</System.P> </System.P>
<System.P>
<System.H2>Addressing Grievances</System.H2> The definitions of various subjective terms such as
<System.P>Please contact abuse@filecoin.io if you need to report a problem or address a grievance related to an abuse report. If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should contact abuse@filecoin.io. We will do our best to ensure that your grievance is handled appropriately. In general, we will choose the course of action that we judge as being most in the interest of fostering a safe and friendly community.</System.P> "discriminatory", "hateful", or "confusing" will be decided at the
sole discretion of the Filecoin abuse team.
<System.H2>Contact Info</System.H2> </System.P>
<System.P>Please contact abuse@filecoin.io if you need to report a problem or address a grievance related to an abuse report. You are also encouraged to contact us if you are curious about something that might be "on the line" between appropriate and inappropriate content. We are happy to provide guidance to help you be a successful part of our community. <System.H2>Friendly Harassment-Free Space</System.H2>Friendly
</System.P> Harassment-Free Space
<System.P>
We are committed to providing a friendly, safe and welcoming
<System.H2>Changes</System.H2> environment for all, regardless of gender identity, sexual
<System.P>This is a living document and may be updated from time to time. Please refer to the git history for this document to view the changes. orientation, disability, ethnicity, religion, age, physical
</System.P> appearance, body size, race, or similar personal
characteristics.We ask that you please respect that people have
<System.H2>Credit and License</System.H2> differences of opinion regarding technical choices, and that every
<System.P>This Code of Conduct is based on the [npm Code of Conduct](https://www.npmjs.com/policies/conduct). This document may be reused under a [Creative Commons Attribution-ShareAlike License](http://creativecommons.org/licenses/by-sa/4.0/). design or implementation choice carries a trade-off and numerous
</System.P> costs. There is seldom a single right answer. A difference of
technology preferences is not a license to be rude. Any spamming,
trolling, flaming, baiting, or other attention-stealing behavior
is not welcome, and will not be tolerated. Harassing other users
is never tolerated, whether via public or private media. Avoid
using offensive or harassing nicknames, or other identifiers that
might detract from a friendly, safe, and welcoming environment for
all. Harassment includes, but is not limited to: harmful or
prejudicial verbal or written comments related to gender identity,
sexual orientation, disability, ethnicity, religion, age, physical
appearance, body size, race, or similar personal characteristics;
inappropriate use of nudity, sexual images, and/or sexually
explicit language in public spaces; threats of physical or
non-physical harm; deliberate intimidation, stalking or following;
harassing photography or recording; sustained disruption of talks
or other events; inappropriate physical contact; and unwelcome
sexual attention. Media shared through public infrastructure run
by the Filecoin team must not contain illegal or infringing
content. You should only publish content via Filecoin public
infrastructure if you have the right to do so. This include
complying with all software license agreements or other
intellectual property restrictions. You will be solely responsible
for any violation of laws or others' intellectual property rights.
</System.P>
<System.H2>Avoid Marketing or Soliciting</System.H2>
<System.P>
You are welcome to post endorsements of tools, products or
services that you personally find useful, but please refrain from
blatant advertising, marketing or any kind of spam. Selling
commercial services or fundraising is not allowed.
</System.P>
<System.H2>Reporting Violations of this Code of Conduct</System.H2>
<System.P>
If you believe someone is harassing you or has otherwise violated
this Code of Conduct, please contact us at abuse@filecoin.io to
send us an abuse report. If this is the initial report of a
problem, please include as much detail as possible. It is easiest
for us to address issues when we have more context.
</System.P>
<System.H2>Copyright Violations</System.H2>
<System.P>
We respect the intellectual property of others and ask that you do
too. If you believe any content or other materials available
through public Filecoin infrastructure violates a copyright held
by you and you would like to submit a notice pursuant to the
Digital Millennium Copyright Act or other similar international
law, you can submit a notice to our agent for service of notice
to: abuse@filecoin.io. Please make sure your notice meets the
Digital Millennium Copyright Act requirements.
</System.P>
<System.H2>Consequences</System.H2>
<System.P>
All content published to public Filecoin infrastructure is hosted
at the sole discretion of the Filecoin team. Unacceptable behavior
from any community member will not be tolerated. Anyone asked to
stop unacceptable behavior is expected to comply immediately. If a
community member engages in unacceptable behavior, the Filecoin
team may take any action they deem appropriate, up to and
including a temporary ban or permanent expulsion from the
community without warning (and without refund in the case of a
paid event or service).
</System.P>
<System.H2>Addressing Grievances</System.H2>
<System.P>
Please contact abuse@filecoin.io if you need to report a problem
or address a grievance related to an abuse report. If you feel you
have been falsely or unfairly accused of violating this Code of
Conduct, you should contact abuse@filecoin.io. We will do our best
to ensure that your grievance is handled appropriately. In
general, we will choose the course of action that we judge as
being most in the interest of fostering a safe and friendly
community.
</System.P>
<System.H2>Contact Info</System.H2>
<System.P>
Please contact abuse@filecoin.io if you need to report a problem
or address a grievance related to an abuse report. You are also
encouraged to contact us if you are curious about something that
might be "on the line" between appropriate and inappropriate
content. We are happy to provide guidance to help you be a
successful part of our community.
</System.P>
<System.H2>Changes</System.H2>
<System.P>
This is a living document and may be updated from time to time.
Please refer to the git history for this document to view the
changes.
</System.P>
<System.H2>Credit and License</System.H2>
<System.P>
This Code of Conduct is based on the [npm Code of
Conduct](https://www.npmjs.com/policies/conduct). This document
may be reused under a [Creative Commons Attribution-ShareAlike
License](http://creativecommons.org/licenses/by-sa/4.0/).
</System.P>
</section> </section>
<WebsitePrototypeFooter /> <WebsitePrototypeFooter />
</div> </div>
</WebsitePrototypeWrapper> </WebsitePrototypeWrapper>
); );
} }
} }