-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paths.html
More file actions
255 lines (231 loc) · 7.81 KB
/
Copy paths.html
File metadata and controls
255 lines (231 loc) · 7.81 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>BeduSearch – Discover the undiscoverable.</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(145deg, #0a0f1e 0%, #0c1222 100%);
font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: 1.5rem;
}
/* main container */
.search-container {
max-width: 1200px;
width: 100%;
margin: 0 auto;
background: rgba(18, 25, 45, 0.6);
backdrop-filter: blur(2px);
border-radius: 2rem;
padding: 1.8rem 1.5rem 2rem;
box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5);
border: 1px solid rgba(66, 153, 225, 0.2);
}
/* header branding */
.brand {
text-align: center;
margin-bottom: 2rem;
}
.brand h1 {
font-size: clamp(2.2rem, 8vw, 3.8rem);
font-weight: 800;
background: linear-gradient(135deg, #E0E7FF 0%, #93C5FD 50%, #60A5FA 100%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
letter-spacing: -0.02em;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.tagline {
font-size: clamp(0.85rem, 4vw, 1.1rem);
color: #9ca3cf;
margin-top: 0.5rem;
font-weight: 400;
letter-spacing: 0.3px;
border-top: 1px dashed #2d3a5e;
display: inline-block;
padding-top: 0.5rem;
}
/* google cse wrapper */
.cse-wrapper {
width: 100%;
transition: all 0.2s ease;
}
/* ---------- CUSTOM STYLES FOR GOOGLE CSE (remove branding + rounded bar) ---------- */
/* target the main control area */
.gsc-control-cse {
background: transparent !important;
border: none !important;
padding: 0 !important;
font-family: inherit !important;
}
/* search box outer table */
.gsc-search-box {
margin-bottom: 1.5rem !important;
}
/* the input field – make it fully rounded (pill shape) */
input.gsc-input,
.gsc-input-box,
.gsc-input input {
border-radius: 999px !important;
background-color: #111827 !important;
border: 1px solid #334155 !important;
padding: 0.9rem 1.5rem !important;
font-size: 1rem !important;
color: #f0f3fa !important;
transition: all 0.2s;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
input.gsc-input:focus,
.gsc-input-box:focus-within {
border-color: #3b82f6 !important;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
outline: none;
}
/* search button – also rounded */
.gsc-search-button {
border-radius: 999px !important;
background: #2563eb !important;
border: none !important;
padding: 0.7rem 1.6rem !important;
margin-left: 0.8rem !important;
font-weight: 600;
transition: 0.15s;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.gsc-search-button:hover {
background: #3b82f6 !important;
transform: scale(0.97);
}
/* result area styling */
.gsc-results-wrapper-overlay,
.gsc-results {
background: transparent !important;
border: none !important;
}
.gsc-result-info {
color: #cbd5e6 !important;
font-size: 0.9rem !important;
}
.gs-title *,
.gs-title {
color: #93c5fd !important;
font-size: 1.1rem !important;
}
.gs-snippet {
color: #b9c7dd !important;
background: transparent !important;
}
.gs-webResult div.gs-visibleUrl,
.gs-visibleUrl {
color: #6b8cce !important;
}
/* HIDE ALL GOOGLE BRANDING (text, images, "Powered by Google") */
.gsc-branding,
.gcse-branding,
.gcse-branding-img,
.gsc-branding-img-noclear,
.gsc-branding-text,
.gsc-branding-img,
.gsc-clear-button,
[class*="branding"] {
display: none !important;
}
/* remove any footer or extra google watermark */
.gsc-clear-button {
display: none !important;
}
/* results pagination */
.gsc-cursor-page {
background: #1e293b !important;
color: #e2e8f0 !important;
border-radius: 30px !important;
padding: 6px 12px !important;
margin: 0 3px !important;
}
.gsc-cursor-current-page {
background: #3b82f6 !important;
color: white !important;
}
/* responsive table adjustments */
@media (max-width: 640px) {
.search-container {
padding: 1rem;
}
.gsc-search-box {
flex-direction: column;
gap: 12px;
}
.gsc-search-box-tools .gsc-search-box .gsc-input {
width: 100% !important;
}
input.gsc-input {
width: 100% !important;
}
.gsc-search-button {
margin-left: 0 !important;
margin-top: 8px;
width: auto;
padding: 0.7rem 1rem !important;
}
}
/* make iframe / results fully responsive */
.gsc-control-cse,
.gsc-results-wrapper-overlay {
width: 100% !important;
overflow-x: auto !important;
}
.gs-webResult {
word-break: break-word;
}
</style>
</head>
<body>
<div class="search-container">
<div class="brand">
<h1>⚡ BeduSearch</h1>
<div class="tagline">Discover the undiscoverable.</div>
</div>
<div class="cse-wrapper">
<!-- Google Custom Search Engine boxes -->
<div class="gcse-searchbox"></div>
<div class="gcse-searchresults"></div>
</div>
</div>
<!-- Google CSE script (async) with your custom CX -->
<script async src="https://cse.google.com/cse.js?cx=f043c534092a948aa"></script>
<!-- extra style overrides to ensure border-radius 100% (pill) and no branding after load -->
<script>
(function() {
// force restyling in case google injects additional elements after load
function applyStyles() {
// ensure input pill shape
const searchInput = document.querySelector('input.gsc-input');
if (searchInput) {
searchInput.style.borderRadius = '999px';
searchInput.style.padding = '0.9rem 1.5rem';
}
// hide any late branding
const brandingElements = document.querySelectorAll('.gsc-branding, .gcse-branding, .gsc-branding-img-noclear, .gsc-branding-text');
brandingElements.forEach(el => el.style.display = 'none');
}
// observe DOM changes for dynamically added elements
const observer = new MutationObserver(() => applyStyles());
observer.observe(document.body, { childList: true, subtree: true });
applyStyles();
})();
</script>
</body>
</html>