-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvenator-browser-landing-page.html
99 lines (96 loc) · 2.93 KB
/
venator-browser-landing-page.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Venator Linux</title>
<link href="https://fonts.googleapis.com/css2?family=Lexend+Tera&family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Montserrat', sans-serif;
margin: 0;
padding: 0;
background-image: url('landing-page-background.png');
background-size: cover;
background-position: center;
color: #fff;
}
#header {
text-align: left;
padding: 20px;
}
#header h1 {
margin: 0;
font-size: 36px;
font-family: 'Lexend Tera', sans-serif;
text-transform: uppercase;
}
#links {
float: right;
}
#links a {
color: #fff;
text-decoration: none;
margin-left: 10px;
text-transform: uppercase;
}
#search-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, 50%);
text-align: center;
}
#search-bar {
padding: 8px;
width: 250px;
border-radius: 5px;
border: 1px solid #ccc;
margin-bottom: 20px;
font-size: 14px;
}
#search-button {
padding: 8px 20px;
border-radius: 5px;
background-color: #fff;
color: #333;
border: none;
cursor: pointer;
font-size: 14px;
text-transform: uppercase;
}
</style>
</head>
<body>
<div id="header">
<h1>Venator</h1>
<div id="links">
<a href="#">TOOLS</a> |
<a href="#">DOCUMENTATION</a> |
<a href="#">RESOURCES</a> |
<a href="#">BLOG</a>
</div>
</div>
<div id="search-container">
<input type="text" id="search-bar" placeholder="Enter your search query...">
<button id="search-button">Search</button>
</div>
<script>
document.getElementById("search-button").addEventListener("click", function() {
searchGoogle();
});
document.getElementById("search-bar").addEventListener("keydown", function(event) {
if (event.key === "Enter") {
searchGoogle();
}
});
function searchGoogle() {
var query = document.getElementById("search-bar").value;
if (query.trim() !== "") {
var searchUrl = "https://www.google.com/search?q=" + encodeURIComponent(query);
window.location.href = searchUrl;
}
}
</script>
</body>
</html>