added safe search
This commit is contained in:
parent
7bf2b8e609
commit
dfc3600664
3 changed files with 124 additions and 52 deletions
|
@ -7,20 +7,29 @@
|
|||
<link rel="stylesheet" type="text/css" href="/static/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="search-container">
|
||||
<form action="/search" method="post" autocomplete="off">
|
||||
<h1>TailsGo</h1>
|
||||
<div class="wrapper">
|
||||
<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 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 -->
|
||||
<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>
|
||||
|
@ -28,6 +37,6 @@
|
|||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
<!-- Additional content and structured elements go here -->
|
||||
<!-- Additional features and formatting based on inspiration.html -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue