mirror of
https://github.com/abrendan/NochuSearch.git
synced 2025-08-24 21:50:35 +02:00
Initial commit
This commit is contained in:
15
templates/index.html
Normal file
15
templates/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Nochu</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Welcome to Nochu</h1>
|
||||
<p>Yet another search engine.</p>
|
||||
<form action="/search" method="get">
|
||||
<input type="text" name="query" required>
|
||||
<button type="submit">Search</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
23
templates/results.html
Normal file
23
templates/results.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Search Results</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='styles_results.css') }}"> <!-- Link to the CSS file -->
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Search Results</h1>
|
||||
<a href="/" class="search-link">New Search</a>
|
||||
<ul class="results-list">
|
||||
{% for result in search_results %}
|
||||
<li class="result-item">
|
||||
<h2><a href="{{ result.link }}" class="result-title">{{ result.title }}</a></h2>
|
||||
<p class="result-snippet">{{ result.snippet }}</p>
|
||||
<a href="{{ result.link }}" class="result-link">{{ result.link }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user