-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (99 loc) · 2.93 KB
/
index.html
File metadata and controls
110 lines (99 loc) · 2.93 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Projects</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #000;
color: #fff;
text-align: center;
padding: 50px;
overflow: hidden;
margin: 0;
}
h1 {
margin-bottom: 20px;
font-size: 3em;
text-shadow: 0 0 20px #FFD700;
}
p {
font-size: 1.5em;
margin-bottom: 40px;
text-shadow: 0 0 10px #FFD700;
}
.button {
background-color: transparent;
border: 2px solid #FFD700;
color: #FFD700;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 1.2em;
margin: 10px 5px;
cursor: pointer;
border-radius: 8px;
transition: all 0.3s ease;
}
.button:hover {
background-color: #FFD700;
color: #000;
transform: scale(1.1);
}
@keyframes backgroundAnimation {
0% { background-color: #000; }
50% { background-color: #111; }
100% { background-color: #000; }
}
body {
animation: backgroundAnimation 5s infinite alternate;
}
.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
pointer-events: none;
z-index: -1;
}
.star {
position: absolute;
background: #FFD700;
border-radius: 50%;
animation: twinkle 1.5s infinite;
}
@keyframes twinkle {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
</style>
</head>
<body>
<h1>Welcome to My Projects</h1>
<p>Select a project to view:</p>
<a class="button" href="Weather-Glancer/index.html">Weather Glancer</a>
<div class="stars"></div>
<script>
const starsContainer = document.querySelector('.stars');
for (let i = 0; i < 100; i++) {
const star = document.createElement('div');
const size = Math.random() * 5 + 2;
const x = Math.random() * window.innerWidth;
const y = Math.random() * window.innerHeight;
const duration = Math.random() * 1 + 1;
star.className = 'star';
star.style.width = `${size}px`;
star.style.height = `${size}px`;
star.style.left = `${x}px`;
star.style.top = `${y}px`;
star.style.animationDuration = `${duration}s`;
starsContainer.appendChild(star);
}
</script>
</body>
</html>