summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/index.ejs2
-rw-r--r--views/partials/top/navbar.ejs6
-rw-r--r--views/settings.ejs44
3 files changed, 51 insertions, 1 deletions
diff --git a/views/index.ejs b/views/index.ejs
index f934a13..cf3ad42 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -3,7 +3,7 @@
<div class="text-center mt-5">
<img class="mw-100 w-50 img-fluid" src="static/images/sneedab.gif" alt="info_conver">
<form class="p-4" action="search" method="POST">
- <input type="text" name="search" class="mw-100 w-50 form-control text-bg-dark border-0 shadow text-center m-auto search-bar" placeholder="Search for torrent">
+ <input type="text" name="search" class="mw-100 w-50 form-control text-bg-dark border-0 shadow text-center m-auto mandatory-text-box" placeholder="Search for torrent">
</form>
<p class="text-muted fs-7">In order to download and seed the torrents, I recommend either using <a href="https://www.qbittorrent.org/">qBitorrent</a> or <a href="https://transmissionbt.com/">transmission</a> softwares</p>
</div>
diff --git a/views/partials/top/navbar.ejs b/views/partials/top/navbar.ejs
index 356cb0b..4059dc1 100644
--- a/views/partials/top/navbar.ejs
+++ b/views/partials/top/navbar.ejs
@@ -5,6 +5,12 @@
SNEEDBAY
</a>
<div class="align-items-center d-flex justify-content-between gap-3">
+ <a href="/settings" class="link-light">
+ <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" viewBox="0 0 16 16">
+ <path d="M7.068.727c.243-.97 1.62-.97 1.864 0l.071.286a.96.96 0 0 0 1.622.434l.205-.211c.695-.719 1.888-.03 1.613.931l-.08.284a.96.96 0 0 0 1.187 1.187l.283-.081c.96-.275 1.65.918.931 1.613l-.211.205a.96.96 0 0 0 .434 1.622l.286.071c.97.243.97 1.62 0 1.864l-.286.071a.96.96 0 0 0-.434 1.622l.211.205c.719.695.03 1.888-.931 1.613l-.284-.08a.96.96 0 0 0-1.187 1.187l.081.283c.275.96-.918 1.65-1.613.931l-.205-.211a.96.96 0 0 0-1.622.434l-.071.286c-.243.97-1.62.97-1.864 0l-.071-.286a.96.96 0 0 0-1.622-.434l-.205.211c-.695.719-1.888.03-1.613-.931l.08-.284a.96.96 0 0 0-1.186-1.187l-.284.081c-.96.275-1.65-.918-.931-1.613l.211-.205a.96.96 0 0 0-.434-1.622l-.286-.071c-.97-.243-.97-1.62 0-1.864l.286-.071a.96.96 0 0 0 .434-1.622l-.211-.205c-.719-.695-.03-1.888.931-1.613l.284.08a.96.96 0 0 0 1.187-1.186l-.081-.284c-.275-.96.918-1.65 1.613-.931l.205.211a.96.96 0 0 0 1.622-.434l.071-.286zM12.973 8.5H8.25l-2.834 3.779A4.998 4.998 0 0 0 12.973 8.5zm0-1a4.998 4.998 0 0 0-7.557-3.779l2.834 3.78h4.723zM5.048 3.967c-.03.021-.058.043-.087.065l.087-.065zm-.431.355A4.984 4.984 0 0 0 3.002 8c0 1.455.622 2.765 1.615 3.678L7.375 8 4.617 4.322zm.344 7.646.087.065-.087-.065z"/>
+ </svg>
+ </a>
+
<a href="/info" class="link-light">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" />
diff --git a/views/settings.ejs b/views/settings.ejs
new file mode 100644
index 0000000..7587da8
--- /dev/null
+++ b/views/settings.ejs
@@ -0,0 +1,44 @@
+<%- include('partials/header'); %>
+
+<h1>Settings</h1>
+
+<div class="text-center mt-5">
+ <form action="settings" method="POST">
+ <div name="content">
+ <h2 class="display-6">Content</h2>
+ <div class="row justify-content-center">
+ <div class="col-sm-4 mt-2">
+ <input class="form-check-input" type="checkbox" name="nsfw" <% if (config.settings.nsfw_content) { %> checked="true" <% } %> id="nsfw">
+ <label class="form-check-label" for="nsfw">NSFW Content</label>
+ </div>
+ </div>
+ </div>
+
+ <div name="network" class="mt-5">
+ <h2 class="display-6">Network</h2>
+ <div class="row justify-content-center">
+ <div class="col-sm-4">
+ <label class="form-check-label" for="port">Port Number</label>
+ <input type="text" class="text-bg-dark form-control w-50 m-auto mt-2 text-center mandatory-text-box" placeholder="3000" name="port" <% if (config.settings.port) { %> value="<%= config.settings.port %>" <% } %> id="port">
+ </div>
+ </div>
+ </div>
+
+ <div name="network" class="mt-5">
+ <div class="row justify-content-center">
+ <div class="col-sm-4">
+ <button type="submit" class="btn btn-primary">
+ <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor"
+ viewBox="0 0 16 16">
+ <path
+ d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z">
+ </svg>
+ Save
+ </button>
+ </div>
+ </div>
+ </div>
+ </form>
+</div>
+
+<%- include('partials/footer'); %> \ No newline at end of file