├── .babelrc
├── .editorconfig
├── .eslintrc
├── .gitignore
├── .jshintrc
├── .node-version
├── .npmrc
├── .nvmrc
├── .travis.yml
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── demo
├── demo.css
├── index.html
└── index.js
├── package-lock.json
├── package.json
├── src
├── Bullet.js
├── Button.js
├── Item.js
├── Paginator.js
├── Slider.js
├── SliderTest.js
└── index.js
├── test
└── test-setup.js
├── webpack.config.demo.js
├── webpack.config.dist.js
└── webpack.config.page.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | "env",
4 | "react",
5 | "stage-0"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | end_of_line = lf
5 | insert_final_newline = false
6 | indent_style = space
7 | indent_size = 2
8 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 | "parser": "babel-eslint",
4 | "extends": [
5 | "standard",
6 | "standard-react",
7 | "prettier",
8 | "prettier/react"
9 | ],
10 | "globals": {
11 | "afterEach": false,
12 | "beforeAll": false,
13 | "beforeEach": false,
14 | "describe": false,
15 | "expect": false,
16 | "it": false,
17 | "Image": false
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | npm-debug.log
3 | *.swp
4 | .DS_Store
5 | **/*-bundle.*.js*
6 | demo/bundle.js*
7 | page/
8 | dist/
9 |
--------------------------------------------------------------------------------
/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "node": true,
3 | "browser": true,
4 | "bitwise": true,
5 | "camelcase": false,
6 | "curly": true,
7 | "esnext": true,
8 | "immed": true,
9 | "newcap": true,
10 | "noarg": true,
11 | "undef": true,
12 | "unused": false,
13 | "strict": true,
14 | "globals": {
15 | "$": false,
16 | "Promise": true
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/.node-version:
--------------------------------------------------------------------------------
1 | v4.0.0
2 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | save-exact=true
2 |
--------------------------------------------------------------------------------
/.nvmrc:
--------------------------------------------------------------------------------
1 | v8.7.0
2 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | # faster builds on new travis setup not using sudo
2 | sudo: false
3 |
4 | language: node_js
5 |
6 | notifications:
7 | email: false
8 |
9 | node_js:
10 | - "8.7.0"
11 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Code of Conduct
2 |
3 | As contributors and maintainers of React Component Starter Kit, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4 |
5 | We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6 |
7 | Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8 |
9 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10 |
11 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12 |
13 | This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
14 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright Davi Ferreira, http://www.daviferreira.com/
2 |
3 | This software consists of voluntary contributions made by many
4 | individuals. For exact contribution history, see the revision history
5 | available at https://github.com/daviferreira/react-component-boilerplate
6 |
7 | The following license applies to all parts of this software except as
8 | documented below:
9 |
10 | ====
11 |
12 | Permission is hereby granted, free of charge, to any person obtaining
13 | a copy of this software and associated documentation files (the
14 | "Software"), to deal in the Software without restriction, including
15 | without limitation the rights to use, copy, modify, merge, publish,
16 | distribute, sublicense, and/or sell copies of the Software, and to
17 | permit persons to whom the Software is furnished to do so, subject to
18 | the following conditions:
19 |
20 | The above copyright notice and this permission notice shall be
21 | included in all copies or substantial portions of the Software.
22 |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 |
31 | ====
32 |
33 | All files located in the node_modules directory are
34 | externally maintained libraries used by this software which have their
35 | own licenses; we recommend you read them, as their terms may differ from
36 | the terms above.
37 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Viewport Slider, React
2 |
3 | **react-viewport-slider** is a react component (obviously) that displays a sequence of contents using 100% of the viewport with and height.
4 |
5 | [](https://www.npmjs.com/package/react-viewport-slider)
6 |
7 | [](https://travis-ci.org/daviferreira/react-viewport-slider) [](https://david-dm.org/daviferreira/react-viewport-slider) [](https://david-dm.org/daviferreira/react-viewport-slider#info=devDependencies)
8 |
9 | ## Usage
10 |
11 | ### CommonJS
12 |
13 | Install via NPM:
14 |
15 | ```
16 | npm install react-viewport-slider
17 | ```
18 |
19 | Then:
20 |
21 | ```javascript
22 | import Slider from ‘react-viewport-slider’;
23 |
24 | // http://alpha.wallhaven.cc/wallpaper/164335
25 | const wallpaper =
26 | 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-164335.png';
27 | …
28 |
29 | render: function () {
30 | return (
31 |
32 |
33 |