This commit is contained in:
140
index.html
140
index.html
@ -1,110 +1,54 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title></title>
|
||||
<title>TROM Search</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="theme-color" content="#bc5151">
|
||||
<link rel="shortcut icon" href="img/favicon.png">
|
||||
<link rel="search" title="TROM Search" type="application/opensearchdescription+xml" href="opensearchdescription.xml">
|
||||
<style>
|
||||
* { margin: 0; }
|
||||
html, body { width: 100%; height: 100%; }
|
||||
body {
|
||||
background: url('https://www.tromsite.com/wp-content/uploads/2018/09/tromsite-bg-pattern-light-5.png') !important; background-repeat: repeat !important; background-attachment: fixed !important;
|
||||
height: auto !important;}
|
||||
|
||||
|
||||
#search:before {
|
||||
content: url("https://www.tromsite.com/wp-content/uploads/2021/02/trom-logo-dark.png");
|
||||
transform: scale(.6);
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 0 auto;}
|
||||
|
||||
#search-box {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 1rem;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
#info {
|
||||
color: black;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#info.error { color: #7b7b7b; margin-top: 20px;font-size: 13px;font-style: italic;}
|
||||
|
||||
#search input[name="query"] {
|
||||
width: 500px;
|
||||
height: 40px;
|
||||
background-color: white;
|
||||
border: 2px solid darkgrey;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#search {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#search-inputs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#search input[type="submit"] {
|
||||
height: 40px;
|
||||
background-color: #bc5151;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
padding: 0 10px;
|
||||
box-sizing: border-box;
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.search-radio-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#search label {
|
||||
margin-left: 5px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
</style>
|
||||
<script type="module" src="index.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="css/index.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/theme.css">
|
||||
<script type="module" src="js/index.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="search-box">
|
||||
<form id="search">
|
||||
<div id="search-inputs">
|
||||
<input name="query" type="text" placeholder="Query">
|
||||
<input type="submit" value="Search">
|
||||
</div>
|
||||
<div class="search-radio-buttons">
|
||||
<input type="radio" id="search-category-all" name="category" value="all" checked>
|
||||
<label for="search-category-all">All</label>
|
||||
<input type="radio" id="search-category-images" name="category" value="images">
|
||||
<label for="search-category-images">Images</label>
|
||||
<input type="radio" id="search-category-news" name="category" value="news">
|
||||
<label for="search-category-news">News</label>
|
||||
<input type="radio" id="search-category-videos" name="category" value="videos">
|
||||
<label for="search-category-videos">Videos</label>
|
||||
<input type="radio" id="search-category-files" name="category" value="files">
|
||||
<label for="search-category-videos">Files</label>
|
||||
</div>
|
||||
</form>
|
||||
<p id="info"></p>
|
||||
<div id="main">
|
||||
<div id="about">
|
||||
<img src="img/about.png">
|
||||
<p class="description">This is a <a href="https://www.trade-free.org">trade-free</a> tool, part of the <a href="https://trom.tf">trom.tf</a> suite of trade-free services.</p>
|
||||
</div>
|
||||
<main>
|
||||
<form id="search">
|
||||
<div class="search-inputs">
|
||||
<input name="query" type="text" placeholder="Query">
|
||||
<input type="submit" value="Search">
|
||||
</div>
|
||||
<div class="search-radio-buttons">
|
||||
<div class="category">
|
||||
<input type="radio" id="search-category-all" name="category" value="all" checked>
|
||||
<label for="search-category-all">All</label>
|
||||
</div>
|
||||
<div class="category">
|
||||
<input type="radio" id="search-category-images" name="category" value="images">
|
||||
<label for="search-category-images">Images</label>
|
||||
</div>
|
||||
<div class="category">
|
||||
<input type="radio" id="search-category-news" name="category" value="news">
|
||||
<label for="search-category-news">News</label>
|
||||
</div>
|
||||
<div class="category">
|
||||
<input type="radio" id="search-category-videos" name="category" value="videos">
|
||||
<label for="search-category-videos">Videos</label>
|
||||
</div>
|
||||
<div class="category">
|
||||
<input type="radio" id="search-category-files" name="category" value="files">
|
||||
<label for="search-category-files">Files</label>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
<p id="status"></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user