Text-search / templates /text.html
Aarifkhan's picture
Upload 3 files
f2fffda verified
raw
history blame
6.44 kB
<!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">{{ 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>