-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnippets.html
More file actions
executable file
·305 lines (264 loc) · 12 KB
/
Copy pathsnippets.html
File metadata and controls
executable file
·305 lines (264 loc) · 12 KB
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
305
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Elements | Snippets Gallery</title>
<link rel="stylesheet" href="./src/style.sass">
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
font-family: 'Outfit', sans-serif;
background: #0f172a;
color: #fff;
}
header {
padding: 20px 40px;
background: rgba(255, 255, 255, 0.05);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 { margin: 0; font-size: 1.5rem; color: #38bdf8; }
header a { color: #94a3b8; text-decoration: none; }
header a:hover { color: #fff; }
.container {
max-width: 1000px;
margin: 40px auto;
padding: 0 20px;
}
h2 {
font-size: 2.5rem;
border-bottom: 2px solid rgba(56, 189, 248, 0.5);
padding-bottom: 10px;
margin-top: 60px;
}
.snippet-card {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 30px;
margin-bottom: 40px;
}
.snippet-title {
font-size: 1.2rem;
color: #38bdf8;
margin-top: 0;
margin-bottom: 20px;
}
.demo-area {
margin-bottom: 20px;
padding: 20px;
background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
border-radius: 8px;
}
</style>
</head>
<body>
<header>
<h1>Elements Snippets</h1>
<a href="index.html">← Back to Docs</a>
</header>
<main class="container">
<h2>Meters</h2>
<div class="snippet-card">
<h3 class="snippet-title">1. The Classic Loading Bar</h3>
<div class="demo-area">
<jl-meter value="30" theme="primary" variant="flat">30%</jl-meter>
</div>
<jl-code><jl-meter value="30" theme="primary" variant="flat">30%</jl-meter></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">2. The 3D Barber Pole</h3>
<div class="demo-area">
<jl-meter value="75" theme="secondary" variant="3d" stripes="true" animated="true" size="lg">Processing...</jl-meter>
</div>
<jl-code><jl-meter value="75" theme="secondary" variant="3d" stripes="true" animated="true" size="lg">Processing...</jl-meter></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">3. Minimal Rounded Tracker</h3>
<div class="demo-area">
<jl-meter value="90" theme="dark" variant="rounded" size="sm"></jl-meter>
</div>
<jl-code><jl-meter value="90" theme="dark" variant="rounded" size="sm"></jl-meter></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">4. Critical Alert Progress</h3>
<div class="demo-area">
<jl-meter value="99" theme="alert" variant="soft" stripes="true" animated="true">CRITICAL</jl-meter>
</div>
<jl-code><jl-meter value="99" theme="alert" variant="soft" stripes="true" animated="true">CRITICAL</jl-meter></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">5. The Rainbow Dash</h3>
<div class="demo-area">
<jl-meter value="100" theme="rainbow" variant="3d" stripes="true">COMPLETED</jl-meter>
</div>
<jl-code><jl-meter value="100" theme="rainbow" variant="3d" stripes="true">COMPLETED</jl-meter></jl-code>
</div>
<h2>Buttons</h2>
<div class="snippet-card">
<h3 class="snippet-title">1. Standard Primary Action</h3>
<div class="demo-area">
<jl-button theme="primary" variant="rounded">Submit Form</jl-button>
</div>
<jl-code><jl-button theme="primary" variant="rounded">Submit Form</jl-button></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">2. Warning 3D Clicker</h3>
<div class="demo-area">
<jl-button theme="warning" variant="3d">Are you sure?</jl-button>
</div>
<jl-code><jl-button theme="warning" variant="3d">Are you sure?</jl-button></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">3. Soft Neumorphic Ghost</h3>
<div class="demo-area">
<jl-button theme="dark" variant="soft">Cancel</jl-button>
</div>
<jl-code><jl-button theme="dark" variant="soft">Cancel</jl-button></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">4. Alert Action</h3>
<div class="demo-area">
<jl-button theme="alert" variant="flat">Delete Account</jl-button>
</div>
<jl-code><jl-button theme="alert" variant="flat">Delete Account</jl-button></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">5. Success Badge</h3>
<div class="demo-area">
<jl-button theme="secondary" variant="3d">Save Successfully</jl-button>
</div>
<jl-code><jl-button theme="secondary" variant="3d">Save Successfully</jl-button></jl-code>
</div>
<h2>Alerts</h2>
<div class="snippet-card">
<h3 class="snippet-title">1. Standard Information</h3>
<div class="demo-area">
<jl-alert theme="primary" variant="flat" title="Info" dismissible="true">Please update your account details.</jl-alert>
</div>
<jl-code><jl-alert theme="primary" variant="flat" title="Info" dismissible="true">Please update your account details.</jl-alert></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">2. Critical Error (3D Convex)</h3>
<div class="demo-area">
<jl-alert theme="alert" variant="3d" title="Error!" dismissible="false">A critical system failure occurred.</jl-alert>
</div>
<jl-code><jl-alert theme="alert" variant="3d" title="Error!" dismissible="false">A critical system failure occurred.</jl-alert></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">3. Success Notification (Soft Neumorphic)</h3>
<div class="demo-area">
<jl-alert theme="secondary" variant="soft" title="Success!" dismissible="true">Your changes have been saved successfully.</jl-alert>
</div>
<jl-code><jl-alert theme="secondary" variant="soft" title="Success!" dismissible="true">Your changes have been saved successfully.</jl-alert></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">4. Warning Banner (Rounded)</h3>
<div class="demo-area">
<jl-alert theme="warning" variant="rounded" title="Caution" dismissible="true">Your session is about to expire.</jl-alert>
</div>
<jl-code><jl-alert theme="warning" variant="rounded" title="Caution" dismissible="true">Your session is about to expire.</jl-alert></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">5. Dark Mode Message</h3>
<div class="demo-area">
<jl-alert theme="dark" variant="flat" dismissible="true">This is a subtle dark mode notification.</jl-alert>
</div>
<jl-code><jl-alert theme="dark" variant="flat" dismissible="true">This is a subtle dark mode notification.</jl-alert></jl-code>
</div>
<h2>Code Blocks</h2>
<div class="snippet-card">
<h3 class="snippet-title">1. Standard macOS Window</h3>
<div class="demo-area">
<jl-code theme="dark" variant="flat" mac-frame="true" language="js">const x = 42;</jl-code>
</div>
<jl-code><jl-code theme="dark" variant="flat" mac-frame="true" language="js">const x = 42;</jl-code></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">2. Plain Flat Block</h3>
<div class="demo-area">
<jl-code theme="dark" variant="flat" mac-frame="false">echo "Hello World"</jl-code>
</div>
<jl-code><jl-code theme="dark" variant="flat" mac-frame="false">echo "Hello World"</jl-code></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">3. Soft Neumorphic Dark</h3>
<div class="demo-area">
<jl-code theme="dark" variant="soft" mac-frame="true" language="python">print("Neumorphic code block")</jl-code>
</div>
<jl-code><jl-code theme="dark" variant="soft" mac-frame="true" language="python">print("Neumorphic code block")</jl-code></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">4. Light Theme Code</h3>
<div class="demo-area">
<jl-code theme="primary" variant="flat" mac-frame="true" language="css">body { color: blue; }</jl-code>
</div>
<jl-code><jl-code theme="primary" variant="flat" mac-frame="true" language="css">body { color: blue; }</jl-code></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">5. 3D Beveled Code Window</h3>
<div class="demo-area">
<jl-code theme="dark" variant="3d" mac-frame="true" language="html"><div class="box"></div></jl-code>
</div>
<jl-code><jl-code theme="dark" variant="3d" mac-frame="true" language="html">&lt;div class="box"&gt;&lt;/div&gt;</jl-code></jl-code>
</div>
<h2>Popups (Modals)</h2>
<div class="snippet-card">
<h3 class="snippet-title">1. Standard Primary Popup</h3>
<div class="demo-area">
<jl-button onclick="document.getElementById('p1').setAttribute('open', 'true')">Open Popup</jl-button>
<jl-popup id="p1" theme="primary" variant="flat">
<h2>Hello</h2><p>This is a standard flat popup.</p>
</jl-popup>
</div>
<jl-code><jl-button onclick="...">Open</jl-button>
<jl-popup id="p1" theme="primary" variant="flat">...</jl-popup></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">2. Dark Mode 3D Modal</h3>
<div class="demo-area">
<jl-button onclick="document.getElementById('p2').setAttribute('open', 'true')" theme="dark" variant="3d">Open 3D Modal</jl-button>
<jl-popup id="p2" theme="dark" variant="3d">
<h2>Confirm</h2><p>Are you sure you want to proceed?</p>
</jl-popup>
</div>
<jl-code><jl-popup theme="dark" variant="3d">...</jl-popup></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">3. Alert Error Dialog</h3>
<div class="demo-area">
<jl-button onclick="document.getElementById('p3').setAttribute('open', 'true')" theme="alert" variant="rounded">Show Error</jl-button>
<jl-popup id="p3" theme="alert" variant="rounded">
<h2>Fatal Error</h2><p>Something went terribly wrong.</p>
</jl-popup>
</div>
<jl-code><jl-popup theme="alert" variant="rounded">...</jl-popup></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">4. Soft Neumorphic Dialog</h3>
<div class="demo-area">
<jl-button onclick="document.getElementById('p4').setAttribute('open', 'true')" theme="secondary" variant="soft">Open Soft Modal</jl-button>
<jl-popup id="p4" theme="secondary" variant="soft">
<h2>Soft Modal</h2><p>This is a soft neumorphic styled popup.</p>
</jl-popup>
</div>
<jl-code><jl-popup theme="secondary" variant="soft">...</jl-popup></jl-code>
</div>
<div class="snippet-card">
<h3 class="snippet-title">5. Custom Rainbow Modal</h3>
<div class="demo-area">
<jl-button onclick="document.getElementById('p5').setAttribute('open', 'true')" theme="rainbow" variant="3d">Rainbow Dialog</jl-button>
<jl-popup id="p5" theme="rainbow" variant="3d">
<h2>Winner!</h2><p>You have won the prize.</p>
</jl-popup>
</div>
<jl-code><jl-popup theme="rainbow" variant="3d">...</jl-popup></jl-code>
</div>
</main>
<script type="module" src="./src/script.js"></script>
</body>
</html>