about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Andronaco <andronacomarco@gmail.com>2023-07-09 17:36:51 +0200
committerMarco Andronaco <andronacomarco@gmail.com>2023-07-09 17:36:51 +0200
commitd1bd70fe308ef1b7385b055a91c0a9b7797753db (patch)
treed523e924a1c179a6d2d5eacf5c36e7999c274a25
parent632d30eb88ceb519cf3f95472cc5e70431b8a85c (diff)
downloadtnt-search-d1bd70fe308ef1b7385b055a91c0a9b7797753db.tar.gz
better buttons
-rwxr-xr-xmain.py2
-rw-r--r--templates/index.html17
2 files changed, 13 insertions, 6 deletions
diff --git a/main.py b/main.py
index 7660eac..fa239ee 100755
--- a/main.py
+++ b/main.py
@@ -38,7 +38,7 @@ CATEGORIE = {
     36: "Edicola",
     37: "Mobile"
 }
-MAGNET_STR = '<button onclick=\"location.href=\'magnet:?xt=urn:btih:{}\'\">m</button>'
+MAGNET_STR = '<button onclick=\"location.href=\'magnet:?xt=urn:btih:{}\'\" class="btn btn-danger">m</button>'
 
 def handle_content(content: str):
     return { x: content[idx] for idx, x in enumerate(HEADER) }
diff --git a/templates/index.html b/templates/index.html
index bbcf28c..7784ca7 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -6,12 +6,19 @@
         .row {
           margin-bottom: 40px;
         }
+        a:link, a:visited, a:hover {
+          color: white;
+        }
       </style>
       <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
     </head>
     <body style="background-color: black; color: white;">
       <div class="container mt-5">
-
+        <div class="row">
+          <div class="col-md-12">
+            <h1><a href="/">TNTVillage Search</a></h1>
+          </div>
+        </div>
         <div class="row d-flex justify-content-center">
           <div class="col-md-6">
             <select class="form-select" id="form2" aria-label="Category" onchange="search_button()" data-bs-theme="dark">
@@ -37,16 +44,16 @@
         </div>
         <div class="row d-flex justify-content-center">
           <div class="col-md-4">
-            <a href="#" onclick="change_page(-1)">
+            <button class="btn btn-primary" onclick="change_page(-1)">
               Pagina precedente
-            </a>
+            </button>
           </div>
           <div class="col-md-4" style="text-align: center;" id="page_indicator">
           </div>
           <div class="col-md-4" style="text-align: right;">
-            <a href="#" onclick="change_page()">
+            <button class="btn btn-primary" onclick="change_page()">
               Pagina successiva
-            </a>
+            </button>
           </div>
         </div>