-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChips.html
281 lines (273 loc) · 15.9 KB
/
Chips.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="component-ui.css">
<link rel="icon" href="ic.ico">
<title>Chips</title>
<script src="https://kit.fontawesome.com/aa04ad0668.js" crossorigin="anonymous"></script>
<style>
#chips {
background-color: #3a776c;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(10px);
}
</style>
</head>
<body>
<div class="container">
<!-- Top Navigation -->
<nav class="nav">
<div class="navigation-top">
<div id="start">
<span id="menu-toggle" onclick="mainSide()"><i class="fas fa-bars"></i></span>
<span id="web-name">COLOR COMPONENTS</span>
</div>
</div>
</nav>
<!-- Side Navigation -->
<div id="side">
<ul id="side-list">
<div class="logo">
<a href="index.html">
<img src="https://bit.ly/3GOvMbM" /></a>
</div>
<li id="avatars"><a href="avatars.html"> Avatars</a></li>
<li id="alert"><a href="Alert.html"> Alert</a></li>
<li id="audio"><a href="Audio-component.html">Audio</a></li>
<li id="btn"><a href="buttons.html"> Buttons</a></li>
<li id="card"><a href="cards.html"> Cards</a></li>
<li id="chips"><a href="Chips.html"> Chips</a></li>
<li id="images"><a href="images.html"> Images</a></li>
<li id="login"><a href="Login.html"> Login Forms</a></li>
<li id="modals"><a href="Modals.html"> Modal</a></li>
<li id="navbar"><a href="Navbar.html"> Navbar</a></li>
<li id="snack"><a href="snackbar.html"> Snackbar</a></li>
</ul>
</div>
<!-- Main Content -->
<div class="cont" id="page-cont">
<span class="heading">Chips</span>
<p class="component-description">
Chips are compact elements that represent an input, attribute, or action. All chips now share a boxier
shape with rounded corners, updated color mappings, and dynamic color compatibility.
<br>
<br>
<span>
Ex:- E-commerce Websites, Social Media Websites, Coding Platforms,etc.
</span>
</p>
<p class="component-description">
<!-- Component Title -->
<span id="plain-chips-title" class="sub-heading">Plain Chips</span>
<span id="action-chips-title" class="sub-heading">Action Chips</span>
<span id="image-chips-title" class="sub-heading">Image Chips</span>
<span id="outline-chips-title" class="sub-heading">Outline Chips</span>
</p>
<div class="preview">
<div class="content-preview">
<!-- Plain Chips -->
<div id="plain-chips" class="chip-container">
<div class="chips-btn">
<span>Home</span>
</div>
<div class="chips-btn">
<span>Contacts</span>
</div>
<div class="chips-btn">
<span>Call</span>
</div>
<div class="chips-btn">
<span>Help</span>
</div>
</div>
<!-- Action Chips -->
<div id="action-chips" class="chip-container">
<div class="chips-btn">
<span><i class="fa-solid fa-house"></i> Home</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn">
<span><i class="fa-solid fa-id-badge"></i> Contacts</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn">
<span><i class="fa-solid fa-phone"></i> Call</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn">
<span><i class="fa-solid fa-circle-question"></i> Help</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
</div>
<!-- Image Chips -->
<div id="image-chips" class="chip-container">
<div class="chips-btn">
<img src="avatar-1.jpg" alt="John" class="img-chip"> <span></span>John</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn">
<img src="avatar-2.jpg" alt="Anna" class="img-chip"><span>Anna</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn">
<img src="avatar-3.jpg" alt="Rock" class="img-chip"><span>Rock</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn">
<img src="avatar-4.jpg" alt="Annabelle" class="img-chip"> <span>Annabelle</span><i
class="fa-solid fa-xmark close-chip"></i>
</div>
</div>
<!-- Outline Chips -->
<div id="outline-chips" class="chip-container">
<div class="chips-btn primary-chip">
<span>Primary</span><i class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn secondary-chip">
<span>Secondary</span><i class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn success-chip">
<span>Success</span><i class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn warning-chip">
<span>Warning</span><i class="fa-solid fa-xmark close-chip"></i>
</div>
<div class="chips-btn info-chip">
<span>Info</span><i class="fa-solid fa-xmark close-chip"></i>
</div>
</div>
</div>
<select name="select-component" id="component-select" onchange="showDiv(this)">
<option value="0">Plain Chips</option>
<option value="1">Action Chips</option>
<option value="2">Image Chips</option>
<option value="3">Outline Chips</option>
</select>
</div>
<span class="Code-title">HTML Code</span>
<div class="code">
<div id="con">
<i class="fa fa-solid fa-circle red"></i>
<i class="fa fa-solid fa-circle green"></i>
<i class="fa fa-solid fa-circle yellow"></i>
</div>
<p id="copy-code">
<!-- Plain Chips Code -->
<span id="plain-chips-code">
<div id="plain-chips" class="chip-container"><br>
<div class="chips-btn"><br>
<span>Home</span><br>
</div><br>
<div class="chips-btn"><br>
<span>Contacts</span><br>
</div><br>
<div class="chips-btn"><br>
<span>Call</span><br>
</div><br>
<div class="chips-btn"><br>
<span>Help</span><br>
</div><br>
</div><br>
</span>
<!-- Action Chips Code-->
<span id="action-chips-code">
<div id="action-chips" class="chip-container"><br>
<div class="chips-btn"><br>
<span><i class="fa-solid
fa-house"></i> Home</span><i class="fa-solid fa-xmark
close-chip"></i>
</div><br>
<div class="chips-btn"><br>
<span><i class="fa-solid
fa-id-badge"></i> Contacts</span><i class="fa-solid fa-xmark
close-chip"></i><br>
</div><br>
<div class="chips-btn"><br>
<span><i class="fa-solid
fa-phone"></i> Call</span><i
class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn"><br>
<span><i class="fa-solid
fa-circle-question"></i> Help</span><i
class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
</div>
</span>
<!-- Image Chips Code-->
<span id="image-chips-code">
<div id="image-chips" class="chip-container"><br>
<div class="chips-btn"><br>
<img src="https://color-components.netlify.app/avatar-1.jpg" alt="John"
class="img-chip"> <span></span>John</span><i
class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn"><br>
<img src="https://color-components.netlify.app/avatar-2.jpg" alt="Anna"
class="img-chip"><span>Anna</span><i
class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn"><br>
<img src="https://color-components.netlify.app/avatar-3.jpg" alt="Rock"
class="img-chip"><span>Rock</span><i
class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn"><br>
<img src="https://color-components.netlify.app/avatar-4.jpg" alt="Annabelle"
class="img-chip">
<span>Annabelle</span><i
class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
</div>
</span>
<!-- Outline Chips -->
<span id="outline-chips-code">
<div id="outline-chips" class="chip-container"><br>
<div class="chips-btn primary-chip"><br>
<span>Primary</span><i class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn secondary-chip"><br>
<span>Secondary</span><i class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn success-chip"><br>
<span>Success</span><i class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn warning-chip"><br>
<span>Warning</span><i class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
<div class="chips-btn info-chip"><br>
<span>Info</span><i class="fa-solid fa-xmark close-chip"></i><br>
</div><br>
</div><br>
</span>
</p>
<div class="bt">
<button onclick="copyToClipboard()" id="copy-btn"><i class="fa fa-solid fa-copy"></i></button>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<div id="foot">
<a href="https://www.facebook.com/profile.php?id=100007834680360" target="_blank" id="fb">
<i class="fab fa-facebook"></i>
</a>
<a href="https://www.instagram.com/ayush1308rj/" target="_blank" id="insta">
<i class="fab fa-instagram"></i>
</a>
<a href="https://www.linkedin.com/in/ayush-r-1a9095119/" target="_blank" id="linked">
<i class="fab fa-linkedin"></i>
</a>
<a href="https://github.com/Ayush-1315" target="_blank" id="git">
<i class="fab fa-github"></i>
</a>
</div>
<p>© All Copyrights are reserved to Color Components UI</p>
</footer>
</div>
<script src="Chips.js"></script>
</body>
</html>