forked from Priyanshi662/FunFusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
216 lines (194 loc) · 6.25 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Fun Fusion</title>
<style>
.Header {
text-align: center;
background-color: #4CAF50;
color: white;
padding: 10px;
margin: 10px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card {
background: linear-gradient(to bottom, #45a049, #acf7af);
border: 1px solid #ccc;
border-radius: 8px;
padding: 20px;
margin: 20px;
text-align: center;
text-wrap: 10px;
width: 200px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: inline-block;
margin-left: 33px;
font-size: 15px;
}
.card:hover {
box-shadow: 0 8px 16px #45a049;
}
.card button {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.card button:hover {
transform: translateY(-2px) scale(1.1);
box-shadow: 0 8px 16px #45a049;
background-color: white;
border: 10px #4CAF50;
color: #4CAF50;
border-radius: 8px;
transition: transform 0.25s ease;
font-weight: bold;
}
.card img {
width: 100%;
border-radius: 8px;
height: 150px;
transition: transform 0.3s ease;
}
.card:hover img {
transform: scale(1.1);
}
#toggelBtn{
display: none;
cursor: pointer;
}
.Sidebar {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
right: -290px;
width: 250px;
height: 100%;
background-color: #afffa5;
padding: 20px;
transition: right 0.3s ease-in-out;
}
.CloseButton {
cursor: pointer;
position: absolute;
top: 35px;
right: 30px;
color: #000;
font-size: 20px;
}
@media (width < 600px){
#toggelBtn{
display: inline;
text-align: center;
}
#sidebar{
display: inline;
}
.Header{
display: flex;
align-items: center;
justify-content: space-between;
}
h1{
margin: 0;
padding: 0;
}
.Sidebar {
right: -300px; /* Adjusted for better responsiveness */
}
}
</style>
</head>
<body>
<div class="Header">
<h1>Fun Fusion</h1>
<div id="toggelBtn" onclick="openSidebar()">☰</div>
</div>
<div class="Sidebar" id="sidebar">
<div class="CloseButton" onclick="closeSidebar()">×</div>
<!-- Sidebar content goes here -->
<p>Sidebar Content</p>
</div>
<!-- Card for navigation -->
<div class="card">
<img src="Canvas/drawing-pad.png">
<h2>Drawing Board</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='Canvas/Mycanvas.html'">Go!</button><br>
</div>
<div class="card">
<img src="Analog Clock/clock.png">
<h2>Analog Clock</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='Analog Clock/my clock.html'">Go!</button><br>
</div>
<div class="card">
<img src="AI Utility/tictactoe.png">
<h2>Tic-Tac-Toe</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='AI Utility/Tic-Tac-Toe/index.html'">Go!</button><br>
</div>
<div class="card">
<img src="citysearch/citysearch.png">
<h2>City Search</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='citysearch/searchcities.html'">Go!</button><br>
</div>
<div class="card">
<img src="Drum kit/drums.png">
<h2>Drum Kit</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='./Drum Kit/Drum set.html'">Go!</button><br>
</div>
<div class="card">
<img src="Pokemon generator/pokemon.png">
<h2>Pokemon generator</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='Pokemon generator/window.html'">Go!</button><br>
</div>
<div class="card">
<img src="text to speech/texttospeech.png">
<h2>text - to - speech</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='text to speech/text-to-speech.html'">Go!</button><br>
</div>
<div class="card">
<img src="Whack A Mole/whackmole.png">
<h2>Whack A mole</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='Whack A Mole/index.html'">Go!</button><br>
</div>
<div class="card">
<img src="Typing Speed Test/TypingSpeedTest.jpg">
<h2>Typing Speed Test</h2>
<!-- Button to navigate to index.html -->
<button onclick="window.location.href='Typing Speed Test/index.html'">Go!</button><br>
</div>
<div class="card">
<img src="Memory Game/images/img.png">
<h2>Memory Card Game</h2>
<!-- Button to navigate to page1.html -->
<button onclick="window.location.href='Memory Game/index.html'">Go!</button><br>
</div>
<script>
// JavaScript to handle sidebar functionality
function openSidebar() {
document.getElementById('sidebar').style.right = '0';
}
function closeSidebar() {
document.getElementById('sidebar').style.right = '-300px';
}
</script>
</body>
</html>