-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (93 loc) · 2.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Homepage with Topics</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
header {
background-color: #333;
color: #fff;
padding: 20px 0;
text-align: center;
}
h1 {
margin: 0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}
.container2 {
background-color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
text-align: center;
}
h3 {
margin-bottom: 20px;
}
h3 a {
text-decoration: none;
color: #333;
font-weight: bold;
transition: color 0.3s ease;
}
h3 a:hover {
color: #007bff;
}
footer {
background-color: #333;
color: #fff;
padding: 10px 0;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
<div>
<h1>Explore Topics</h1>
</div>
</header>
<div class="container">
<div class="container2">
<h3><a href="main/me.html">PROFILE</a></h3>
<h3><a href="Topic-1_ObjAndClasses/topic_1.html">Topic 1 - Objects and Classes</a></h3>
<h3><a href="Topic-2_Methods/topic_2.html">Topic-2_Methods</a></h3>
<h3><a href="Topic-3_AccessModifAndEncapsulation/Topicc_3.html">Topic 3 - Access Modifiers and Encapsulation</a></h3>
<h3><a href="Topic-4__Inheritance/topic_4.html">Topic 4 - Inheritance</a></h3>
<h3><a href="charts/L05_linechart.html">Topic 5 - LineChart</a></h3>
<h3><a href="charts/L06-Barchart.html">Topic 6 - BarChart</a></h3>
</div>
<footer>
<p>© 2024 Your Website. All Rights Reserved.</p>
</footer>
<script>
// Add functionality to each topic block
document.querySelectorAll('.topic').forEach(topic => {
topic.addEventListener('click', () => {
const topicId = topic.id;
alert(`You clicked on ${topicId}`);
// For now, show an alert. You can replace this with actual navigation or functionality.
// Example:
// window.location.href = `${topicId}.html`; // Redirect to a separate page for each topic
});
});
</script>
</body>
</html>