You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/pages/about.js

123 lines
3.9 KiB
JavaScript

import React from 'react'
import Page from '../components/Page'
export default () => (
<Page>
<div className="about">
<div className="mb4">
<h2>What does this do?</h2>
<p>Carbon lets you create and share beautiful images of your source code</p>
7 years ago
<p>
You know all of those code screenshots you see on Twitter? Although the code&apos;s
usually impressive, we thought there was room for improvement in the aesthetic department.
So what are you waiting for? Go try it out and impress all your developer and designer
friends.{' '}
<span role="img" aria-label="Palette">
🎨
</span>
7 years ago
</p>
</div>
<div className="mb4">
<h2>Who uses it?</h2>
<p>
Carbon is used by thousands of developers daily, including experts at:
<div className="mt2">
<img
width="632px"
src="/static/open-source-companies.svg"
alt="Companies that trust Carbon: Google, Airbnb, GitHub, Coinbase, and Microsoft"
/>
</div>
</p>
</div>
<div className="mb4">
<h2>How do I use it?</h2>
<h4 className="mb0 mt3">Import</h4>
<p className="mb1 mt2">There are a few different ways to import code into Carbon:</p>
<ul className="mt0 mb3">
<li>Drop a file into the editor</li>
7 years ago
<li>
Append a GitHub gist id to the url (
<a className="link" href="/0db00e81d5416c339181e59481c74b59">
7 years ago
example
</a>
)
7 years ago
</li>
<li>Paste your code directly</li>
</ul>
<h4 className="mb0 mt4">Customization</h4>
7 years ago
<p className="mt2 mb3">
Once you&apos;ve got all of your code into Carbon, you can customize your image by
changing the syntax theme, background color/image, window theme, or padding.
</p>
<p className="mt2 mb3">
You can even drop an image file onto the editor to set the background to that image. Give
it a try!
7 years ago
</p>
<h4 className="mb0 mt4">Export/Sharing</h4>
<p className="mt2 mb3">
After you&apos;ve customized your image you can Tweet a link to the image, or save it
directly.
7 years ago
</p>
<p className="mt2 mb3">
If you use the &apos;Tweet&apos; button, Carbon will automatically make your image
accessible. However, if you want to manually tweet your carbon image, please check out (
<a className="link" href="https://help.twitter.com/en/using-twitter/picture-descriptions">
how to make your Twitter images accessible
</a>
).
</p>
<p className="mt2 mb3">
If you include a Carbon image in a post, the source code will be invisible to assistive
technology — it will not be possible to enlarge or copy it, etc. Please, think about
adding another element with the source code as text, like (
<a
className="link"
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details"
>
an HTML Details Element
</a>
) below the image.
</p>
</div>
<div>
<h2>I want to make this better.</h2>
7 years ago
<p>
<a className="link" href="https://github.com/carbon-app/carbon#contribute">
Contributors welcome!
7 years ago
</a>
7 years ago
</p>
</div>
</div>
<style jsx>
{`
.about {
font-size: 16px;
}
h2 {
font-weight: bold;
font-size: 32px;
}
p,
li {
color: #fff;
}
span {
color: #fff;
}
ul {
list-style-position: inside;
list-style-type: circle;
}
.about {
max-width: 632px;
}
`}
</style>
</Page>
)