typo fix lol

This commit is contained in:
partisan 2024-03-28 11:52:16 +01:00
parent 84a88d6fe6
commit 96dae70aa9
4 changed files with 132 additions and 70 deletions

View file

@ -1,12 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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>{{ .Title }}</title>
<link rel="stylesheet" type="text/css" href="/static/style.css">
<title>{{.Query}} - Search Results</title>
<style>
body {
margin: 0;
@ -57,35 +55,15 @@
transition: background-color 0.3s ease;
}
.results-search-container .sub-search-button-wrapper button img {
vertical-align: middle;
margin-right: 5px; /* Adjust the margin between the icon and text */
}
.results-search-container .sub-search-button-wrapper button:hover {
background-color: #0056b3; /* Change the button hover background color to your preference */
}
.fetched {
.fetched, .snip, .snipp, .results {
text-align: center;
margin-top: 20px;
}
.snip,
.snipp {
text-align: center;
margin-top: 20px;
}
.results {
background-color: #fff; /* Change the background color to your preference */
padding: 20px;
margin: 20px auto;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow effect */
max-width: 600px; /* Adjust the max-width to your preference */
}
.results a {
text-decoration: none;
color: #007bff; /* Change the link color to your preference */
@ -104,7 +82,6 @@
}
</style>
</head>
<body>
<form action="/search" class="results-search-container" method="post" autocomplete="off">
<h1 class="logomobile"><a class="no-decoration" href="./">Tails<span class="X">Go</span></a></h1>
@ -113,21 +90,19 @@
<button name="t"><img src="/static/searchicon.png" alt="text result" />General</button>
</div>
</form>
<p class="fetched">{{ .Fetched }}</p>
{{ if ne .KnoRdesc "" }}
<p class="snip">{{ .KnoRdesc }} <a target="_blank" href="{{ .RdescLink }}">{{ .RdescLink }}</a></p>
{{ end }}
{{ if ne .Snippet "" }}
<p class="snipp">{{ .Snippet }} <a target="_blank" href="{{ index .Results 0 0 }}">{{ index .Results 0 0 }}</a></p>
{{ end }}
{{ if .Results }}
{{ range .Results }}
<div class="results">
<a href="{{ . }}">{{ . }}<h3>{{ . }}</h3></a>
<p>{{ . }}</p>
</div>
{{ end }}
{{ end }}
<!-- <h1>Search Results for "{{.Query}}"</h1> -->
{{range .Results}}
<div>
<a href="{{.URL}}">{{.Header}}</a><br>
<span>{{.Description}}</span>
</div>
<br>
{{end}}
<!-- <p>{{.Fetched}}</p>
<p>{{.Snippet}}</p>
<p>{{.KnoRdesc}}</p>
<p>{{.ElapsedTime}}</p>
<p>{{.RdescLink}}</p> -->
</body>
</html>