-
Notifications
You must be signed in to change notification settings - Fork 0
/
vcard.html
78 lines (76 loc) · 1.96 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
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
}
.ticket {
margin: 50px auto;
width: 500px;
height: 400px;
background: #f0f0f0;
border-radius: 8px;
box-shadow: 0px 0px 10px 0px #000;
padding: 20px;
position: relative;
overflow: hidden;
}
.ticket:before {
content: "";
position: absolute;
top: 0;
right: 0;
border-width: 0 20px 20px 0;
border-style: solid;
border-color: #fff #fff #bbb #bbb;
background: #fff;
width: 50px;
height: 50px;
box-shadow: -1px 1px 1px rgba(0,0,0,0.2);
transform: rotate(-45deg);
z-index: 1;
}
.ticket-info {
margin-top: 30px;
}
.ticket-info h1 {
font-size: 24px;
margin-bottom: 10px;
}
.ticket-info p {
font-size: 16px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="ticket">
<div class="ticket-info">
<h1>Rodrigo Ferraz Azevedo</h1>
<p>E-mail: [email protected]</p>
<p>Fone: (11) 7070-7070</p>
<p>777 Massachusetts Ave;Cambridge;MA;02139-4307;USA</p>
<br>
<div id="qrcode"></div>
<script type="text/javascript">
var qrcode = new QRCode("qrcode", {
text: "BEGIN:VCARD\n" +
"VERSION:3.0\n" +
"N:Azevedo;Rodrigo;;Mr.;\n" +
"FN:Rodrigo Azevedo\n" +
"ORG:EuMesmo Co.\n" +
"TITLE:The Boss\n" +
"TEL;TYPE=WORK,VOICE:(11) 7070-7070\n" +
"ADR;TYPE=WORK:;;777 Massachusetts Ave;Cambridge;MA;02139-4307;USA\n" +
"EMAIL;TYPE=PREF,INTERNET:[email protected]\n" +
"END:VCARD",
width: 128,
height: 128
});
</script>
</div>
</div>
</body>
</html>