-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (80 loc) · 2.27 KB
/
index.html
File metadata and controls
82 lines (80 loc) · 2.27 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title hidden>Wei-Ping Chan's Website</title>
<meta name="description" content="Welcome to Wei-Ping Chan's personal website.">
<!-- Include W3.CSS -->
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
height: 100vh;
background-image: url('https://lh3.googleusercontent.com/d/124uAIhpSnJAKTy0gnV0ixWPs2SCq7uQe');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.overlay {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100%;
color: white;
text-align: center;
}
.button {
margin-top: 20px;
padding: 10px 20px;
background-color: transparent;
color: white;
border: 2px solid white;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
.button:hover {
transform: scale(1.2);
font-weight: bold;
}
/* Media query for smaller screens */
@media (max-width: 768px) {
body {
background-size: auto 100%; /* Fit the image to 75% of the height */
background-position: calc(50% + 180px) center; /* Move the image 200px to the right and center vertically */
}
.overlay {
padding: 10px; /* Add padding for smaller screens */
}
}
@media (max-width: 480px) {
body {
background-size: auto 100%; /* Fit the image to the full height */
background-position: calc(50% + 180px) center; /* Center the image */
}
.overlay {
padding: 10px; /* Add padding for smaller screens */
}
}
</style>
</head>
<body>
<div class="w3-container overlay">
<button class="button w3-hover-opacity" onclick="redirectToIndex()">Know More About Me</button>
</div>
<script>
// Redirect to home.html after 20 seconds
setTimeout(() => {
window.location.href = 'home.html';
}, 20000);
// Redirect when the button is clicked
function redirectToIndex() {
window.location.href = 'home.html';
}
</script>
</body>
</html>