├── Github
├── README.md
├── flashcard.vue
└── package.json
/Github:
--------------------------------------------------------------------------------
1 | THANK YOU 😀 - repo: https://github.com/cuduy197/vue-flashcard
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Vue Flashcard :zap:
2 |
3 | 
4 | + This is [on GitHub](https://github.com/cuduy197/vue-flashcard) so let me know if I've b0rked it somewhere, give me a star :star: if you like it
5 |
6 | ### :white_check_mark: Install :ok_hand:
7 | ``` npm i vue-flashcard```
8 |
9 | ### :white_check_mark: Usage :mortar_board:
10 | - Add it to your component :tada:
11 |
12 | 
13 |
14 | ```javascript
15 | import vueFlashcard from 'vue-flashcard';
16 |
17 | export default {
18 |
19 | components : { vueFlashcard }
20 |
21 | }
22 | ```
23 |
24 | ### :white_check_mark: Example :four_leaf_clover:
25 |
26 | ```html
27 |
30 |
31 | ```
32 | ### :white_check_mark: :book: Props:
33 | + `front` ( Front text) [default: ""]
34 | + `back` (Back text) [default: ""]
35 |
36 | + `imgFront` (Image front ) [default: ""]
37 | + `imgBack` (Image back) [default: ""]
38 |
39 | + `colorFront` (Color front card ) [default: "white"]
40 | + `colorBack` (Color back card ) [default: "green"]
41 |
42 | + `colorTextFront` (Color text front card ) [default: "black"]
43 | + `colorTextBack` (Color text back card ) [default: "white"]
44 |
45 | + `textSizeFront` (Text size front card ) [default: "2em"]
46 | + `textSizeBack` (Text size back card ) [default: "2em"]
47 |
48 | + `headerFront` (Header front text ) [default: "Do you know?"]
49 | + `headerBack` (Header back text ) [default: "Answer"]
50 |
51 | + `footerFront` (Footer front text) [default: "Click to show Back"]
52 | + `footerBack` (Footer back text ) [default: "Click to show Front"]
53 |
54 |
55 | ## Make with my old laptop :octocat:
56 |
57 | [](https://nodei.co/npm/vue-flashcard/)
--------------------------------------------------------------------------------
/flashcard.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
{{front}}
7 |
![]()
8 |
9 |
10 |
11 |
12 |
13 |
14 |
{{back}}
15 |
![]()
16 |
17 |
18 |
19 |
20 |
21 |
89 |
139 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "vue-flashcard",
3 | "version": "1.1.5",
4 | "description": "Flashcard component for vuejs 2 💡",
5 | "main": "flashcard.vue",
6 | "scripts": {
7 | "test": "echo HELLO",
8 | "preinstall": "echo ._THANKS YOU 😀_. Github : https://github.com/cuduy197/vue-flashcard"
9 | },
10 | "keywords": [
11 | "vuejs2",
12 | "Vuejs",
13 | "flashcard",
14 | "component",
15 | "vue component"
16 | ],
17 | "author": "cuduy197",
18 | "license": "MIT",
19 | "repository": {
20 | "type": "git",
21 | "url": "git+https://github.com/cuduy197/vue-flashcard.git"
22 | },
23 | "bugs": {
24 | "url": "https://github.com/cuduy197/vue-flashcard/issues"
25 | },
26 | "homepage": "https://github.com/cuduy197/vue-flashcard#readme"
27 | }
28 |
--------------------------------------------------------------------------------