Skip to content

Commit

Permalink
docs: add screenshots of FAB, Paper, ProgressBar and Switch components (
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsroka authored and satya164 committed Feb 5, 2018
1 parent 1ddd529 commit b9cdbe4
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 5 deletions.
Binary file added docs/assets/screenshots/fab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/screenshots/paper.1_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/screenshots/paper.4_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/screenshots/paper.9_12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/screenshots/progress-bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/screenshots/switch.ios.enabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 18 additions & 4 deletions docs/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,28 @@
margin: 0 -4px;
}

.screenshots > img {
width: 280px;
.screenshots img {
max-width: 280px;
height: auto;
}

.screenshots > div {
display: inline-flex;
flex-direction: column;
}

.screenshots > * {
margin: 4px;
}

.screenshots span {
color: #616161;
font-size: 13px;
line-height: 24px;
}

@media (min-width: 1100px) {
.screenshots > img {
width: 240px;
.screenshots img {
max-width: 240px;
}
}
4 changes: 4 additions & 0 deletions src/components/FAB.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ type Props = {
/**
* A floating action button represents the primary action in an application.
*
* <div class="screenshots">
* <img src="screenshots/fab.png" />
* </div>
*
* ## Usage
* ```js
* const MyComponent = () => (
Expand Down
7 changes: 6 additions & 1 deletion src/components/Paper.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ type Props = {
/**
* Paper is a basic container that can give depth to the page.
*
* <div class="screenshots">
* <img src="screenshots/paper.1_2.png" />
* <img src="screenshots/paper.4_6.png" />
* <img src="screenshots/paper.9_12.png" />
* </div>
*
* ## Usage
* ```js
* const MyComponent = () => (
Expand All @@ -30,7 +36,6 @@ type Props = {
* </Paper>
* );
*
*
* const styles = StyleSheet.create({
* paper: {
* padding: 8,
Expand Down
4 changes: 4 additions & 0 deletions src/components/ProgressBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ const ProgressBarComponent = Platform.select({
/**
* Progress bar is an indicator used to present some activity in the app.
*
* <div class="screenshots">
* <img src="screenshots/progress-bar.png" />
* </div>
*
* ## Usage
* ```js
* const MyComponent = () => (
Expand Down
19 changes: 19 additions & 0 deletions src/components/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,25 @@ type Props = {
/**
* Switch is a visual toggle between two mutually exclusive states—on and off.
*
* <div class="screenshots">
* <div>
* <img src="screenshots/switch.android.enabled.png" />
* <span>Android (enabled)</span>
* </div>
* <div>
* <img src="screenshots/switch.android.disabled.png" />
* <span>Android (disabled)</span>
* </div>
* <div>
* <img src="screenshots/switch.ios.enabled.png" />
* <span>iOS (enabled)</span>
* </div>
* <div>
* <img src="screenshots/switch.ios.disabled.png" />
* <span>iOS (disabled)</span>
* </div>
* </div>
*
* ## Usage
* ```js
* export default class MyComponent extends Component {
Expand Down

0 comments on commit b9cdbe4

Please sign in to comment.