-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
111 lines (109 loc) · 3.86 KB
/
Copy pathindex.html
File metadata and controls
111 lines (109 loc) · 3.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./src/styles/global.css">
<title>.:: Curso Web Components ::.</title>
</head>
<body>
<main>
<div>
<h1>P-001 : Status Badge</h1>
<div>
<status-badge state></status-badge>
<status-badge></status-badge>
</div>
</div>
<div>
<h1>P-002 : Status Badge Timer</h1>
<div>
<status-badge-timer seconds="2.5"></status-badge-timer>
</div>
</div>
<div>
<h1>P-003 : Status Badge DOM</h1>
<div>
<status-badge-dom state></status-badge-dom>
<status-badge-dom seconds="3"></status-badge-dom>
</div>
</div>
<div>
<h1>P-004 : Usando Templates y Slots</h1>
<div>
<user-profile>
<img slot="avatar" src="./src/assets/gato.png" alt="User Profile">
<span slot="name">Gato</span>
<status-badge-dom slot="status" state></status-badge-dom>
</user-profile>
</div>
</div>
<div>
<h1>P-005 : Usando Templates y Slots event</h1>
<div>
<user-profile-event>
<img slot="avatar" src="./src/assets/gato.png" alt="User Profile">
<span slot="name">Gato</span>
<status-badge-dom slot="status"></status-badge-dom>
</user-profile-event>
</div>
</div>
<div>
<h1>E-001 : Notification Toast</h1>
<div>
<notification-toast type="success" seconds="3">
<p slot="message">This is a warning notification.</p>
</notification-toast>
</div>
<div>
<notification-toast type="info" seconds="6">
<p slot="message">This is a warning notification.</p>
</notification-toast>
</div>
<div>
<notification-toast type="error" seconds="9">
<p slot="message">This is a warning notification.</p>
</notification-toast>
</div>
<div>
<notification-toast type="warn" seconds="12">
<p slot="message">This is a warning notification.</p>
</notification-toast>
</div>
</div>
<div>
<h1>P-006 : Notification Toast Card</h1>
<div><button id="btn-random">Random Toast</button></div>
<div>
<toast-card seconds="3" type="success" message="This is a success notification."></toast-card>
</div>
</div>
<div>
<h1>P-006A : Container / Presentational Component</h1>
<div>
<toast-manager></toast-manager>
</div>
</div>
<div>
<h1>P-006B : combinando lo 3 patrones</h1>
<div>
<!-- Badge en Navbar -->
<div class="box">
<notification-badge></notification-badge>
</div>
<!-- Panel de Control -->
<div class="box">
<notification-actions></notification-actions>
</div>
<!-- Lista de Notificaciones (Contenedor Inteligente) -->
<div class="box">
<h3>Lista de Alertas</h3>
<notification-list-container></notification-list-container>
</div>
</div>
</div>
</main>
<!-- Invocador principal de webcomponents -->
<script type="module" src="./src/index.js"></script>
</body>
</html>