-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjects.html
More file actions
40 lines (35 loc) · 1.08 KB
/
Projects.html
File metadata and controls
40 lines (35 loc) · 1.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Portfolio</title>
<link rel="stylesheet" href="styles/styles2.css">
</head>
<body>
<header>
<h1>Welcome to My Portfolio</h1>
</header>
<section id="projects" class="clickable">
<h2>My Projects</h2>
<p>Click to see my projects.</p>
</section>
<div id="prompt" class="hidden">
<p>There are no available projects for now</p>
<button onclick="closePrompt()">Close</button>
</div>
<footer>
<p>© 2025 My Portfolio</p>
</footer>
<script>
// JavaScript to handle the click event and show the prompt
document.getElementById("projects").addEventListener("click", function() {
document.getElementById("prompt").style.display = "flex";
});
// Function to close the prompt
function closePrompt() {
document.getElementById("prompt").style.display = "none";
}
</script>
</body>
</html>