Skip to content

Commit b372a89

Browse files
Abdulnasır OlcanAbdulnasır Olcan
authored andcommitted
🚀 readme updated
1 parent c67c166 commit b372a89

File tree

2 files changed

+37
-35
lines changed

2 files changed

+37
-35
lines changed

README.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Vue3 Use Hooks
1+
# :bo0m: Vue3 Use Hooks
22

33
<p align="center">Reusability and Composition functions.</p>
44

5-
## :sunflower: Introduction
5+
## :books: Introduction
66

77
Vue Use Hooks implemented as vue composition functions.
88

@@ -22,30 +22,30 @@ npm install vue3-use-hooks
2222
import { useModal } from 'vue3-use-hooks';
2323
2424
const contrubitors = [
25-
{
25+
{
2626
id: 1,
2727
emoji: '👨',
2828
fullname: 'Abdulnasır Olcan',
29-
programmer: 'Frontend Developer',
30-
},
31-
{
29+
programmer: 'Frontend Developer'
30+
},
31+
{
3232
id: 2,
3333
emoji: '👩',
3434
fullname: 'Büşra Şanlıbayrak',
35-
programmer: 'Frontend Developer',
36-
},
37-
{
35+
programmer: 'Frontend Developer'
36+
},
37+
{
3838
id: 3,
3939
emoji: '🧑‍',
4040
fullname: 'Mehmet Varol',
41-
programmer: 'Frontend Developer',
42-
},
41+
programmer: 'Frontend Developer'
42+
}
4343
];
4444
const { visible, setVisible, current, openModal, closeModal } = useModal();
4545
4646
const handleButton = () => {
47-
openModal(contrubitors);
48-
setVisible(true);
47+
openModal(contrubitors);
48+
setVisible(true);
4949
};
5050
</script>
5151
@@ -82,7 +82,6 @@ const handleButton = () => {
8282
<script setup lang="ts">
8383
import { useState } from 'vue3-use-hooks';
8484
const [count, setCount] = useState(0);
85-
8685
</script>
8786
8887
<template>
@@ -102,21 +101,21 @@ import { reactive } from 'vue';
102101
import { useStringCase } from 'vue3-use-hooks';
103102
104103
const state = reactive({
105-
name: 'imelda white',
106-
gender: 'female',
107-
company: 'NEUROCELL',
108-
email: 'Imeldawhite@nr.com',
109-
balance: '3,814.49',
110-
about: 'Veniam fugiat pariatur adipisicing do consequat.',
111-
address: 'bulwer place, lemoyne, district of columbia, 5597',
104+
name: 'imelda white',
105+
gender: 'female',
106+
company: 'NEUROCELL',
107+
email: 'Imeldawhite@nr.com',
108+
balance: '3,814.49',
109+
about: 'Veniam fugiat pariatur adipisicing do consequat.',
110+
address: 'bulwer place, lemoyne, district of columbia, 5597'
112111
});
113112
114-
const { camelCase, kebabCase, pascalCase, upperCase, lowerCase, sentenceCase, capitalizeCase } = useStringCase();
115-
113+
const { camelCase, kebabCase, pascalCase, upperCase, lowerCase, sentenceCase, capitalizeCase } =
114+
useStringCase();
116115
</script>
117116
118117
<template>
119-
<div>
118+
<div>
120119
<p><b>CamelCase: </b>{{ camelCase(state.about) }}</p>
121120
<p><b>CapitalizeCase: </b>{{ capitalizeCase(state.name) }}</p>
122121
<p><b>SentenceCase: </b>{{ sentenceCase(state.company) }}</p>

example/vue3/src/components/useModal.vue

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
import { useModal } from '../../../../src';
33
44
const contrubitors = [
5-
{
5+
{
66
id: 1,
77
emoji: '👨',
88
fullname: 'Abdulnasır Olcan',
9-
programmer: 'Frontend Developer',
10-
},
11-
{
9+
programmer: 'Frontend Developer'
10+
},
11+
{
1212
id: 2,
1313
emoji: '👩',
1414
fullname: 'Büşra Şanlıbayrak',
15-
programmer: 'Frontend Developer',
16-
},
17-
{
15+
programmer: 'Frontend Developer'
16+
},
17+
{
1818
id: 3,
1919
emoji: '🧑‍',
2020
fullname: 'Mehmet Varol',
21-
programmer: 'Frontend Developer',
22-
},
21+
programmer: 'Frontend Developer'
22+
}
2323
];
2424
const { visible, setVisible, current, openModal, closeModal } = useModal();
2525
2626
const handleButton = () => {
27-
openModal(contrubitors);
28-
setVisible(true);
27+
openModal(contrubitors);
28+
setVisible(true);
2929
};
3030
</script>
3131

@@ -186,6 +186,7 @@ $yellow: #f1c40f;
186186
p {
187187
width: 70%;
188188
font-size: 44px;
189+
color: #000;
189190
}
190191
191192
h1 {
@@ -194,10 +195,12 @@ $yellow: #f1c40f;
194195
margin-left: 50px;
195196
font-size: 17px;
196197
font-weight: 550;
198+
color: #000;
197199
}
198200
199201
span {
200202
margin: 0px 50px;
203+
color: #000;
201204
}
202205
}
203206
}

0 commit comments

Comments
 (0)