-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default setup for react-toolbox and themr
- Loading branch information
Showing
15 changed files
with
91 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
app/templates/client/modules/app/components/App/__tests__/App-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from 'react' | ||
import { shallow } from 'enzyme' | ||
|
||
import { App } from '..' | ||
import theme from '../theme.scss' | ||
|
||
describe('App', () => { | ||
test('renders a welcome message', () => { | ||
const wrapper = shallow(<App theme={theme} />) | ||
|
||
expect(wrapper.find('h4').text()).toEqual('Welcome!') | ||
}) | ||
}) |
12 changes: 0 additions & 12 deletions
12
app/templates/client/modules/app/components/App/__tests__/index-spec.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$header-background-color: $palette-grey-800 !default; | ||
$header-color: $color-white !default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
app/templates/client/modules/app/components/App/styles.scss
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
app/templates/client/modules/app/components/App/theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@import '../../../../styles/globals'; | ||
@import 'config'; | ||
|
||
.app { | ||
text-align: center; | ||
} | ||
|
||
.header { | ||
background-color: $header-background-color; | ||
color: $header-color; | ||
height: 15 * $unit; | ||
padding: 2 * $unit; | ||
} | ||
|
||
.logo { | ||
height: 8 * $unit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import '~react-toolbox/lib/colors'; | ||
|
||
$zeal-orange: #d85226; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import 'colors'; | ||
@import '~react-toolbox/lib/globals'; | ||
|
||
$unit: .625rem; | ||
|
||
$color-primary: $zeal-orange; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@import 'globals'; | ||
@import '~react-toolbox/lib/commons'; | ||
|
||
html { | ||
font-size: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export RTProgressBar from './progress_bar.scss' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import '../globals'; | ||
@import '~react-toolbox/lib/progress_bar/theme'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* @flow */ | ||
|
||
import * as ToolboxTheme from './react-toolbox' | ||
|
||
export default { ...ToolboxTheme } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters