-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (90 loc) · 2.05 KB
/
index.html
File metadata and controls
90 lines (90 loc) · 2.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InstantWeb - Your Quick Browsing Companion</title>
<style>
/* CSS Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f7f7f7;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
nav {
background-color: #fff;
padding: 10px;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 20px;
}
nav ul li a {
color: #333;
text-decoration: none;
font-size: 18px;
transition: color 0.3s ease;
}
nav ul li a:hover {
color: #666;
}
#search-bar {
width: 60%;
padding: 10px;
margin: 20px auto;
box-sizing: border-box;
border: 2px solid #333;
border-radius: 25px;
font-size: 16px;
outline: none;
display: block;
transition: width 0.4s ease;
}
#search-bar:focus {
width: 80%;
}
</style>
</head>
<body>
<header>
<h1>Welcome to InstantWeb</h1>
<p>Your Quick Browsing Companion</p>
</header>
<nav>
<ul>
<li><a href="search.html">Home</a></li>
<li><a href="news.html">News</a></li>
<li><a href="searching.html">Search</a></li>
<li><a href="connect.html">Social</a></li>
<li><a href="enjoy.html">Entertainment</a></li>
</ul>
</nav>
<input type="text" id="search-bar" placeholder="Search websites...">
<script>
// JavaScript for handling search functionality
document.getElementById("search-bar").addEventListener("keydown", function(event) {
if (event.keyCode === 13) { // Enter key pressed
var query = this.value.trim();
if (query !== "") {
window.location.href = "https://www.google.com/search?q=" + encodeURIComponent(query);
}
}
});
</script>
</body>
</html>