Search/templates/results.html
2024-03-30 21:59:16 +01:00

42 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{.Query}} - Search Results</title>
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
</head>
<body>
<div class="header">
<h1>TailsGo</h1>
<form action="/search" method="post" class="search-form" autocomplete="off">
<div class="search-bar">
<input type="text" name="q" value="{{ .Query }}" autofocus id="search-input" placeholder="Type to search..." />
<button type="submit" id="search-btn">Search</button>
</div>
</form>
</div>
<form class="results_settings" action="/search" method="get">
<input type="hidden" name="q" value="{{ .Query }}">
<select class="results-settings" name="safe" id="safeSearchSelect">
<option value="active">Safe Search On</option>
<option value="">Safe Search Off</option>
</select>
<select class="results-settings" name="lang" id="languageSelect">
<option value="">Any Language</option>
<!-- Populate with actual language options as needed -->
</select>
<button class="results-save" type="submit">Apply settings</button>
</form>
<div class="results">
<!-- Results go here -->
{{range .Results}}
<div class="result_item">
<a href="{{.URL}}"><h3>{{.Header}}</h3></a>
<p>{{.Description}}</p>
</div>
{{end}}
</div>
<!-- Additional features and formatting based on inspiration.html -->
</body>
</html>