-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
145 lines (128 loc) · 3.73 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
overflow: hidden;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(45deg, #FFA07A, #20B2AA, #87CEEB);
background-size: 400% 400%;
animation: gradientAnimation 10s infinite;
}
h1, p {
color: #fff;
text-align: center;
z-index: 2;
}
.qr-code-container {
position: relative;
margin: 20px;
}
.qr-code {
width: 350px;
height: 350px;
background: rgba(255, 255, 255, 0.8);
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
svg {
fill: #000;
width: 80%;
height: 80%;
}
.github-pfp {
position: absolute;
width: 100px; /* Adjust the size as needed */
height: 100px;
border-radius: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 3;
}
@keyframes gradientAnimation {
0% {
background-position: 0% 50%;
}
100% {
background-position: 100% 50%;
}
}
.buttons-container {
display: flex;
gap: 20px;
margin-top: 20px;
}
.github-button {
background-color: #333;
color: #fff;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
text-decoration: none;
transition: background-color 0.3s ease;
}
.github-button:hover {
background-color: #555;
}
.loading-animation {
border: 4px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top: 4px solid #000;
width: 30px;
height: 30px;
animation: spin 1s linear infinite;
position: absolute;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<script>
// Reload the page every 5 seconds if the QR code is present
function checkForQRCode() {
const qrCodeContainer = document.querySelector('.qr-code');
if (qrCodeContainer && qrCodeContainer.innerHTML.trim() !== "") {
location.reload();
}
}
// Check for the QR code initially
checkForQRCode();
// Reload the page every 5 seconds
setInterval(checkForQRCode, 2000);
</script>
</head>
<body>
<h1>QR Code to Scan WhatsApp</h1>
<div class="qr-code-container">
<!-- GitHub Profile Picture -->
<!-- pfp -->
<!-- QR Code -->
<div class="qr-code">
<div class="loading-animation"></div>
</div>
</div>
<p>Please wait Qr code is being generated</p>
<!-- Buttons Container -->
<div class="buttons-container">
<a class="github-button" href="https://github.com/Awesome-Tofu/miko-bot" target="_blank">GitHub Repo</a>
<!-- Add more buttons if needed -->
</div>
</body>
</html>