Skip to content

Commit 2e1c03e

Browse files
Merge pull request LucasLeandro1204#9 from LucasLeandro1204/landing-page
Landing page
2 parents 6d865c8 + b7e97a2 commit 2e1c03e

File tree

22 files changed

+366
-216
lines changed

22 files changed

+366
-216
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[**.js*]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[**.vue]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[**.html]
21+
indent_style = space
22+
indent_size = 2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dist/vuecontentloading.js
44
dist/vuecontentloading.js.map
55
npm-debug.log
66
yarn-error.log
7+
package-lock.json
78

89
# Editor directories and files
910
.idea

README.md

Lines changed: 8 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -4,97 +4,26 @@
44

55
> Inspired in [React Content Loader](https://github.com/danilowoz/react-content-loader)
66
7-
## Installation
8-
9-
Simply install it via NPM
10-
11-
``$ npm install vue-content-loading --save``
12-
137
## So how it looks like?
148

15-
##### Facebook
9+
Facebook
1610

1711
![Facebook loading](https://raw.githubusercontent.com/LucasLeandro1204/vue-content-loading/master/static/facebook.gif "Facebook loading")
1812

19-
##### Code
13+
Code
2014

2115
![Code loading](https://raw.githubusercontent.com/LucasLeandro1204/vue-content-loading/master/static/code.gif "Code loading")
2216

23-
[See more here](https://lucasleandro1204.github.io/vue-content-loading/)
24-
25-
## Usage
26-
27-
##### Presets
28-
29-
```javascript
30-
import { VclFacebook, VclInstagram } from 'vue-content-loading';
31-
32-
<vcl-facebook></vcl-facebook>
33-
34-
<vcl-instagram></vcl-instagram>
35-
```
36-
37-
*You can bind custom attrs to presets too xd*
38-
39-
##### Custom
40-
41-
```javascript
42-
import VueContentLoading from 'vue-content-loading';
43-
44-
<vue-content-loading :width="300" :height="100">
45-
<circle cx="30" cy="30" r="30" />
46-
<rect x="75" y="13" rx="4" ry="4" width="100" height="15" />
47-
<rect x="75" y="37" rx="4" ry="4" width="50" height="10" />
48-
</vue-content-loading>
49-
```
50-
51-
*The default loading is facebook*
52-
53-
## Options
17+
# Documentation & Examples
5418

55-
#### Props
19+
Documentation with all presets is available at [HERE](https://lucasleandro1204.github.io/vue-content-loading)
5620

57-
| Prop | Type | Default | Description |
58-
|:---------:|:------:|:-------:|:----------------:|
59-
| speed | Number | 2 | Animation speed |
60-
| width | Number | 400 | Width component |
61-
| height | Number | 150 | Height component |
62-
| primary | String | #f0f0f0 | SVG Background |
63-
| secondary | String | #e0e0e0 | Animation color |
64-
65-
Color props are required to be HEX with hash prefix.
66-
67-
*Props are validate, so it minimize mistakes xd*
68-
69-
#### Supported presets
70-
71-
* Code *(VclCode)*
72-
* List *(VclList)*
73-
* Facebook *(VclFacebook)*
74-
* Instagram *(VclInstagram)*
75-
76-
## Development
77-
78-
To run for development run
79-
80-
``$ npm run dev``
81-
82-
This will host the application at localhost:8080
83-
84-
To build for production run
85-
86-
``$ npm run build``
87-
88-
The above command bundle the app and also features minification to help reduce file size
89-
90-
#### Linting
91-
92-
``$ npm run lint``
21+
## Installation
9322

94-
To automatically fix the problems, run
23+
Simple install via NPM
9524

96-
``$ npm run lint:fix``
25+
``$ npm install vue-content-loading --save``
9726

9827
##### License
9928

100-
MIT
29+
This project is licensed under the MIT license. See the LICENSE file for more details

dist/app.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

dist/app.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/.nojekyll

Whitespace-only changes.

docs/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Vue Content Loading
2+
3+
**Vue component to easily build (or use presets) SVG loading cards Facebook like**
4+
5+
> Inspired in [React Content Loader](https://github.com/danilowoz/react-content-loader)
6+
7+
<color-switch>
8+
<template slot-scope="props">
9+
<vcl-facebook :primary="props.primary" :secondary="props.secondary"></vcl-facebook>
10+
</template>
11+
</color-switch>
12+
13+
## License
14+
15+
This project is licensed under the MIT license. See the LICENSE file for more details

docs/_sidebar.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
- About
2+
- [Introduction](?id=vue-content-loading)
3+
- [License](?id=license)
4+
5+
- Guide
6+
- [Installation](guide.md?id=installation)
7+
- [Usage](guide.md?id=usage)
8+
- [Options](guide.md?id=options)
9+
- [Custom Preset](guide.md?id=custom-preset)
10+
11+
- Presets
12+
- [Facebook](presets.md?id=facebook)
13+
- [Instagram](presets.md?id=instagram)
14+
- [Code](presets.md?id=code)
15+
- [List](presets.md?id=list)
16+
- [Bullet List](presets.md?id=bullet-list)
17+
- [Twitch](presets.md?id=twitch)
18+
19+
- Development
20+
- [Getting started](development.md?id=development)
21+
- [Production](development.md?id=production)
22+
- [Linting](development.md?id=linting)

docs/assets/js/app.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/js/app.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)