-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (136 loc) · 4.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WEBGLE</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
transition: background-color 0.3s, color 0.3s;
}
.logo {
font-size: 75px;
margin-top: 15%;
font-weight: bold;
}
.logo span {
color: #EA4335; /* Default color for other letters */
}
.logo span:nth-child(1) { color: #4285F4; /* W */ }
.logo span:nth-child(3) { color: #FBBC05; /* B */ }
.logo span:nth-child(4) { color: #34A853; /* G */ }
.logo span:nth-child(5) { color: #EA4335; /* L */ }
.search-box {
display: flex;
align-items: center;
width: 100%;
max-width: 584px;
margin-top: 20px;
margin-left: 10%;
margin-right: 10%;
}
.search-box input[type="text"] {
width: 100%;
padding: 10px 20px;
border: 1px solid #dfe1e5;
border-radius: 24px;
box-shadow: none;
font-size: 16px;
margin-left: 10%;
margin-right: 10%;
}
.search-box input[type="submit"] {
display: none;
}
.footer {
margin-top: auto;
padding: 10px 0;
text-align: center;
font-size: 12px;
color: #555;
}
.github-button {
position: absolute;
top: 10px;
right: 10px;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
transition: background-color 0.3s;
}
.github-button img {
width: 24px;
height: 24px;
}
/* Light mode styles */
@media (prefers-color-scheme: light) {
.github-button img {
content: url('github-mark.png');
}
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #e0e0e0;
}
.search-box input[type="text"] {
background-color: #333;
border: 1px solid #555;
color: #e0e0e0;
}
.footer {
color: #bbb;
}
.github-button {
background-color: #333;
}
}
/* Mobile styles */
@media (max-width: 600px) {
.logo {
margin-top: 30%;
}
}
</style>
<script>
window.onload = function() {
const urlParams = new URLSearchParams(window.location.search);
const query = urlParams.get('q');
if (query) {
const searchBox = document.querySelector('.search-box input[type="text"]');
searchBox.value = query;
document.querySelector('.search-box').submit();
}
};
</script>
</head>
<body>
<div class="logo">
<span>W</span><span>E</span><span>B</span><span>G</span><span>L</span><span>E</span>
</div>
<form class="search-box" action="https://www.google.com/search" method="get">
<input type="text" name="q" placeholder="Search Google...">
<input type="hidden" name="udm" value="14">
<input type="submit" value="Google Search">
</form>
<div class="footer">
WEBGLE is an alternative Google homepage that redirects to a no AI version of Google Search.
</div>
<a href="https://github.com/Clevis22/webgle" class="github-button" target="_blank" title="View on GitHub">
<img src="github-mark-white.png" alt="GitHub Logo">
</a>
</body>
</html>