@@ -3,16 +3,26 @@ import { ref, computed } from 'vue';
3
3
import pkg from ' ../package.json' ;
4
4
// import VueTechsLogos from 'vue-techs-logos'
5
5
import VueTechsLogos from ' ./components/VueTechsLogos.vue'
6
+ import ModalInstall from ' ./components/ModalInstall.vue'
6
7
import DarkModeVue from ' darkmode-vue'
7
8
import techs from ' ./techs'
8
9
9
10
const appVersion: string = pkg .version ;
10
11
const search = ref (' ' );
12
+ const modalInstall = ref (false );
11
13
const filteredArray = computed (() =>
12
14
techs
13
15
.filter ((item ) => item .name .toLowerCase ().includes (search .value .trim ().toLowerCase ()))
14
16
.map ((item ) => item .name )
15
17
);
18
+
19
+ function openModal() {
20
+ modalInstall .value = true ;
21
+ }
22
+
23
+ function closeModal() {
24
+ modalInstall .value = false ;
25
+ }
16
26
</script >
17
27
18
28
<template >
@@ -23,42 +33,34 @@ const filteredArray = computed(() =>
23
33
<h1 >{{ `vue-techs-logos@${appVersion}` }}</h1 >
24
34
</a href =" " >
25
35
</header >
26
-
27
- <main >
28
- <div >
29
- <h1 >Install</h1 >
30
- <code class =" code-wrapper" >
31
- {{ `npm run install vue-techs-logos` }}
32
- </code >
33
- <h2 >Usage</h2 >
34
- <code class =" code-wrapper" >
35
- {{ `import VueTechsLogos from 'vue-techs-logos'
36
-
37
- <VueTechsLogos name =" vue" />` }}
38
- </code >
39
- <h2 >Hidden label</h2 >
40
- <code class =" code-wrapper" >
41
- {{ `<VueTechsLogos name =" vue" :hiddenLabel =" true" />` }}
42
- </code >
43
- <h2 >List of technologies limited</h2 >
44
- <code class =" code-wrapper" >
45
- {{ `<VueTechsLogos :list =" ['vue','JavaScript', 'react', 'angular']" />` }}
46
- </code >
47
- <h2 >List of technologies full with hiddenLogos</h2 >
36
+ <main class =" content" >
37
+ <ModalInstall :active =" modalInstall" :closeModal =" closeModal" />
38
+ <h2 >List of techs</h2 >
39
+ <div class =" install" >
48
40
<code class =" code-wrapper" >
49
- {{ `<VueTechsLogos :hiddenLogos = " ['vue','javascript', 'react', 'angular', 'android'] " />` }}
41
+ {{ `<VueTechsLogos />` }}
50
42
</code >
43
+ <button class =" button-modal" type =" button" @click =" openModal" >
44
+ <svg
45
+ xmlns =" http://www.w3.org/2000/svg"
46
+ version =" 1.1"
47
+ width =" 40px"
48
+ height =" 40px"
49
+ viewBox =" 0 0 512 512"
50
+ fill =" var(--vtl-background-svg)"
51
+ >
52
+ <path d="m499.139 318.571-37.178-5.407a6.15 6.15 0 0 1-5.228-3.8l-12.054-29.086a6.116 6.116 0 0 1 1-6.379l22.243-29.88c3.533-4.141 3.301-10.314-.554-14.168l-17.602-17.594c-3.846-3.854-10.029-4.104-14.159-.553l-29.889 22.233a6.159 6.159 0 0 1-6.38 1.018l-29.094-12.062a6.213 6.213 0 0 1-3.81-5.228l-5.389-37.169c-.428-5.442-4.96-9.635-10.402-9.635H325.75c-5.45 0-9.983 4.193-10.402 9.635l-5.407 37.169a6.142 6.142 0 0 1-3.792 5.228l-29.103 12.062a6.176 6.176 0 0 1-6.388-1.018l-29.872-22.233c-4.13-3.542-10.304-3.302-14.167.553l-17.594 17.594c-3.854 3.854-4.086 10.028-.554 14.168l22.234 29.888a6.143 6.143 0 0 1 1.009 6.371l-12.054 29.086c-.874 2.159-2.908 3.622-5.219 3.81l-37.195 5.398a10.445 10.445 0 0 0-9.618 10.412v24.883c0 5.442 4.194 9.993 9.618 10.403l37.195 5.398a6.177 6.177 0 0 1 5.219 3.81l12.054 29.086c.901 2.159.5 4.63-1.009 6.388l-22.234 29.889a10.45 10.45 0 0 0 .554 14.168l17.594 17.594c3.863 3.854 10.037 4.086 14.167.544l29.872-22.243a6.191 6.191 0 0 1 6.388-.998l29.103 12.044a6.208 6.208 0 0 1 3.802 5.246l5.398 37.169c.428 5.433 4.952 9.636 10.402 9.636h24.893c5.451 0 9.974-4.203 10.402-9.636l5.389-37.169a6.23 6.23 0 0 1 3.81-5.246l29.103-12.044a6.173 6.173 0 0 1 6.379.998l29.881 22.243c4.13 3.542 10.314 3.31 14.159-.544l17.602-17.594a10.441 10.441 0 0 0 .554-14.168l-22.243-29.889a6.186 6.186 0 0 1-1-6.388l12.054-29.086a6.19 6.19 0 0 1 5.228-3.81l37.178-5.398c5.434-.41 9.627-4.961 9.627-10.403v-24.883a10.448 10.448 0 0 0-9.628-10.413zm-120.046 63.757c-10.93 10.912-25.445 16.926-40.898 16.926-15.444 0-29.978-6.014-40.898-16.926-10.92-10.938-16.943-25.454-16.943-40.907 0-15.444 6.022-29.969 16.943-40.89 10.92-10.939 25.454-16.934 40.898-16.934 15.454 0 29.969 5.995 40.898 16.934 10.92 10.92 16.934 25.446 16.934 40.89 0 15.453-6.013 29.969-16.934 40.907z" />
53
+ <path d="M187.351 252.156a8.174 8.174 0 0 0 5.122-9.868l-5.898-28.854a4.896 4.896 0 0 1 1.419-4.88l18.263-16.621a4.855 4.855 0 0 1 4.97-.946l27.961 8.466c3.989 1.508 8.485-.294 10.306-4.166l8.297-17.656a8.15 8.15 0 0 0-3.346-10.591l-24.339-16.14c-1.58-.91-2.535-2.632-2.436-4.452l1.16-24.66a4.873 4.873 0 0 1 2.838-4.194l26.008-13.874c3.898-1.74 5.781-6.218 4.336-10.215l-6.603-18.371a8.194 8.194 0 0 0-9.876-5.121l-28.863 5.879c-1.767.5-3.632-.053-4.871-1.41L195.185 56.23a4.795 4.795 0 0 1-.955-4.978l8.468-27.944c1.507-4.006-.294-8.494-4.175-10.306l-17.648-8.306c-3.872-1.821-8.494-.366-10.608 3.354l-16.131 24.34a4.86 4.86 0 0 1-4.444 2.445l-24.66-1.169a4.878 4.878 0 0 1-4.202-2.847L106.974 4.821A8.186 8.186 0 0 0 96.74.485L78.379 7.096a8.158 8.158 0 0 0-5.112 9.859l5.888 28.872a4.83 4.83 0 0 1-1.418 4.862l-18.264 16.63a4.884 4.884 0 0 1-4.987.955l-27.944-8.476c-3.988-1.516-8.476.304-10.305 4.175L7.939 81.622c-1.82 3.872-.366 8.494 3.346 10.599l24.339 16.14a4.806 4.806 0 0 1 2.436 4.435l-1.16 24.66a4.814 4.814 0 0 1-2.837 4.193L8.055 155.522a8.167 8.167 0 0 0-4.336 10.216l6.611 18.37a8.19 8.19 0 0 0 9.859 5.131l28.881-5.906a4.835 4.835 0 0 1 4.862 1.427l16.612 18.255a4.845 4.845 0 0 1 .954 4.987l-8.466 27.944c-1.499 3.997.304 8.485 4.175 10.305l17.648 8.297a8.19 8.19 0 0 0 10.608-3.346l16.122-24.348c.91-1.57 2.623-2.534 4.452-2.428l24.661 1.16a4.873 4.873 0 0 1 4.211 2.846l13.847 25.989c1.767 3.9 6.219 5.8 10.233 4.354l18.362-6.619zm-39.122-79.86c-11.394 4.095-23.714 3.524-34.68-1.633-10.965-5.157-19.245-14.275-23.358-25.678-4.095-11.402-3.524-23.714 1.634-34.67 5.156-10.974 14.283-19.254 25.677-23.357 11.402-4.105 23.714-3.534 34.67 1.641 10.956 5.139 19.254 14.258 23.366 25.66 4.096 11.403 3.516 23.706-1.632 34.672-5.175 10.955-14.285 19.252-25.677 23.365z" />
54
+ </svg >
55
+ Learn install
56
+ </button >
51
57
</div >
52
- <h2 >Full list of techs</h2 >
53
- <code class =" code-wrapper" >
54
- {{ `<VueTechsLogos />` }}
55
- </code >
56
58
<input type =" text" class =" input-search" v-model =" search" placeholder =" Search logos..." />
57
59
<VueTechsLogos :list =" filteredArray" />
58
60
</main >
59
61
</template >
60
62
61
- <style >
63
+ <style lang="scss" >
62
64
body {
63
65
--vtl-background : rgba (0 , 0 , 0 , .05 );
64
66
--vtl-background-tooltip : #444 ;
@@ -86,13 +88,25 @@ body.darkmode {
86
88
}
87
89
88
90
.darkmode-button {
89
- position : absolute ;
91
+ margin : 1rem ;
92
+ position : fixed ;
90
93
top : 0 ;
91
94
right : 0 ;
95
+ padding : .6rem !important ;
92
96
}
93
97
94
98
h2 {
95
- margin : 1rem 0 1rem ;
99
+ margin : 0 0 1rem ;
100
+ }
101
+
102
+ .content {
103
+ background : var (--vtl-background );
104
+ background : var (--vtl-background-gradient );
105
+ padding : 1rem 1rem ;
106
+ margin : 1rem ;
107
+ border-radius : 10px ;
108
+ border : 1px solid var (--vtl-background );
109
+ box-shadow : 0 0 0 1px rgba (255 ,255 ,255 ,.2 ), 0 10px 20px rgba (0 ,0 ,0 ,.1 );
96
110
}
97
111
98
112
.code-wrapper {
103
117
display : inline-block ;
104
118
margin-bottom : 1rem ;
105
119
border : 1px solid rgba (255 , 255 , 255 , .2 );
120
+ white-space : break- spaces;
106
121
}
107
122
108
123
header {
@@ -112,19 +127,53 @@ header {
112
127
.logo {
113
128
display : inline-flex ;
114
129
align-items : center ;
130
+ h1 {
131
+ font-weight : bold ;
132
+ font-size : 1.5rem ;
133
+ color : var (--color-text );
134
+ margin-left : 1rem ;
135
+ }
115
136
}
116
137
117
138
.logo :hover {
118
139
background : transparent ;
119
140
}
120
141
142
+ @media screen and (max-width : 800px ) {
143
+ .logo h1 {
144
+ font-size : 1rem ;
145
+ }
146
+ }
147
+
148
+ .button-modal {
149
+ background : var (--vtl-background-gradient );
150
+ color : var (--color-text );
151
+ display : flex ;
152
+ justify-content : center ;
153
+ align-items : center ;
154
+ border-radius : 10px ;
155
+ border : 1px solid var (--vtl-background );
156
+ padding : .5rem 1rem .5rem .5rem ;
157
+ cursor : pointer ;
158
+ margin-bottom : 1rem ;
159
+ margin-left : 1rem ;
160
+ svg {
161
+ margin-right : 1rem ;
162
+ }
163
+ }
164
+
121
165
.input-search {
122
166
padding : 1rem ;
123
167
margin : 1rem 0 ;
168
+ margin-top : 0 ;
124
169
border-radius : 10px ;
125
170
background : var (--vtl-background );
126
171
border : 2px solid var (--vtl-background );
127
172
color : var (--color-text );
128
- width : calc (100% - 2rem );
173
+ width : calc (100% - 1rem );
174
+ }
175
+
176
+ .install {
177
+ display : flex ;
129
178
}
130
179
</style >
0 commit comments