-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModals.html
304 lines (293 loc) · 16.4 KB
/
Modals.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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!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>Modal</title>
<script src="https://kit.fontawesome.com/aa04ad0668.js" crossorigin="anonymous"></script>
<link
href="https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Nunito&family=Quintessential&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@100&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rowdies:wght@300&display=swap" rel="stylesheet">
<style>
#modals {
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">
<span class="heading">Modal</span>
<p class="component-description">
A modal (also called a modal window or lightbox) is a web page element that displays in front of and
deactivates all other page content. To return to the main content, the user must engage with the modal
by completing an action or by closing it.
<br>
<br>
<span>
Ex:- E-commerce Websites, Social Media Websites, Coding Platforms,etc.
</span>
</p>
<!-- Component Title -->
<span id="basic-modal-title" class="sub-heading">Basic Modal</span>
<span id="informative-modal-title" class="sub-heading">Informative Modal</span>
<span id="success-modal-title" class="sub-heading">Success Modal</span>
<span id="subscribe-modal-title" class="sub-heading">Subscribe Modal</span>
<span id="advertise-modal-title" class="sub-heading">Advertise Modal</span>
<div class="preview">
<div class="content-preview">
<!-- Basic Modal -->
<div id="basic-modal-demo" class="modal">
<div class="modal-header">
<h2 class="modal-title">Warning!</h2>
<span id="close-modal" onclick="closeModal()"><i class="fa-solid fa-xmark"></i></span>
</div>
<p class="modal-message">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Blanditiis
ratione
repellat quas est mollitia in adipisci aperiam alias ad ex non qui ea officia cumque harum,
soluta
reprehenderit, veritatis voluptates!</p>
<div class="modal-footer">
<button class="cancel" onclick="closeModal()">Cancel</button>
<button class="accept">Accept</button>
</div>
</div>
<!-- Informative Modal -->
<div id="informative-modal-demo" class="modal">
<div class="modal-header">
<span id="close-modal" onclick="closeModal()"><i class="fa-solid fa-xmark"></i></span>
</div>
<p class="modal-message"><img src="images/mail.png" alt="" class="modal-image"></p>
<div class="modal-text">
<h2 class="modal-Text">New: Follow-up Emails</h2>
<h4 class="modal-Text">Automatically send your invitees a follow-up email after you meet.
</h4>
</div>
<div class="modal-footer">
<button class="accept modal-cng">Learn More</button>
<button class="cancel" onclick="closeModal()">Got It</button>
</div>
</div>
<!-- Success Modal -->
<div id="success-modal-demo" class="modal">
<div class="modal-header">
<span id="close-modal" onclick="closeModal()"><i class="fa-solid fa-xmark"></i></span>
</div>
<p class="modal-message"><img src="success.gif" alt="" class="modal-image"></p>
<div class="modal-text">
<h2 class="modal-Text">Payment Successful !</h2>
<h4 class="modal-Text">Your transaction ID is TRX0854632ID</h4>
</div>
<div class="modal-footer">
<button class="cancel" onclick="closeModal()">Close</button>
</div>
</div>
<!-- Subscribe Modal -->
<div id="subscribe-modal-demo" class="modal">
<div class="modal-content"
style="background: url('back.png') center center !important;">
<div class="modal-header">
<span id="close-modal" onclick="closeModal()"><i class="fa-solid fa-xmark"></i></span>
</div>
<div class="modal-text">
<h2 class="modal-Text">Newsletter</h2>
<p class="modal-message"><img src="mail2.png" alt="" class="modal-image"></p>
</div>
</div>
<div class="modal-footer">
<input type="email" class="subscriber" placeholder="E-mail address" required>
<button class="accept" onclick="closeModal()">Subscribe</button>
</div>
</div>
<!-- Advertise Modal -->
<div id="advertise-modal-demo" class="modal">
<div class="modal-content" style="background: url('summer1.jpg') center center">
<span class="advertise-title">SUMMER</span>
<span class="advertise-subtitle">Sale</span>
<div class="advertise-discount">
<p class="discount">40%<sup>OFF</sup></p>
</div>
</div>
<div class="modal-footer"
style="background: url('summer2.png') center center;background-size:100% 100%;">
<button class="accept" onclick="closeModal()">SHOP NOW</button>
<span id="close-modal" onclick="closeModal()"><i class="fa-solid fa-xmark"></i></span>
</div>
</div>
</div>
<select name="select-component" id="component-select" onchange="showDiv(this)">
<option value="0">Basic Modal</option>
<option value="1">Informative Modal</option>
<option value="2">Success Modal</option>
<option value="3">Subscribe Modal</option>
<option value="4">Advertise Modal</option>
</select>
</div>
<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">
<!-- Basic Modal -->
<span id="basic-modal-code">
<div id="basic-modal" class="modal"><br>
<div class="modal-header"><br>
<h2 class="modal-title">Warning!</h2><br>
<span id="close-modal" onclick="closeModal()"><i class="fa-solid
fa-xmark"></i></span><br>
</div><br>
<p class="modal-message">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Blanditiis
ratione
repellat quas est mollitia in adipisci aperiam alias ad ex non qui ea officia cumque harum,
soluta
reprehenderit, veritatis voluptates!</p><br>
<div class="modal-footer"><br>
<button class="cancel" onclick="closeModal()">Cancel</button><br>
<button class="accept">Accept</button><br>
</div><br>
</div><br>
</span>
<!-- Informative Modal -->
<span id="informative-modal-code">
<div id="informative-modal" class="modal"><br>
<div class="modal-header"><br>
<span id="close-modal" onclick="closeModal()"><i class="fa-solid
fa-xmark"></i></span><br>
</div><br>
<p class="modal-message"><img src="images/mail.png" alt="" class="modal-image"></p><br>
<div class="modal-text"><br>
<h2 class="modal-Text">New: Follow-up Emails</h2><br>
<h4 class="modal-Text">Automatically send your invitees a follow-up email after you meet.<br>
</h4><br>
</div><br>
<div class="modal-footer"><br>
<button class="accept modal-cng">Learn More</button><br>
<button class="cancel" onclick="closeModal()">Got It</button><br>
</div><br>
</div><br>
</span>
<!-- Success Modal -->
<span id="success-modal-code">
<div id="success-modal" class="modal"><br>
<div class="modal-header"><br>
<span id="close-modal" onclick="closeModal()"><i class="fa-solid
fa-xmark"></i></span><br>
</div><br>
<p class="modal-message"><img src="images/success.gif" alt=""
class="modal-image"></p><br>
<div class="modal-text"><br>
<h2 class="modal-Text">Payment Successful !</h2><br>
<h4 class="modal-Text">Your transaction ID is TRX0854632ID</h4><br>
</div><br>
<div class="modal-footer"><br>
<button class="cancel" onclick="closeModal()">Close</button><br>
</div><br>
</div><br>
</span>
<!-- Subscribe Modal -->
<span id="subscribe-modal-code">
<div id="subscribe-modal" class="modal"><br>
<div class="modal-content" style="background: url('images/back.png') center center
!important;"><br>
<div class="modal-header"><br>
<span id="close-modal" onclick="closeModal()"><i class="fa-solid
fa-xmark"></i></span><br>
</div><br>
<div class="modal-text"><br>
<h2 class="modal-Text">Newsletter</h2><br>
<p class="modal-message"><img src="images/mail2.png" alt=""
class="modal-image"></p><br>
</div><br>
</div><br>
<div class="modal-footer"><br>
<input type="email" class="subscriber" placeholder="E-mail address" required><br>
<button class="accept" onclick="closeModal()">Subscribe</button><br>
</div><br>
</div><br>
</span>
<!-- Advertise Modal -->
<span id="advertise-modal-code">
<div id="advertise-modal" class="modal"><br>
<div class="modal-content" style="background: url('images/summer1.jpg') center center"><br>
<span class="advertise-title">SUMMER</span><br>
<span class="advertise-subtitle">Sale</span><br>
<div class="advertise-discount"><br>
<p class="discount">40%<sup>OFF</sup></p><br>
</div><br>
</div><br>
<div class="modal-footer"
style="background: url('images/summer2.png') center center;background-size:100% 100%;"><br>
<button class="accept" onclick="closeModal()">SHOP NOW</button><br>
<span id="close-modal" onclick="closeModal()"><i class="fa-solid
fa-xmark"></i></span><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 Ayush Raj</p>
</footer>
</div>
<script src="modal.js"></script>
</body>
</html>