-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvcard.html
198 lines (186 loc) · 10.6 KB
/
vcard.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Generador de VCARD QR</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="sidebar">
<h2>Menu</h2>
<nav>
<a href="index.html" class="nav-item">URL QR</a>
<a href="#" class="nav-item active">VCARD QR</a>
</nav>
</div>
<div class="main-content">
<div class="container">
<h1>Generador de QR para VCARD</h1>
<div class="app-container">
<div class="qr-preview">
<div class="qr-container">
<div id="vcardQrCode"></div>
</div>
<div class="qr-style-controls">
<div class="control-group">
<label>Estilo de Puntos</label>
<div class="style-options">
<button class="style-option active" data-dots-type="square">
<div class="preview-box">
<div class="dot square"></div>
<div class="dot square"></div>
<div class="dot square"></div>
</div>
<span>Cuadrados</span>
</button>
<button class="style-option" data-dots-type="dots">
<div class="preview-box">
<div class="dot dots"></div>
<div class="dot dots"></div>
<div class="dot dots"></div>
</div>
<span>Círculos</span>
</button>
<button class="style-option" data-dots-type="rounded">
<div class="preview-box">
<div class="dot rounded"></div>
<div class="dot rounded"></div>
<div class="dot rounded"></div>
</div>
<span>Redondeados</span>
</button>
<button class="style-option" data-dots-type="classy">
<div class="preview-box">
<div class="dot classy"></div>
<div class="dot classy"></div>
<div class="dot classy"></div>
</div>
<span>Elegante</span>
</button>
</div>
</div>
<div class="control-group">
<label>Estilo de Esquinas</label>
<div class="style-options">
<button class="style-option active" data-corner-type="square">
<div class="preview-box">
<div class="corner square"></div>
</div>
<span>Cuadradas</span>
</button>
<button class="style-option" data-corner-type="dot">
<div class="preview-box">
<div class="corner dot"></div>
</div>
<span>Círculos</span>
</button>
<button class="style-option" data-corner-type="extra-rounded">
<div class="preview-box">
<div class="corner extra-rounded"></div>
</div>
<span>Extra Redondas</span>
</button>
</div>
</div>
<div class="control-group">
<label>Color</label>
<div class="color-options">
<button class="color-option active" style="background-color: #000000" data-color="#000000">
<span class="color-name">Negro</span>
</button>
<button class="color-option" style="background-color: #0066FF" data-color="#0066FF">
<span class="color-name">Azul</span>
</button>
<button class="color-option" style="background-color: #FF6B2C" data-color="#FF6B2C">
<span class="color-name">Naranja</span>
</button>
<button class="color-option" style="background-color: #F03E3E" data-color="#F03E3E">
<span class="color-name">Rojo</span>
</button>
<button class="color-option" style="background-color: #37B24D" data-color="#37B24D">
<span class="color-name">Verde</span>
</button>
<button class="color-option" style="background-color: #7950F2" data-color="#7950F2">
<span class="color-name">Violeta</span>
</button>
</div>
</div>
<div class="control-group">
<label>Tamaño y Formato</label>
<div class="size-format-controls">
<div class="size-control">
<span class="size-label">Tamaño: <span id="vcard-size-value">400x400</span></span>
<input type="range" id="vcard-size-slider" min="200" max="800" value="400" step="50">
</div>
<select id="vcard-format-select" class="format-select">
<option value="png">PNG</option>
<option value="jpeg">JPG</option>
<option value="webp">WebP</option>
</select>
</div>
</div>
</div>
</div>
<div class="controls">
<div class="tabs">
<button class="tab-btn active" data-tab="basic">Básico</button>
<button class="tab-btn" data-tab="contact">Contacto</button>
<button class="tab-btn" data-tab="social">Redes Sociales</button>
<button class="tab-btn" data-tab="location">Ubicación</button>
<button class="tab-btn" data-tab="additional">Adicional</button>
</div>
<div class="tab-content active" id="basic">
<div class="input-group">
<input type="text" id="vcard-name" placeholder="Nombre completo *" required>
<input type="text" id="vcard-title" placeholder="Título o cargo">
<input type="text" id="vcard-company" placeholder="Empresa">
</div>
</div>
<div class="tab-content" id="contact">
<div class="input-group">
<input type="email" id="vcard-email" placeholder="Email principal">
<input type="email" id="vcard-email2" placeholder="Email secundario">
<input type="tel" id="vcard-phone" placeholder="Teléfono fijo">
<input type="tel" id="vcard-mobile" placeholder="Teléfono móvil">
<input type="tel" id="vcard-fax" placeholder="Fax">
</div>
</div>
<div class="tab-content" id="social">
<div class="input-group">
<input type="url" id="vcard-website" placeholder="Sitio web">
<input type="url" id="vcard-linkedin" placeholder="LinkedIn URL">
<input type="url" id="vcard-twitter" placeholder="Twitter/X URL">
<input type="url" id="vcard-facebook" placeholder="Facebook URL">
<input type="url" id="vcard-instagram" placeholder="Instagram URL">
</div>
</div>
<div class="tab-content" id="location">
<div class="input-group">
<input type="text" id="vcard-street" placeholder="Calle y número">
<input type="text" id="vcard-city" placeholder="Ciudad">
<input type="text" id="vcard-state" placeholder="Estado/Provincia">
<input type="text" id="vcard-country" placeholder="País">
<input type="text" id="vcard-postal" placeholder="Código Postal">
</div>
</div>
<div class="tab-content" id="additional">
<div class="input-group">
<input type="text" id="vcard-birthday" placeholder="Fecha de nacimiento (YYYY-MM-DD)">
<input type="text" id="vcard-notes" placeholder="Notas adicionales">
</div>
</div>
<div class="control-group download-section">
<button id="vcard-download-btn" class="download-button">
<span class="icon">⬇</span>
Descargar
</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/[email protected]/lib/qr-code-styling.js"></script>
<script src="vcard.js"></script>
</body>
</html>