alvesrt commited on
Commit
6beebcb
·
verified ·
1 Parent(s): 6c74ca2

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +351 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Altavista Websearch
3
- emoji: 🚀
4
- colorFrom: indigo
5
- colorTo: indigo
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: altavista-websearch
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,351 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>AltaVista Classic</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=VT323&display=swap');
11
+
12
+ body {
13
+ font-family: 'IBM Plex Mono', monospace;
14
+ background-color: #f0f0f0;
15
+ background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiNjY2MiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
16
+ }
17
+
18
+ .logo {
19
+ font-family: 'VT323', monospace;
20
+ text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
21
+ }
22
+
23
+ .search-box {
24
+ box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
25
+ }
26
+
27
+ .button {
28
+ transition: all 0.2s ease;
29
+ }
30
+
31
+ .button:hover {
32
+ transform: translateY(-1px);
33
+ box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
34
+ }
35
+
36
+ .result-card {
37
+ background: rgba(255,255,255,0.9);
38
+ transition: all 0.2s ease;
39
+ }
40
+
41
+ .result-card:hover {
42
+ transform: translateY(-2px);
43
+ box-shadow: 3px 3px 0px rgba(0,0,0,0.1);
44
+ }
45
+
46
+ .marquee {
47
+ white-space: nowrap;
48
+ overflow: hidden;
49
+ box-sizing: border-box;
50
+ }
51
+
52
+ .marquee span {
53
+ display: inline-block;
54
+ padding-left: 100%;
55
+ animation: marquee 15s linear infinite;
56
+ }
57
+
58
+ @keyframes marquee {
59
+ 0% { transform: translate(0, 0); }
60
+ 100% { transform: translate(-100%, 0); }
61
+ }
62
+
63
+ .glitch {
64
+ position: relative;
65
+ }
66
+
67
+ .glitch::before, .glitch::after {
68
+ content: attr(data-text);
69
+ position: absolute;
70
+ top: 0;
71
+ left: 0;
72
+ width: 100%;
73
+ height: 100%;
74
+ opacity: 0.8;
75
+ }
76
+
77
+ .glitch::before {
78
+ color: #0ff;
79
+ z-index: -1;
80
+ animation: glitch-effect 3s infinite;
81
+ }
82
+
83
+ .glitch::after {
84
+ color: #f0f;
85
+ z-index: -2;
86
+ animation: glitch-effect 2s infinite reverse;
87
+ }
88
+
89
+ @keyframes glitch-effect {
90
+ 0% { transform: translate(0); }
91
+ 20% { transform: translate(-3px, 3px); }
92
+ 40% { transform: translate(-3px, -3px); }
93
+ 60% { transform: translate(3px, 3px); }
94
+ 80% { transform: translate(3px, -3px); }
95
+ 100% { transform: translate(0); }
96
+ }
97
+ </style>
98
+ </head>
99
+ <body class="min-h-screen flex flex-col">
100
+ <!-- Header -->
101
+ <header class="bg-blue-600 text-white py-2 px-4">
102
+ <div class="container mx-auto flex justify-between items-center">
103
+ <div class="flex items-center space-x-4">
104
+ <span class="text-sm"><i class="fas fa-home mr-1"></i> Home</span>
105
+ <span class="text-sm"><i class="fas fa-info-circle mr-1"></i> About</span>
106
+ <span class="text-sm"><i class="fas fa-envelope mr-1"></i> Contact</span>
107
+ </div>
108
+ <div class="text-sm">
109
+ <span id="date-time" class="font-mono"></span>
110
+ </div>
111
+ </div>
112
+ </header>
113
+
114
+ <!-- Marquee -->
115
+ <div class="bg-yellow-200 text-black py-1 px-2 border-b border-yellow-300">
116
+ <div class="marquee text-sm font-mono">
117
+ <span>
118
+ <i class="fas fa-bullhorn mr-2"></i> Welcome to AltaVista Classic! The web's most comprehensive search index.
119
+ <span class="mx-4">•</span>
120
+ Search over 30 million web pages!
121
+ <span class="mx-4">•</span>
122
+ Now with 20% more web!
123
+ <span class="mx-4">•</span>
124
+ Try our new Babel Fish translation service!
125
+ </span>
126
+ </div>
127
+ </div>
128
+
129
+ <!-- Main Content -->
130
+ <main class="flex-grow container mx-auto px-4 py-8 flex flex-col items-center">
131
+ <!-- Logo -->
132
+ <div class="mb-8 text-center">
133
+ <h1 class="logo text-6xl md:text-7xl font-bold text-blue-700 mb-2 glitch" data-text="AltaVista">AltaVista</h1>
134
+ <p class="text-gray-600 font-mono">THE INTERNET'S MOST COMPREHENSIVE SEARCH INDEX</p>
135
+ </div>
136
+
137
+ <!-- Search Box -->
138
+ <div class="w-full max-w-2xl mb-8">
139
+ <div class="relative search-box">
140
+ <input type="text" id="search-input"
141
+ class="w-full py-3 px-4 border-2 border-gray-300 rounded-lg focus:outline-none focus:border-blue-500 font-mono"
142
+ placeholder="Enter your search query...">
143
+ <button id="search-button"
144
+ class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-blue-600 text-white px-4 py-1 rounded-md button">
145
+ <i class="fas fa-search mr-1"></i> Search
146
+ </button>
147
+ </div>
148
+ <div class="flex justify-center mt-4 space-x-4">
149
+ <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded text-sm button">
150
+ <i class="fas fa-font mr-1"></i> Text Search
151
+ </button>
152
+ <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded text-sm button">
153
+ <i class="fas fa-image mr-1"></i> Image Search
154
+ </button>
155
+ <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded text-sm button">
156
+ <i class="fas fa-music mr-1"></i> MP3 Search
157
+ </button>
158
+ <button class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded text-sm button">
159
+ <i class="fas fa-video mr-1"></i> Video Search
160
+ </button>
161
+ </div>
162
+ </div>
163
+
164
+ <!-- Search Results -->
165
+ <div id="search-results" class="w-full max-w-4xl hidden">
166
+ <div class="flex justify-between items-center mb-4">
167
+ <h2 class="text-lg font-bold text-gray-700">Search Results</h2>
168
+ <div class="text-sm text-gray-600">
169
+ <span id="result-count">About 0 results</span> (<span id="search-time">0.01</span> seconds)
170
+ </div>
171
+ </div>
172
+
173
+ <div id="results-container" class="space-y-4">
174
+ <!-- Results will be inserted here by JavaScript -->
175
+ </div>
176
+
177
+ <div class="flex justify-center mt-8">
178
+ <nav class="flex space-x-2">
179
+ <button class="px-3 py-1 bg-blue-600 text-white rounded button">1</button>
180
+ <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded button">2</button>
181
+ <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded button">3</button>
182
+ <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded button">4</button>
183
+ <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded button">5</button>
184
+ <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded button">Next <i class="fas fa-chevron-right ml-1"></i></button>
185
+ </nav>
186
+ </div>
187
+ </div>
188
+
189
+ <!-- Features -->
190
+ <div class="w-full max-w-4xl mt-12 grid grid-cols-1 md:grid-cols-3 gap-6">
191
+ <div class="bg-white p-4 rounded-lg shadow-sm result-card">
192
+ <h3 class="font-bold text-blue-600 mb-2"><i class="fas fa-language mr-2"></i> Babel Fish</h3>
193
+ <p class="text-sm text-gray-600 mb-3">Translate text or web pages between multiple languages instantly.</p>
194
+ <button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded button">Try it now</button>
195
+ </div>
196
+ <div class="bg-white p-4 rounded-lg shadow-sm result-card">
197
+ <h3 class="font-bold text-blue-600 mb-2"><i class="fas fa-newspaper mr-2"></i> News</h3>
198
+ <p class="text-sm text-gray-600 mb-3">Get the latest news from around the world, updated every hour.</p>
199
+ <button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded button">Browse news</button>
200
+ </div>
201
+ <div class="bg-white p-4 rounded-lg shadow-sm result-card">
202
+ <h3 class="font-bold text-blue-600 mb-2"><i class="fas fa-shopping-bag mr-2"></i> Shopping</h3>
203
+ <p class="text-sm text-gray-600 mb-3">Find products and compare prices from thousands of online stores.</p>
204
+ <button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded button">Start shopping</button>
205
+ </div>
206
+ </div>
207
+ </main>
208
+
209
+ <!-- Footer -->
210
+ <footer class="bg-gray-100 border-t border-gray-200 py-4 px-4">
211
+ <div class="container mx-auto">
212
+ <div class="flex flex-col md:flex-row justify-between items-center">
213
+ <div class="text-sm text-gray-600 mb-2 md:mb-0">
214
+ <span class="mr-4"><i class="fas fa-copyright mr-1"></i> 1995-2023 AltaVista Company</span>
215
+ <span class="mr-4"><i class="fas fa-shield-alt mr-1"></i> Privacy Policy</span>
216
+ <span><i class="fas fa-file-alt mr-1"></i> Terms of Service</span>
217
+ </div>
218
+ <div class="flex space-x-4">
219
+ <span class="text-gray-600 text-sm"><i class="fas fa-globe mr-1"></i> English</span>
220
+ <span class="text-gray-600 text-sm"><i class="fas fa-desktop mr-1"></i> Classic View</span>
221
+ </div>
222
+ </div>
223
+ </div>
224
+ </footer>
225
+
226
+ <script>
227
+ // Update date and time
228
+ function updateDateTime() {
229
+ const now = new Date();
230
+ const options = {
231
+ weekday: 'long',
232
+ year: 'numeric',
233
+ month: 'long',
234
+ day: 'numeric',
235
+ hour: '2-digit',
236
+ minute: '2-digit',
237
+ second: '2-digit'
238
+ };
239
+ document.getElementById('date-time').textContent = now.toLocaleDateString('en-US', options);
240
+ }
241
+
242
+ setInterval(updateDateTime, 1000);
243
+ updateDateTime();
244
+
245
+ // Sample search results data
246
+ const sampleResults = [
247
+ {
248
+ title: "Welcome to AltaVista - The Internet's Most Comprehensive Search Index",
249
+ url: "https://www.altavista.com",
250
+ description: "AltaVista is a web search engine that provides fast, comprehensive results for all your search needs. Search over 30 million web pages with our advanced technology.",
251
+ isSponsored: false
252
+ },
253
+ {
254
+ title: "AltaVista - Wikipedia",
255
+ url: "https://en.wikipedia.org/wiki/AltaVista",
256
+ description: "AltaVista was one of the earliest web search engines, launched in 1995. It was once one of the most popular search engines but was eventually overtaken by competitors.",
257
+ isSponsored: false
258
+ },
259
+ {
260
+ title: "AltaVista Search - The Classic Web Search Engine",
261
+ url: "https://search.altavista.org",
262
+ description: "Experience the nostalgia of the classic AltaVista search engine with this recreation. Search the web like it's 1999 with our retro interface.",
263
+ isSponsored: true
264
+ },
265
+ {
266
+ title: "AltaVista Babel Fish Translation Service",
267
+ url: "https://babelfish.altavista.com",
268
+ description: "Translate text or entire web pages between multiple languages instantly with AltaVista's Babel Fish translation service. Supports English, French, German, Spanish and more.",
269
+ isSponsored: false
270
+ },
271
+ {
272
+ title: "The Rise and Fall of AltaVista - Tech History",
273
+ url: "https://techhistory.com/altavista",
274
+ description: "A detailed look at the history of AltaVista, from its pioneering days as the first full-text web search engine to its eventual decline and acquisition by Yahoo.",
275
+ isSponsored: false
276
+ }
277
+ ];
278
+
279
+ // Handle search
280
+ document.getElementById('search-button').addEventListener('click', performSearch);
281
+ document.getElementById('search-input').addEventListener('keypress', function(e) {
282
+ if (e.key === 'Enter') {
283
+ performSearch();
284
+ }
285
+ });
286
+
287
+ function performSearch() {
288
+ const query = document.getElementById('search-input').value.trim();
289
+ if (query === '') return;
290
+
291
+ // Show loading state
292
+ const resultsContainer = document.getElementById('results-container');
293
+ resultsContainer.innerHTML = '<div class="text-center py-8"><i class="fas fa-spinner fa-spin text-3xl text-blue-600"></i><p class="mt-2">Searching the web...</p></div>';
294
+
295
+ document.getElementById('search-results').classList.remove('hidden');
296
+
297
+ // Simulate search delay
298
+ setTimeout(() => {
299
+ displayResults(query);
300
+ }, 800);
301
+ }
302
+
303
+ function displayResults(query) {
304
+ const resultsContainer = document.getElementById('results-container');
305
+ resultsContainer.innerHTML = '';
306
+
307
+ // Update result stats
308
+ const resultCount = Math.floor(Math.random() * 500000) + 1000;
309
+ document.getElementById('result-count').textContent = `About ${resultCount.toLocaleString()} results`;
310
+ document.getElementById('search-time').textContent = (Math.random() * 0.5 + 0.1).toFixed(2);
311
+
312
+ // Display results
313
+ sampleResults.forEach((result, index) => {
314
+ const resultElement = document.createElement('div');
315
+ resultElement.className = 'result-card p-4 rounded-lg border border-gray-200';
316
+
317
+ if (result.isSponsored) {
318
+ resultElement.innerHTML = `
319
+ <div class="text-xs text-green-600 mb-1 font-bold"><i class="fas fa-ad mr-1"></i> Sponsored</div>
320
+ <h3 class="text-lg font-bold text-blue-600 mb-1"><a href="#" class="hover:underline">${highlightQuery(result.title, query)}</a></h3>
321
+ <div class="text-green-700 text-sm mb-1">${result.url}</div>
322
+ <p class="text-gray-700 text-sm">${highlightQuery(result.description, query)}</p>
323
+ <div class="text-xs text-gray-500 mt-2">Cached • Similar</div>
324
+ `;
325
+ } else {
326
+ resultElement.innerHTML = `
327
+ <h3 class="text-lg font-bold text-blue-600 mb-1"><a href="#" class="hover:underline">${highlightQuery(result.title, query)}</a></h3>
328
+ <div class="text-green-700 text-sm mb-1">${result.url}</div>
329
+ <p class="text-gray-700 text-sm">${highlightQuery(result.description, query)}</p>
330
+ <div class="text-xs text-gray-500 mt-2">Cached • Similar</div>
331
+ `;
332
+ }
333
+
334
+ resultsContainer.appendChild(resultElement);
335
+ });
336
+
337
+ // Scroll to results
338
+ document.getElementById('search-results').scrollIntoView({ behavior: 'smooth' });
339
+ }
340
+
341
+ function highlightQuery(text, query) {
342
+ if (!query) return text;
343
+ const regex = new RegExp(query, 'gi');
344
+ return text.replace(regex, match => `<span class="bg-yellow-200">${match}</span>`);
345
+ }
346
+
347
+ // Easter egg for nostalgia
348
+ console.log("%cRemember when web search was simple? AltaVista brings back the classic web experience!", "color: #0066cc; font-size: 14px;");
349
+ </script>
350
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=alvesrt/altavista-websearch" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
351
+ </html>