forked from SharmaS1402/Certifica_Authentify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qr-verify.html
177 lines (169 loc) · 4.41 KB
/
qr-verify.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>QR Code Verification</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
.container {
max-width: 500px;
margin: 0px auto;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #007bff;
}
.section {
background-color: #ffffff;
padding: 30px;
border: 1.5px solid #b2b2b2;
border-radius: 0.25em;
box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
margin-bottom: 20px;
}
#my-qr-reader {
padding: 20px;
border: 1.5px solid #b2b2b2;
border-radius: 8px;
text-align: center;
}
#certificateNumber {
width: calc(100% - 22px);
padding: 10px;
font-size: 16px;
border-radius: 5px;
border: 1px solid #ccc;
}
#qr-verify {
width: 100%;
padding: 10px;
font-size: 16px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
#qr-verify:hover {
background-color: #0056b3;
}
.form-group {
display: none;
}
/* copyright-rudransh */
.certificate-authentica-logo {
width: 300px;
height: auto;
margin-left: 50px;
border-right: 1px solid rgb(18, 18, 18);
}
.connect-btn button {
background-color: #007bff;
color: white;
padding: 5px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 5px;
align-items: center;
}
.navbar {
display: flex;
color: #656565;
width: 100%;
justify-content: start;
margin-bottom: 10px;
}
.navbarIcons {
margin-left: 20px;
display: flex;
width: 50vw;
text-wrap: nowrap;
justify-content: space-between;
align-items: center;
}
.navbarIcons button {
border: none;
/* background-color: #ffffff; */
font-size: 16px;
color: #656565;
font-weight: 500;
}
.navbarIcons button:hover {
opacity: 0.6;
cursor: pointer;
}
.profile {
margin-left: auto;
margin-right: 2.5rem;
}
.connectMetaMaskButton {
display: flex;
gap: 1rem;
font-size: medium;
}
.main {
background-color: white;
}
/* copyright-ended */
</style>
</head>
<body>
<navbar class="navbar">
<img
src="/images/home/logo.png"
width="170rem"
alt="Website Logo"
style="border-right: 1px solid black"
/>
<div class="navbarIcons">
<a href="/"><button>HOME</button></a>
<a href="/verify"><button>MANUAL VERIFY</button></a>
<a href="/qr-verify"
><button style="color: #5d80ff">QR VERIFY</button></a
>
<a href="/generate"><button>GENERATE QR</button></a>
</div>
</navbar>
<div class="container">
<h1>Scan QR Codes</h1>
<div class="section">
<div id="my-qr-reader">
<!-- QR Code Scanner will be rendered here -->
</div>
</div>
<form id="qrverifyForm" action="/qr-verify" method="post">
<div class="form-group">
<label for="certificateNumber">Certificate Number:</label>
<input
type="text"
id="certificateNumber"
name="certificateNumber"
required
/>
</div>
<div class="form-button">
<button id="qr-verify">Verify</button>
</div>
</form>
</div>
<!-- <script src="https://unpkg.com/html5-qrcode"></script> -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/html5-qrcode/2.3.8/html5-qrcode.min.js"
integrity="sha512-r6rDA7W6ZeQhvl8S7yRVQUKVHdexq+GAlNkNNqVC7YyIV+NwqCTJe2hDWCiffTyRNOeGEzRRJ9ifvRm/HCzGYg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="/front_end_integrate_qr-verify.js" type="module"></script>
</body>
</html>