diff --git a/server/ui/src/Main.css b/server/ui/src/Main.css index dbd98fb..ca460f1 100644 --- a/server/ui/src/Main.css +++ b/server/ui/src/Main.css @@ -1,24 +1,38 @@ -.table-fixed { - table-layout: fixed; +html, +body { + /* assumes we won't target screens with a width smaller than 320px */ + min-width: 320px; } -.search-name-col { - width: 50%; -} +/* globally disable dotted outlines on anchors */ +a:focus { outline: none; } +a::-moz-focus-inner { border: 0; } -.search-name-cell { - word-wrap: break-word; -} +.search-name-col { width: 50%; } +.search-name-cell { word-wrap: break-word; } -.navbar-purple { - background-color: #673ab7; - -webkit-box-shadow: 0 8px 6px -6px #999; - -moz-box-shadow: 0 8px 6px -6px #999; - box-shadow: 0 8px 6px -6px #999; +.table-fixed { table-layout: fixed; } + +/* add padding to first and last cell */ +.table-padding th:first-child, +.table-padding td:first-child { padding-left: 1em !important; } +.table-padding th:last-child, +.table-padding td:last-child { padding-right: 1em !important; } + +/* Colors */ +.navbar-purple { background-color: #673ab7; } +.table-hover-purple tbody tr:hover { background-color: rgba(103, 58, 183, 0.2) !important; } + +/* Boostrap fixes */ +.rounded-right { + /* disable radius on left when using on right side */ + border-top-left-radius: 0; + border-bottom-left-radius: 0; } .no-outline, .no-outline:focus { + /* disable colored outline on btn or input */ box-shadow: none !important; outline: none !important; } diff --git a/server/ui/src/components/home.tsx b/server/ui/src/components/home.tsx index 366530b..bcf03b7 100644 --- a/server/ui/src/components/home.tsx +++ b/server/ui/src/components/home.tsx @@ -13,14 +13,12 @@ export class Home extends Component { onboard() { return ( -
-
+

Torrents.csv is a collaborative git repository of torrents, consisting of a single, searchable torrents.csv file. Its initially populated with a January 2017 backup of the pirate bay, and new torrents are periodically added from various torrents sites. It comes with a self-hostable webserver, a command line search, and a folder scanner to add torrents.

Torrents.csv will only store torrents with at least one seeder to keep the file small, will be periodically purged of non-seeded torrents, and sorted by seeders descending.

To request more torrents, or add your own, go here.

Made with Rust, ripgrep, Actix, Inferno, and Typescript. - -

+

); } diff --git a/server/ui/src/components/navbar.tsx b/server/ui/src/components/navbar.tsx index f4a63a7..6f55bd0 100644 --- a/server/ui/src/components/navbar.tsx +++ b/server/ui/src/components/navbar.tsx @@ -23,35 +23,33 @@ export class Navbar extends Component { render() { return ( -
{this.navbar()}
+
{this.navbar()}
) } navbar() { return ( -