Better example

This commit is contained in:
Tanner Linsley
2016-10-22 17:08:05 -06:00
parent 66afd8cded
commit 0409463052
6 changed files with 59 additions and 31 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

+18 -9
View File
@@ -100,12 +100,7 @@ html {
min-height: 100vh;
}
body {
background: #003952;
background: -webkit-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
background: -moz-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
background: -o-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
background: -ms-radial-gradient(ellipse at center, #005275 0%, #003952 100%);
background: radial-gradient(ellipse at center, #005275 0%, #003952 100%);
background: #fff;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
padding-bottom: 50px;
@@ -115,12 +110,16 @@ h1 {
color: #fff;
}
a {
color: #fff;
color: #02bfe6;
font-weight: bold;
text-decoration: none;
}
strong {
font-weight: bold;
}
.logo {
width: 400px;
}
.container {
display: -webkit-box;
display: -moz-box;
@@ -151,12 +150,22 @@ strong {
}
.container .github-addon {
font-size: 20px;
color: #fff;
padding: 10px;
}
.container .table-wrap {
background: #fff;
width: 700px;
padding: 10px;
border-radius: 5px;
-webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
}
.ReactTable thead th.-sort-asc,
.ReactTable thead td.-sort-asc {
-webkit-box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.6);
box-shadow: inset 0 3px 0 0 rgba(0,0,0,0.6);
}
.ReactTable thead th.-sort-desc,
.ReactTable thead td.-sort-desc {
-webkit-box-shadow: inset 0 -3px 0 0 rgba(0,0,0,0.6);
box-shadow: inset 0 -3px 0 0 rgba(0,0,0,0.6);
}
+15 -10
View File
File diff suppressed because one or more lines are too long
+17 -8
View File
@@ -18,9 +18,7 @@ global-reset()
// -----------------------------------------------------------------------------
$fnt-open-sans = 'Open Sans', sans-serif
$clr-jumpsuit1 = #003952
$clr-jumpsuit2 = #005275
$clr-jumpsuit3 = #0082bb
$react = #25d8fd
// -----------------------------------------------------------------------------
// styles
@@ -33,8 +31,7 @@ html
min-height 100vh
body
background: $clr-jumpsuit1
background: radial-gradient(ellipse at center, $clr-jumpsuit2 0%, $clr-jumpsuit1 100%)
background: white
font-family: $fnt-open-sans
font-weight: 300
padding-bottom: 50px
@@ -44,12 +41,16 @@ h1
color: white
a
color: white
color: darken($react, 20%)
font-weight: bold
text-decoration: none
strong
font-weight: bold
.logo
width: 400px
.container
display: flex
flex-direction: column
@@ -60,11 +61,19 @@ strong
.github-addon
font-size: 20px
color:white
padding: 10px
.table-wrap
background: white
width: 700px
padding: 10px
border-radius: 5px
box-shadow: 0 0 20px 0 alpha(black, .2)
.ReactTable
thead
th
td
&.-sort-asc
box-shadow:inset 0 3px 0 0 alpha(black, .6)
&.-sort-desc
box-shadow:inset 0 -3px 0 0 alpha(black, .6)
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

+9 -4
View File
@@ -34,14 +34,18 @@ export default Component({
return (
<div className='container'>
<div style={{textAlign: 'center'}}>
<h1>react-table <strong>demo</strong></h1>
<h1>
<span style={{position: 'absolute', textIndent: '-9999em'}}>
react-table <strong>demo</strong>
</span>
<img src='/Banner.png' className='logo' />
</h1>
<br />
<div>
<a
className='github-button'
href='https://github.com/tannerlinsley/react-table'
target='_blank'
data-icon='octicon-star'
data-style='mega'
data-count-href='/tannerlinsley/react-table/stargazers'
data-count-api='/repos/tannerlinsley/react-table#stargazers_count'
@@ -50,6 +54,7 @@ export default Component({
Star
</a>
</div>
<br />
<div className='github-addon'>
<a
target='_blank'
@@ -66,9 +71,9 @@ export default Component({
columns={columns}
/>
</div>
<div style={{textAlign: 'center', color: 'white'}}>
<div style={{textAlign: 'center'}}>
<br />
<em>Tip: Hold shift when sorting for multi-sort!</em>
<em>Tip: Hold shift when sorting to multi-sort!</em>
</div>
</div>
)