Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from segmentio:master #47

Merged
merged 1 commit into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add link to Evergreen's Figma file from designer resources page (segm…
  • Loading branch information
akleiner2 committed Sep 22, 2020
commit 5c2b4dbe294f58fb10d06b20ec7c55f565ddb83a
25 changes: 22 additions & 3 deletions docs/src/components/DesignersHero.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react'
import { withPrefix } from 'gatsby'
import { Button } from '../../../src'
import { Button, Pane } from '../../../src'
import spotIllustration from '../images/sketch-hero.png'
import sketchIcon from '../images/sketch-icon.png'
import figmaIcon from '../images/figma-logo.png'

const NativeLink = ({ ...props }) => {
return <a target="_blank" rel="noopener noreferrer" {...props} />
Expand All @@ -23,11 +24,29 @@ export default class DesignersHero extends React.PureComponent {
Design products and side-projects with our official design
resource for the Evergreen community.
</p>
<div>
<Pane display="flex" alignItems="flex-start" flexDirection="column">
<Button
height={40}
appearance="primary"
flexShrink={0}
is={NativeLink}
marginBottom={16}
href="https://www.figma.com/community/file/873000372046493812"
iconBefore={
<img
src={figmaIcon}
height="16"
style={{ marginRight: 10, marginLeft: -2 }}
/>
}
>
Download Figma File
</Button>
<Button
is="a"
onClick={this.trackDownload}
href={withPrefix('/Evergreen v4 Community.sketch')}
flexShrink={0}
iconBefore={
<img
src={sketchIcon}
Expand All @@ -42,7 +61,7 @@ export default class DesignersHero extends React.PureComponent {
>
Download Sketch UI Kit
</Button>
</div>
</Pane>
<div style={{ marginTop: 24, marginBottom: -32 }}>
<a
rel="license"
Expand Down
Binary file added docs/src/images/figma-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.