-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (65 loc) · 2.63 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
<!doctype html>
<html lang="pt-BR" class="h-100">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Crie seu qr code gratuitamente">
<meta name="author" content="Cristian Pessanha da Silva">
<title>Gerador de Qrcode</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/cover.css" rel="stylesheet">
<script src="js/vue.min.js"></script>
<script src="js/qrious.min.js"></script>
</head>
<body class="d-flex h-100 text-center text-bg-dark">
<div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
<header class="mb-4">
<div>
<h3 class="float-md-start mb-0"><svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" fill="currentColor" class="bi bi-qr-code" viewBox="0 0 16 16">
<path d="M2 2h2v2H2V2Z"/>
<path d="M6 0v6H0V0h6ZM5 1H1v4h4V1ZM4 12H2v2h2v-2Z"/>
<path d="M6 10v6H0v-6h6Zm-5 1v4h4v-4H1Zm11-9h2v2h-2V2Z"/>
<path d="M10 0v6h6V0h-6Zm5 1v4h-4V1h4ZM8 1V0h1v2H8v2H7V1h1Zm0 5V4h1v2H8ZM6 8V7h1V6h1v2h1V7h5v1h-4v1H7V8H6Zm0 0v1H2V8H1v1H0V7h3v1h3Zm10 1h-1V7h1v2Zm-1 0h-1v2h2v-1h-1V9Zm-4 0h2v1h-1v1h-1V9Zm2 3v-1h-1v1h-1v1H9v1h3v-2h1Zm0 0h3v1h-2v1h-1v-2Zm-4-1v1h1v-2H7v1h2Z"/>
<path d="M7 12h1v3h4v1H7v-4Zm9 2v2h-3v-1h2v-1h1Z"/>
</svg></h3>
<nav class="nav nav-masthead justify-content-center float-md-end">
<a class="nav-link fw-bold py-1 px-0 active" href="/">Inicio</a>
<a class="nav-link fw-bold py-1 px-0" href="sobre.html">Sobre</a>
<a class="nav-link fw-bold py-1 px-0" href="contato.html">Contato</a>
</nav>
</div>
</header>
<main class="px-3 text-start">
<h1>Crie seu QR code grátis!</h1>
<div id="app">
<div class="py-2">
<input type="text" class="form-control" size="25" placeholder="Digite para gerar..." v-model="text">
</div>
<span>{{ title }}</span>
<div v-if="text" class="output text-center">
<img :src="newQRCode" alt="QRCode">
</div>
</div>
</main>
<footer class="mt-auto text-white-50">
<p>Desenvolvido por Cristian Pessanha</p>
</footer>
</div>
<script>
new Vue({
el: '#app',
data: {
title: 'QR Code será criado automaticamente',
text: '',
qrcode: new QRious({size: 280})
},
computed: {
newQRCode(){
this.qrcode.value = this.text
return this.qrcode.toDataURL()
}
}
})
</script>
</body>
</html>