feat: make clicking on logo in header bring you back to homepage
This commit is contained in:
parent
71d3d0dcb0
commit
335b6f4683
4 changed files with 16 additions and 6 deletions
|
|
@ -178,6 +178,16 @@ h1 {
|
||||||
h1 span {
|
h1 span {
|
||||||
color:var(--accent);
|
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 {
|
.search-box {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px 24px;
|
padding: 12px 24px;
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@
|
||||||
|
|
||||||
<body class="images-view">
|
<body class="images-view">
|
||||||
<header>
|
<header>
|
||||||
<h1>
|
<a href="/" class="logo-link"><h1>
|
||||||
Omni<span>Search</span>
|
Omni<span>Search</span>
|
||||||
</h1>
|
</h1></a>
|
||||||
<form action="/images" method="GET" class="search-form">
|
<form action="/images" method="GET" class="search-form">
|
||||||
<input name="q" autocomplete="off"="text" class="search-box" placeholder="Search for images..."
|
<input name="q" autocomplete="off"="text" class="search-box" placeholder="Search for images..."
|
||||||
value="{{query}}">
|
value="{{query}}">
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@
|
||||||
|
|
||||||
<body class="results-view">
|
<body class="results-view">
|
||||||
<header>
|
<header>
|
||||||
<h1>
|
<a href="/" class="logo-link"><h1>
|
||||||
Omni<span>Search</span>
|
Omni<span>Search</span>
|
||||||
</h1>
|
</h1></a>
|
||||||
<form action="/search" method="GET" class="search-form">
|
<form action="/search" method="GET" class="search-form">
|
||||||
<input name="engine" type="hidden" value="{{selected_engine}}">
|
<input name="engine" type="hidden" value="{{selected_engine}}">
|
||||||
<input name="q" type="text" class="search-box" autocomplete="off" placeholder="Search the web..."
|
<input name="q" type="text" class="search-box" autocomplete="off" placeholder="Search the web..."
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@
|
||||||
|
|
||||||
<body class="settings-view">
|
<body class="settings-view">
|
||||||
<header>
|
<header>
|
||||||
<h1>
|
<a href="/" class="logo-link"><h1>
|
||||||
Omni<span>Search</span>
|
Omni<span>Search</span>
|
||||||
</h1>
|
</h1></a>
|
||||||
{{if query != ""}}
|
{{if query != ""}}
|
||||||
<form action="/search" method="GET" class="search-form">
|
<form action="/search" method="GET" class="search-form">
|
||||||
<input name="q" type="text" class="search-box" autocomplete="off" placeholder="Search the web..."
|
<input name="q" type="text" class="search-box" autocomplete="off" placeholder="Search the web..."
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue