wip restyling
This commit is contained in:
parent
96dae70aa9
commit
7bf2b8e609
13 changed files with 1714 additions and 505 deletions
|
@ -2,107 +2,32 @@
|
|||
<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>{{.Query}} - Search Results</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: Arial, sans-serif; /* Change the font family to your preference */
|
||||
background-color: #f5f5f5; /* Change the background color to your preference */
|
||||
}
|
||||
|
||||
.results-search-container {
|
||||
text-align: center;
|
||||
background-color: #fff; /* Change the background color to your preference */
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow effect */
|
||||
margin: 20px auto;
|
||||
max-width: 600px; /* Adjust the max-width to your preference */
|
||||
}
|
||||
|
||||
.results-search-container h1 {
|
||||
font-size: 24px;
|
||||
color: #333; /* Change the title color to your preference */
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.results-search-container input[type="text"] {
|
||||
width: calc(100% - 120px); /* Adjust the width to leave space for the button */
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc; /* Add a border */
|
||||
border-radius: 4px;
|
||||
font-size: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.results-search-container .sub-search-button-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.results-search-container .sub-search-button-wrapper button {
|
||||
padding: 10px 20px;
|
||||
margin: 0 10px;
|
||||
font-size: 16px;
|
||||
background-color: #007bff; /* Change the button background color to your preference */
|
||||
color: #fff; /* Change the button text color to your preference */
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.results-search-container .sub-search-button-wrapper button:hover {
|
||||
background-color: #0056b3; /* Change the button hover background color to your preference */
|
||||
}
|
||||
|
||||
.fetched, .snip, .snipp, .results {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.results a {
|
||||
text-decoration: none;
|
||||
color: #007bff; /* Change the link color to your preference */
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.results h3 {
|
||||
font-size: 20px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.results p {
|
||||
font-size: 16px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
|
||||
</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>
|
||||
<input type="text" name="q" value="{{ .Query }}" />
|
||||
<div class="sub-search-button-wrapper">
|
||||
<button name="t"><img src="/static/searchicon.png" alt="text result" />General</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- <h1>Search Results for "{{.Query}}"</h1> -->
|
||||
|
||||
{{range .Results}}
|
||||
<div>
|
||||
<a href="{{.URL}}">{{.Header}}</a><br>
|
||||
<span>{{.Description}}</span>
|
||||
<div class="search-container">
|
||||
<form action="/search" method="post" autocomplete="off">
|
||||
<h1>TailsGo</h1>
|
||||
<div class="wrapper">
|
||||
<input type="text" name="q" value="{{ .Query }}" autofocus id="search-input" placeholder="Type to search..." />
|
||||
<button id="search-wrapper-ico" class="material-icons-round" name="t" type="submit">search</button>
|
||||
<!-- Include clear search icon if functionality is supported -->
|
||||
</div>
|
||||
<div class="search-button-wrapper">
|
||||
<!-- Additional search options buttons if needed -->
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<br>
|
||||
{{end}}
|
||||
<!-- <p>{{.Fetched}}</p>
|
||||
<p>{{.Snippet}}</p>
|
||||
<p>{{.KnoRdesc}}</p>
|
||||
<p>{{.ElapsedTime}}</p>
|
||||
<p>{{.RdescLink}}</p> -->
|
||||
<div class="results">
|
||||
{{range .Results}}
|
||||
<div class="result_item">
|
||||
<a href="{{.URL}}"><h3>{{.Header}}</h3></a>
|
||||
<p>{{.Description}}</p>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<!-- Additional content and structured elements go here -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue