-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (51 loc) · 1.59 KB
/
index.html
File metadata and controls
56 lines (51 loc) · 1.59 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#1DA1F2" />
<title>Ashmeet's Portfolio</title>
<meta name="description" content="Ashmeet Singh - Computer Science Graduate from School of Computer Science & IT" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<style>
#tab-message {
position: fixed;
top: 70px;
left: 50%;
transform: translateX(-50%);
background-color: #1f293700;
color: #facc15;
padding: 10px 20px;
border:none;
border-radius: 10px;
font-size: 14px;
opacity: 0;
transition: opacity 3s ease-in-out;
z-index: 9999;
}
#tab-message.show {
opacity: 1;
}
</style>
</head>
<body class="bg-white dark:bg-black text-gray-900 dark:text-white transition-colors duration-300">
<div id="root"></div>
<!-- Tooltip Banner -->
<div id="tab-message"> 👋</div>
<script type="module" src="/src/main.jsx"></script>
<script>
// Show tooltip on tab focus
window.addEventListener("focus", () => {
const message = document.getElementById("tab-message");
message.classList.add("show");
setTimeout(() => {
message.classList.remove("show");
}, 1000); // Hide after 4 seconds
});
</script>
</body>
</html>