Search/templates/results.html

44 lines
1.7 KiB
HTML
Raw Normal View History

2024-03-27 20:30:19 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-03-28 10:52:16 +00:00
<title>{{.Query}} - Search Results</title>
2024-03-30 17:00:43 +00:00
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
2024-03-27 20:30:19 +00:00
</head>
<body>
2024-03-30 20:59:16 +00:00
<div class="header">
<h1>TailsGo</h1>
<form action="/search" method="post" class="search-form" autocomplete="off">
<div class="search-bar">
2024-03-30 17:00:43 +00:00
<input type="text" name="q" value="{{ .Query }}" autofocus id="search-input" placeholder="Type to search..." />
2024-03-30 20:59:16 +00:00
<button type="submit" id="search-btn">Search</button>
2024-03-30 17:00:43 +00:00
</div>
</form>
2024-03-28 10:52:16 +00:00
</div>
2024-03-30 20:59:16 +00:00
<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="">Safe Search Off</option>
2024-03-30 22:29:14 +00:00
<option value="active">Safe Search On</option>
2024-03-30 20:59:16 +00:00
</select>
<select class="results-settings" name="lang" id="languageSelect">
2024-03-30 22:29:14 +00:00
{{range .LanguageOptions}}
<option value="{{.Code}}" {{if eq .Code $.CurrentLang}}selected{{end}}>{{.Name}}</option>
{{end}}
</select>
2024-03-30 20:59:16 +00:00
<button class="results-save" type="submit">Apply settings</button>
</form>
2024-03-30 17:00:43 +00:00
<div class="results">
2024-03-30 20:59:16 +00:00
<!-- Results go here -->
2024-03-30 17:00:43 +00:00
{{range .Results}}
<div class="result_item">
<a href="{{.URL}}"><h3>{{.Header}}</h3></a>
<p>{{.Description}}</p>
</div>
{{end}}
</div>
2024-03-30 20:59:16 +00:00
<!-- Additional features and formatting based on inspiration.html -->
2024-03-27 20:30:19 +00:00
</body>
</html>