Skip to content

Commit 854386e

Browse files
authored
docs(readme): add readme docs
1 parent 1a28323 commit 854386e

File tree

4 files changed

+70
-15
lines changed

4 files changed

+70
-15
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
11
# argon-dashboard-vue3
22

3-
Argon Dashboard Vue 3 & TailwindCSS - Inspired by Creative Tim
3+
Argon Dashboard Vue 3, ElementUI & TailwindCSS - Inspired by [Creative Tim](https://www.creative-tim.com/product/vue-argon-dashboard)
4+
5+
## Nice stack (VET)
6+
7+
- [VueJS 3](https://vuejs.org) with well structured
8+
- [ElementUI](https://element-plus.org/en-US/) for VueJS 3
9+
- [TailwindCSS 3](https://tailwindcss.com)
10+
11+
## Sponsor
12+
13+
LTV Software
14+
15+
![LTV Software](https://s.gravatar.com/avatar/bf6addc65b990260d9ba27bc1bee92b4?s=100)
16+
17+
## Contributors
18+
19+
- [Dung Le](https://github.com/dzunglee)
20+
- [Phong Le](https://github.com/LeThanhPhongLTV)
21+
- [Hieu Dang](https://github.com/Trung-Hieu-Dev)
22+
- [Kha Huynh](https://github.com/khaht)
23+
24+
## License
25+
26+
[MIT](https://opensource.org/licenses/MIT)

src/assets/css/el-button.scss

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,168 +2,198 @@ body {
22
.el-button {
33
background-color: var(--el-button-bg-color, var(--el-color-white));
44
@apply transition-all duration-100 shadow-button;
5+
56
span {
67
@apply px-1.5;
78
}
9+
810
&:hover {
911
@apply -translate-y-px;
1012
}
1113
}
14+
1215
.el-button.el-button--large {
1316
@apply h-[51px] rounded-md font-semibold text-sm tracking-wide px-[11px] #{!important};
1417
}
18+
1519
.el-button.el-button--small {
1620
@apply rounded text-xs font-semibold tracking-wide p-0.5 py-3.25 #{!important};
1721
}
22+
1823
.el-button.el-button--default.el-button--small {
1924
@apply rounded max-w-fit h-[25px] #{!important};
2025
}
2126

2227
.el-button.el-button--default.is-plain {
2328
@apply bg-transparent text-dark border-dark shadow-none;
29+
2430
&:hover {
2531
@apply bg-dark text-white drop-shadow-lg;
2632
}
33+
2734
&:active {
2835
@apply drop-shadow-none;
2936
}
3037
}
3138

3239
.el-button.el-button--primary.is-plain {
3340
@apply bg-transparent text-indigo-410 border-indigo-410 shadow-none #{!important};
41+
3442
&:hover {
3543
@apply bg-indigo-410 text-white drop-shadow-lg #{!important};
3644
}
45+
3746
&:active {
3847
@apply drop-shadow-none #{!important};
3948
}
4049
}
4150

4251
.el-button.el-button--secondary.is-plain {
4352
@apply bg-transparent text-secondary-text border-slate-50 shadow-none #{!important};
53+
4454
&:hover {
4555
@apply bg-slate-50 text-black drop-shadow-md border-slate-50 #{!important};
4656
}
57+
4758
&:active {
4859
@apply drop-shadow-none bg-secondary #{!important};
4960
}
5061
}
5162

5263
.el-button.el-button--success.is-plain {
5364
@apply bg-transparent text-success border-success shadow-none #{!important};
65+
5466
&:hover {
5567
@apply bg-success text-white drop-shadow-lg border-success #{!important};
5668
}
69+
5770
&:active {
5871
@apply drop-shadow-none #{!important};
5972
}
6073
}
6174

6275
.el-button.el-button--warning.is-plain {
6376
@apply bg-transparent text-warning border-warning shadow-none #{!important};
77+
6478
&:hover {
6579
@apply bg-warning text-white drop-shadow-lg border-warning #{!important};
6680
}
81+
6782
&:active {
6883
@apply drop-shadow-none #{!important};
6984
}
7085
}
7186

7287
.el-button.el-button--info.is-plain {
7388
@apply bg-transparent text-info border-info shadow-none #{!important};
89+
7490
&:hover {
7591
@apply bg-info text-white drop-shadow-lg border-info #{!important};
7692
}
93+
7794
&:active {
7895
@apply drop-shadow-none #{!important};
7996
}
8097
}
8198

8299
.el-button.el-button--danger.is-plain {
83100
@apply bg-transparent text-danger border-danger shadow-none #{!important};
101+
84102
&:hover {
85103
@apply bg-danger text-white drop-shadow-lg border-danger #{!important};
86104
}
105+
87106
&:active {
88107
@apply drop-shadow-none #{!important};
89108
}
90109
}
91110

92111
.el-button.el-button--primary {
93112
@apply bg-indigo-410 border border-indigo-410 text-white #{!important};
113+
94114
span {
95115
@apply px-1.25;
96116
}
117+
97118
&:active {
98119
@apply bg-primary-blue shadow-none #{!important};
99120
}
100121
}
101122

102123
.el-button.el-button--info {
103124
@apply bg-info border border-info text-white #{!important};
125+
104126
&:active {
105127
@apply bg-info-active shadow-none #{!important};
106128
}
107129
}
130+
108131
.el-button.el-button--info.active {
109132
@apply bg-info-active #{!important};
110133
}
111134

112135
.el-button.el-button--warning {
113136
@apply bg-warning border border-warning text-white #{!important};
137+
114138
&:active {
115139
@apply bg-warning-active shadow-none #{!important};
116140
}
117141
}
142+
118143
.el-button.el-button--warning.active {
119144
@apply bg-warning-active #{!important};
120145
}
121146

122147
.el-button.el-button--success {
123148
@apply bg-success border border-success text-white #{!important};
149+
124150
&:active {
125151
@apply bg-success-active shadow-none #{!important};
126152
}
127153
}
154+
128155
.el-button.el-button--success.active {
129156
@apply bg-success-active #{!important};
130157
}
131158

132159
.el-button.el-button--danger {
133160
@apply bg-danger border border-danger text-white #{!important};
161+
134162
&:active {
135163
@apply bg-danger-active shadow-none #{!important};
136164
}
137165
}
166+
138167
.el-button.el-button--danger.active {
139168
@apply bg-danger-active #{!important};
140169
}
141170

142171
.el-button.el-button--secondary {
143172
@apply shadow-button;
144-
@apply bg-secondary border border-secondary text-black #{!important};
173+
@apply bg-secondary border border-secondary text-black #{!important};
174+
145175
&:hover {
146176
@apply shadow-md #{!important};
147177
}
178+
148179
&:active {
149180
@apply shadow-none border-secondary bg-secondary-active #{!important};
150181
}
151182
}
183+
152184
.el-button.el-button--secondary.active {
153185
@apply bg-secondary-active border-secondary-active #{!important};
154186
}
155187

156188
.el-button.el-button--default {
157189
@apply transition-all duration-100 bg-dark border border-dark text-white font-semibold h-10.75 text-sm tracking-wide;
190+
158191
span {
159192
@apply px-1.25;
160193
}
194+
161195
&:active {
162196
@apply bg-dark-120 shadow-none;
163197
}
164198
}
165-
.el-button.el-button--secondary.active {
166-
@apply bg-dark-120;
167-
}
168-
169-
}
199+
}

src/components/Sidebar/index.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,13 @@ export default defineComponent({
229229
const leftSideBarItems = ref<any[]>(['Dashboard', 'Profile', 'Map'])
230230
const isMenuShow = ref<boolean>(false)
231231
232+
const handleOnResize = () => {
233+
if (window.innerWidth < 1024) {
234+
store.dashboard.setIsSBOpen(false)
235+
store.dashboard.setIsSBPin(false)
236+
}
237+
}
238+
232239
onClickOutside(target, (_) => {
233240
if (window.innerWidth < 1024) store.dashboard.setIsSBOpen(false)
234241
})
@@ -239,16 +246,11 @@ export default defineComponent({
239246
}
240247
})
241248
onMounted(() => {
242-
window.addEventListener('resize', () => {
243-
if (window.innerWidth < 1024) {
244-
store.dashboard.setIsSBOpen(false)
245-
store.dashboard.setIsSBPin(false)
246-
}
247-
})
249+
window.addEventListener('resize', handleOnResize)
248250
})
249251
250252
onUnmounted(() => {
251-
window.removeEventListener('resize', () => {})
253+
window.removeEventListener('resize', handleOnResize)
252254
})
253255
254256
const isSBPin = computed<boolean>(() => store.dashboard.isSBPin)

src/modules/auth/views/forgot-password.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</div>
2828
</template>
2929
<script lang="ts">
30-
import { defineComponent, computed, ref } from 'vue'
30+
import { defineComponent, computed } from 'vue'
3131
import useStore from 'store'
3232
import SplitBackground from './components/SplitBackground.vue'
3333
import FortgotPasswordForm from './components/ForgotPasswordForm.vue'

0 commit comments

Comments
 (0)