Spaces:
Runtime error
Runtime error
File size: 6,451 Bytes
f2fffda e72bcb1 f2fffda |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InfoHive - Text Search</title>
<meta name="description" content="InfoHive is a search engine that provides the latest text content on technology, sports, and more.">
<meta property="og:title" content="InfoHive - Text Search">
<meta property="og:description" content="InfoHive is a search engine that provides the latest text content on technology, sports, and more.">
<meta property="og:image" content="https://raw.githubusercontent.com/OE-LUCIFER/HelpingAI-vortex3b/main/techscout.jpeg">
<meta property="og:url" content="https://abhaukoul-techscout-news.hf.space/">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<style>
body {
font-family: 'Arial', sans-serif;
background-color: #f8f9fa;
color: #333;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: 0 auto;
padding-top: 50px;
}
.jumbotron {
background-color: #007bff;
color: #fff;
padding: 2rem;
border-radius: 15px;
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 50px;
}
.logo {
max-width: 200px;
margin-bottom: 20px;
}
.subscribe-btn {
background-color: #ff0000;
border-color: #ff0000;
border-radius: 24px;
padding: 15px 30px;
font-size: 20px;
text-transform: uppercase;
transition: background-color 0.3s ease, border-color 0.3s ease;
display: inline-block;
}
.subscribe-btn:hover {
background-color: #cc0000;
border-color: #cc0000;
}
.card {
border: none;
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}
.search-input {
border: 2px solid #007bff;
border-radius: 24px;
padding: 15px;
font-size: 18px;
width: calc(100% - 160px);
transition: border-color 0.3s ease;
}
.search-input:focus {
outline: none;
border-color: #0056b3;
}
.time-limit-select {
border: 2px solid #007bff;
border-radius: 24px;
padding: 12px 15px;
font-size: 16px;
transition: border-color 0.3s ease;
}
.time-limit-select:focus {
outline: none;
border-color: #0056b3;
}
.search-btn {
background-color: #007bff;
border: none;
border-radius: 24px;
color: #fff;
padding: 15px 20px;
font-size: 18px;
text-transform: uppercase;
transition: background-color 0.3s ease;
cursor: pointer;
}
.search-btn:hover {
background-color: #0056b3;
}
.form-row {
align-items: flex-start;
margin-bottom: 20px;
}
.search-result {
margin-bottom: 30px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
background-color: #fff;
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}
.result-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
color: #007bff;
transition: color 0.3s ease;
text-decoration: none;
}
.result-title:hover {
color: #0056b3;
}
.result-url {
font-size: 18px;
color: #006621;
margin-bottom: 10px;
}
.result-snippet {
font-size: 18px;
line-height: 1.6;
}
.no-results {
text-align: center;
font-style: italic;
margin-top: 30px;
font-size: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="jumbotron text-center" style="margin-top: 100px;">
<h1 class="display-4 mb-4">Explore the Latest Text</h1>
<p class="lead mb-4">InfoHive is your source for up-to-date text content on technology, sports, and more.</p>
<a href="https://youtube.com/@OEvortex" class="btn btn-primary subscribe-btn" target="_blank">Subscribe to OEvortex on YouTube</a>
</div>
<div class="card mb-4">
<div class="card-body">
<form method="GET" action="/" autocomplete="off">
<div class="form-row align-items-center">
<div class="col-md-7">
<input type="text" class="form-control search-input" name="keywords" placeholder="Enter keywords" value="{{ keywords }}">
</div>
<div class="col-md-3">
<select name="timelimit" class="form-control time-limit-select">
<option value="d" {% if timelimit == 'd' %}selected{% endif %}>Day</option>
<option value="w" {% if timelimit == 'w' %}selected{% endif %}>Week</option>
<option value="m" {% if timelimit == 'm' %}selected{% endif %}>Month</option>
</select>
</div>
<div class="col-md-2">
<button type="submit" class="btn btn-primary search-btn">Search</button>
</div>
</div>
</form>
</div>
</div>
{% if text %}
{% for text_item in text %}
<div class="search-result">
<a href="{{ text_item['href'] }}" class="result-title" target="_blank">{{ text_item['title'] }}</a>
<!-- <div class="result-url">{{ text_item['href'] }}</div> -->
<div class="result-snippet">{{ text_item['body'] }}</div>
</div>
{% endfor %}
{% else %}
<p class="no-results">No results found.</p>
{% endif %}
</div>
</body>
</html>
|