Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Atchley
committed
Mar 14, 2017
1 parent
436d8d1
commit fa2c982
Showing
5 changed files
with
80 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,37 @@ | ||
import React from 'react'; | ||
import ReactDom from 'react-dom'; | ||
import Counter from 'library-boilerplate'; | ||
import ScaleText from '../../src/index'; | ||
|
||
const App = () => ( | ||
<div> | ||
<div className="box-descriptions"> | ||
<ul> | ||
<li> <b>Box 1</b> - <code><ScaleText /></code></li> | ||
<li> <b>Box 2</b> - <code><ScaleText minFontSize={12} /></code></li> | ||
<li> <b>Box 3</b> - <code><ScaleText maxFontSize={35} /></code></li> | ||
</ul> | ||
</div> | ||
<div className="box-container"> | ||
<div className="box"> | ||
<ScaleText> | ||
<span className="box-text">Box 1</span> | ||
</ScaleText> | ||
</div> | ||
<div className="box"> | ||
<ScaleText minFontSize={12}> | ||
<span className="box-text">Box 2</span> | ||
</ScaleText> | ||
</div> | ||
<div className="box"> | ||
<ScaleText maxFontSize={35}> | ||
<span className="box-text">Box 3</span> | ||
</ScaleText> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
ReactDom.render( | ||
<Counter />, | ||
<App />, | ||
document.getElementById('root') | ||
); |
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
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