feat: make clicking on logo in header bring you back to homepage

This commit is contained in:
frosty 2026-03-31 05:59:32 +03:00
parent 71d3d0dcb0
commit 335b6f4683
4 changed files with 16 additions and 6 deletions

View file

@ -178,6 +178,16 @@ h1 {
h1 span {
color:var(--accent);
}
.logo-link {
text-decoration:none;
color:inherit;
}
header .logo-link {
transition:transform 0.2s;
}
header .logo-link:hover {
transform:scale(1.03);
}
.search-box {
width: 100%;
padding: 12px 24px;

View file

@ -15,9 +15,9 @@
<body class="images-view">
<header>
<h1>
<a href="/" class="logo-link"><h1>
Omni<span>Search</span>
</h1>
</h1></a>
<form action="/images" method="GET" class="search-form">
<input name="q" autocomplete="off"="text" class="search-box" placeholder="Search for images..."
value="{{query}}">

View file

@ -18,9 +18,9 @@
<body class="results-view">
<header>
<h1>
<a href="/" class="logo-link"><h1>
Omni<span>Search</span>
</h1>
</h1></a>
<form action="/search" method="GET" class="search-form">
<input name="engine" type="hidden" value="{{selected_engine}}">
<input name="q" type="text" class="search-box" autocomplete="off" placeholder="Search the web..."

View file

@ -18,9 +18,9 @@
<body class="settings-view">
<header>
<h1>
<a href="/" class="logo-link"><h1>
Omni<span>Search</span>
</h1>
</h1></a>
{{if query != ""}}
<form action="/search" method="GET" class="search-form">
<input name="q" type="text" class="search-box" autocomplete="off" placeholder="Search the web..."