├── .gitignore
├── LICENSE
├── README.md
├── assets
├── images
│ ├── BackspaceIcon.png
│ ├── ButtonShadow.png
│ ├── CheckmarkIcon.png
│ ├── DismissIcon.png
│ ├── EnterIcon.png
│ ├── GlobalIcon.png
│ ├── KeyShadow.png
│ ├── ShiftActiveIcon.png
│ ├── ShiftIcon.png
│ └── SwitchShadow.png
└── sounds
│ ├── ButtonClick.mp3
│ ├── ButtonClickDisabled.mp3
│ ├── InputClick.mp3
│ ├── KeyDown.mp3
│ ├── KeyIn.mp3
│ └── ToastShow.mp3
├── boilerplate
├── .gitignore
├── README.md
├── assets
│ ├── images
│ │ ├── BackspaceIcon.png
│ │ ├── ButtonShadow.png
│ │ ├── CheckmarkIcon.png
│ │ ├── DismissIcon.png
│ │ ├── EnterIcon.png
│ │ ├── GlobalIcon.png
│ │ ├── KeyShadow.png
│ │ ├── ShiftActiveIcon.png
│ │ ├── ShiftIcon.png
│ │ └── SwitchShadow.png
│ └── sounds
│ │ ├── ButtonClick.mp3
│ │ ├── ButtonClickDisabled.mp3
│ │ ├── InputClick.mp3
│ │ ├── KeyDown.mp3
│ │ ├── KeyIn.mp3
│ │ └── ToastShow.mp3
├── index.html
└── package.json
├── dist
├── aframe-material.js
├── aframe-material.js.map
├── aframe-material.min.js
└── aframe-material.min.js.map
├── index.html
├── package.json
├── src
├── alert
│ └── index.js
├── button
│ ├── assets.js
│ ├── index.js
│ └── sfx.js
├── checkbox
│ ├── assets.js
│ ├── index.js
│ └── sfx.js
├── core
│ └── event.js
├── fade
│ └── index.js
├── form
│ └── index.js
├── index.js
├── input
│ └── index.js
├── keyboard
│ ├── assets.js
│ ├── behaviors.js
│ ├── config.js
│ ├── draw.js
│ ├── index.js
│ ├── layouts.js
│ └── sfx.js
├── radio
│ ├── assets.js
│ ├── index.js
│ └── sfx.js
├── switch
│ ├── assets.js
│ ├── index.js
│ └── sfx.js
├── toast
│ ├── assets.js
│ ├── index.js
│ └── sfx.js
└── utils.js
├── static
└── screenshot.png
├── svg
├── BackspaceIcon.svg
├── CheckmarkIcon.svg
├── DismissIcon.svg
├── EnterIcon.svg
├── GlobalIcon.svg
├── ShiftActiveIcon.svg
└── ShiftIcon.svg
└── webpack.config.js
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .git
3 | *.sw[mnop]
4 |
5 | # Logs
6 | logs
7 | *.log
8 | npm-debug.log*
9 |
10 | # Runtime data
11 | pids
12 | *.pid
13 | *.seed
14 | *.pid.lock
15 |
16 | # Directory for instrumented libs generated by jscoverage/JSCover
17 | lib-cov
18 |
19 | # Coverage directory used by tools like istanbul
20 | coverage
21 |
22 | # nyc test coverage
23 | .nyc_output
24 |
25 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26 | .grunt
27 |
28 | # node-waf configuration
29 | .lock-wscript
30 |
31 | # Compiled binary addons (http://nodejs.org/api/addons.html)
32 | build/Release
33 |
34 | # Dependency directories
35 | node_modules
36 | jspm_packages
37 |
38 | # Optional npm cache directory
39 | .npm
40 |
41 | # Optional REPL history
42 | .node_repl_history
43 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright © 2017 Etienne Pinchon.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # A-Frame Material Kit 👽
2 |
3 | This is real! WebVR is getting even better!
4 | Inputs, keyboard, buttons, checkboxes, radio buttons, switches, forms, toasts and more - following the Google Material design guideline for [A-Frame](https://aframe.io).
5 | It is perfect for room-scale webVR apps. 👌
6 |
7 | 
8 |
9 | ## Demo
10 |
11 | #### [👉👉 Live demo 😎 👈👈](https://etiennepinchon.github.io/aframe-material/)
12 |
13 | Looks surreal if you have a headset! :)
14 |
15 | ## Getting Started
16 |
17 | Here is the code from the demo. That is it. Pure html!
18 |
19 | ```html
20 |