-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
98 lines (90 loc) · 5.11 KB
/
index.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
<!DOCTYPE html>
<html lang="es-419">
<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">
<title>Generador de código QR para redirigir a tu sitio web en linea | Gratis</title>
<meta name="title" content="Generador de código QR para redirigir a tu sitio web en linea | Gratis">
<meta name="description"
content="Genera un código de QR como imagen que te redirija a tu sitio web gratis, Agrega el URL de tu negocio, selcciona el tamano y listo.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://hectorromerodev.github.io/qr-code-generator/">
<meta property="og:title" content="Generador de código QR para redirigir a tu sitio web en linea | Gratis">
<meta property="og:description"
content="Genera un código de QR como imagen que te redirija a tu sitio web gratis, Agrega el URL de tu negocio, selcciona el tamano y listo.">
<meta property="og:image" content="https://hectorromerodev.github.io/qr-code-generator/assets/qr-code.52d2730a.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://hectorromerodev.github.io/qr-code-generator/">
<meta property="twitter:title" content="Generador de código QR para redirigir a tu sitio web en linea | Gratis">
<meta property="twitter:description"
content="Genera un código de QR como imagen que te redirija a tu sitio web gratis, Agrega el URL de tu negocio, selcciona el tamano y listo.">
<meta property="twitter:image"
content="https://hectorromerodev.github.io/qr-code-generator/assets/qr-code.52d2730a.png">
<meta name="description"
content="Genera un código de QR como imagen que te redirija a tu sitio web gratis, Agrega el URL de tu negocio, selcciona el tamano y listo." />
<link rel="icon" type="image/png" href="qr-code-ico.png" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="src/assets/css/app.css">
</head>
<body>
<header class="p-4 mb-10 bg-blue-900">
<div class="max-w-5xl m-auto">
<div class="text-xl font-bold text-white">Generador de código QR</div>
</div>
</header>
<main id="app">
<div class="flex flex-col-reverse align-center justify-center m-auto md:max-w-4xl p-5 md:flex-row">
<section class="w-full md:w-2/3 mr-24">
<h1 class="text-3xl font-bold mb-5 md:text-4xl">Generador de código QR</h1>
<p class="mb-4">
Los códigos QR permiten a los usuarios de teléfonos inteligentes acceder a tu sitio web de manera simple y
rápida.
</p>
<p>
Ingrese su URL para generar au código QR y descargar la imagen.
</p>
<form id="qr-generate-form" class="mt-4">
<label for="url">Tu Sitio web <span class="m-0 p-0 text-xs text-slate-600 dark:text-slate-400">(No olvides "http://" o
"https://")</span></label>
<input id="url" type="url" placeholder="Ingresa el URL de tu negocio, restaurante ó red social."
class="w-full border-2 border-gray-200 rounded px-3 pt-3 text-grey-dark mr-2 focus:outline-none mb-5" required />
<label for="size">Dimensiones <span class="m-0 p-0 text-xs text-slate-600 dark:text-slate-400">(px)</span></label>
<select name="size" id="size"
class="w-full border-2 border-gray-200 rounded p-3 text-grey-dark mr-2 focus:outline-none">
<option value="100">100x100</option>
<option value="150">150x150</option>
<option value="200">200x200</option>
<option value="250" selected>250x250</option>
<option value="300">300x300</option>
<option value="400">400x400</option>
<option value="500">500x500</option>
<option value="600">600x600</option>
<option value="700">700x700</option>
</select>
<button class="bg-gray-600 rounded w-full text-white py-3 px-4 mt-5 hover:bg-black" type="submit">
Generar código QR
</button>
</form>
</section>
<section>
<img id="qr-image" class="mx-auto" height="200" width="200" src="src/assets/media/qr-code.png"
alt="Imagen de Codigo QR">
</section>
<section id="qr-generated" class="mx-w-5xl m-auto flex flex-col text-center align-center justify-center mt-20">
<!-- LOADER -->
<div id="loader" role="status">
<img src="src/assets/media/rolling-0.8s-200px.svg" alt="Loader spinner animation">
</div>
<div id="qrcode" class="m-auto"></div>
</section>
</div>
</main>
<script type="module" src="src/main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"
integrity="sha512-CNgIRecGo7nphbeZ04Sc13ka07paqdeTu0WR1IM4kNcpmBAUSHSQX0FslNhTDadL4O5SAGapGt4FodqL8My0mA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>