seedlinux

find open source torrents and stats for people wishing to contribute bandwidth.
git clone git://git.beardyjay.co.uk/seedlinux
Log | Files | Refs | README | LICENSE

commit 97a9a0208a7d9787e975bbe7dac83392569ff1f8
parent d1fa28468350571c1ba967b2fbf5ece862b823e8
Author: Jay Scott <jay@jayscott.co.uk>
Date:   Wed, 28 Jun 2017 17:22:37 +0100

changes to the front-end interface

Diffstat:
Mpackage.json | 1-
Dpublic/javascripts/script.js | 4----
Mpublic/stylesheets/style.css | 37++++++++++++++++++++++++-------------
Mviews/index.pug | 12++++++++----
Mviews/layout.pug | 15+++++++++++++++
5 files changed, 47 insertions(+), 22 deletions(-)

diff --git a/package.json b/package.json @@ -12,7 +12,6 @@ "cookie-parser": "~1.4.3", "debug": "~2.6.3", "express": "~4.15.2", - "lint": "^1.1.2", "mongodb": "^2.2.29", "monk": "^6.0.1", "morgan": "~1.8.1", diff --git a/public/javascripts/script.js b/public/javascripts/script.js @@ -1,3 +0,0 @@ -$('.special.cards .image').dimmer({ - on: 'hover' -});- \ No newline at end of file diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css @@ -1,12 +1,23 @@ - body { - padding: 1em; - } - .ui.menu { - margin: 3em 0em; - } - .ui.menu:last-child { - margin-bottom: 110px; - } - img.ui.centered.medium.image { - padding-bottom: 2em; - }- \ No newline at end of file +body { + padding: 1em; +} + +.ui.menu { + margin: 3em 0em; +} + +.ui.menu:last-child { + margin-bottom: 110px; +} + +img.ui.centered.medium.image { + padding-bottom: 2em; +} + +.ui.card>.content>.header:not(.ui), .ui.cards>.card>.content>.header:not(.ui) { + font-size: 1.1em; +} + +.ui.divider { + padding-bottom: 2em; +}+ \ No newline at end of file diff --git a/views/index.pug b/views/index.pug @@ -1,12 +1,13 @@ extends layout block content - .ui.four.cards + .ui.special.four.cards each i in torrentlist - .ui.card + .card .content - .header= i.name - .meta= i.created + .header= i.name.replace(/\.[^/.]+$/, "") + .meta + span.category= "2 days ago" .description= i.comment .extra.content span.left.floated @@ -21,3 +22,6 @@ block content else i.floated.download.green.icon = i.leechers + .ui.bottom.attached.button + i.add.icon + a(href="/torrent/details/" + i.hash) Details diff --git a/views/layout.pug b/views/layout.pug @@ -20,5 +20,20 @@ html | Add Torrent img.ui.centered.medium.image(src='/images/logo.png') + .ui.hidden.divider + .ui.container + .ui.small.three.statistics + .olive.statistic + .value= "143" + .label= "Total Torrents" + .red.statistic + .value= "23" + .label= "Seeders" + .violet.statistic + .value= "231" + .label= "Leechers" + + .ui.divider .ui.container block content +