Commit 3dc17446 authored by Haj Rezvan's avatar Haj Rezvan

Change Search background to google background.

parent d3bb5264
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Document</title>
<style type="text/css">
.box {
width: 50%;
margin-left: 10%;
margin-top: 1rem;
font: icon;
font-size: 1rem;
}
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="../static/file.css" rel="stylesheet">
p {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
margin: 0;
color: #555;
}
<title>موتور جست و جوی فارس</title>
a {
text-decoration: none;
font-size: 1.2rem;
}
</style>
</head>
<body>
<h1>
موتور جست و جوی فارس
</h1>
<form action="{{ url_for('index') }}" method="POST">
<h4>
عبارت خود را برای جست و جو وارد کنید
</h4>
<label>
<input type="text" name="query"/>
</label><br>
<input type="submit" name="submit" value="جست و جو" class="mt-1">
</form>
<table id="results" class="table table-striped table-hover ms-1 me-1">
<thead class="table-light">
<tr>
<th scope="row" style="font-family: 'B Titr',monospace">عنوان</th>
<th scope="row" style="font-family: 'B Titr',monospace">گزیده</th>
<th scope="row" style="font-family: 'B Titr',monospace">آدرس</th>
</tr>
</thead>
<tbody>
<div>
<img src=" {{ url_for('static', filename='amirkabir.png') }}" style="width: 7%" alt=""/>
<input
style="
border-radius: 1rem;
width: 50%;
height: 2rem;
outline: none;
border: 1px solid #8080804a;
margin-left: 2rem;
position: absolute;
top: 1rem;
box-shadow: 0 2px 5px 1px rgba(64, 60, 67, 0.16);
padding: 0 1rem;
"
type="text"
name=""
id=""
/>
<img
src="{{ url_for('static', filename='farsnewslogo.png') }}"
style="width: 17%; position: absolute; right: 2rem; top: 1rem"
alt=""
/>
<hr style="color: #80808024"/>
{% for row in data %}
<tr class="text-light">
<td class="ellipsis">{{ row[1] }}</td>
<td class="content">{{ row[2] }}</td>
<td class="ellipsis">{{ row[3] }}</td>
</tr>
<div class="box">
<span>{{ row[3] }}</span>
<br/>
<a href={{ row[3] }}>{{ row[1] }}</a>
<p>
{{ row[2] }}
</p>
</div>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment