Skip to content

Commit

Permalink
Merge branch 'master' into fix-links
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily authored Oct 3, 2018
2 parents a9c61e3 + 4fa9488 commit 63bf857
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 35 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@ node_js:
script:
- npm run build

deploy:
- on:
branch: master
provider: script
script: script/deploy --token="$NOW_TOKEN"

notifications:
slack: github:4OisIoqZYyMlWcw3hFtZgbmh
8 changes: 7 additions & 1 deletion now.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"name": "primer-style"
"name": "primer-style",
"scale": {
"sfo": {
"min": 1,
"max": 1
}
}
}
10 changes: 6 additions & 4 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import React from 'react'
import {Box} from '@primer/components'
import {Box, BaseStyles} from '@primer/components'
import {ThemeProvider} from 'emotion-theming'
import theme from '../src/theme.js'

const Page = props => (
<ThemeProvider theme={theme}>
<Box bg='black' color='blue.2'>
{props.children}
</Box>
<BaseStyles>
<Box bg='black' color='blue.2'>
{props.children}
</Box>
</BaseStyles>
</ThemeProvider>
)

Expand Down
10 changes: 4 additions & 6 deletions script/deploy
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
set -e
deployment=primer-style.now.sh
domain=primer.style
now
now alias $deployment
now scale $deployment sfo 1
now alias $domain -r rules.json
now $*
# XXX this needs to match up with the last `dest` in rules.json
now $* alias primer-style.now.sh
now $* alias primer.style -r rules.json
9 changes: 4 additions & 5 deletions src/AtomPlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ import ButtonOutline from './ButtonOutline'
const AtomPlugins = props => (
<Box px={4} mx={'auto'} px={4} className="container-xl">
<Box my={[0, 3, 6]} mx={-4} className='d-flex flex-items-center flex-wrap flex-md-nowrap flex-md-row-reverse'>
<Box px={4} mb={[3,3,0]} width={[1, 10/12, 6/12]} m='auto'>
<AtomImage />
</Box>
<Box my={[4,3,0]} width={[1, 1, 6/12]} px={4} >
<Box px={4} mb={[3,3,0]} width={[1, 10/12, 6/12]} m='auto'>
<AtomImage />
</Box>
<Box my={[4,3,0]} width={[1, 1, 6/12]} px={4}>
<Heading color="blue.4" mb={3} pr={[0,0, 0, 3]} fontSize={5} lineHeight="1.25" fontWeight='bold'>A better development experience with Atom</Heading>
<Text color="blue.2" is='p' fontSize={3} mb={4} pr={[0,0, 0, 3]}>Install this custom Atom package to autocomplete classnames for Primer CSS and rails helpers for Octicons</Text>
<ButtonFill mr={2} href='https://atom.io/packages/autocomplete-primer'>Install package</ButtonFill>
<ButtonOutline href='https://atom.io/'>Get Atom</ButtonOutline>
<Text is="p" fontSize={2} mt={4} color="blue.3" className="text-mono">apm install autocomplete-primer</Text>
</Box>

</Box>
</Box>
)
Expand Down
30 changes: 12 additions & 18 deletions src/svg/Atom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ module.exports = {
rules: [
{
test: /\.svg$/,
use: ['@svgr/webpack']
use: {
loader: '@svgr/webpack',
options: {
svgo: false
}
}
}
]
}
Expand Down

0 comments on commit 63bf857

Please sign in to comment.