diff --git a/cmd/main.go b/cmd/main.go index ee1874c..fa6c90c 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,8 +1,8 @@ package main import ( - "log" "time" + "log" "net/http" "strings" diff --git a/static/css/style.css b/static/css/style.css index 0fe8f87..daae1df 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -24,10 +24,6 @@ img { max-width: 100%; } -th { - cursor: pointer; -} - input:focus, textarea:focus, button:focus { @@ -132,18 +128,21 @@ button:focus { .content-item-inner2 { margin-top: 20px; + margin-bottom: 40px; + border-right: 2px solid #222831; + border-left: 2px solid #222831; + border-bottom: 2px solid #222831; + border-radius: 8px 8px 0px 0px; } .content-item-inner3 { + display: flex; align-items: center; border-bottom: 2px solid #ffd018; + border-radius: 8px 8px 0px 0px; background: #222831; } -.content-item-inner3 th { - border-radius: 8px 8px 0px 0px; -} - .content-item-inner3 h2 { font-weight: 700; font-size: 20px; @@ -154,6 +153,7 @@ button:focus { .content-item-inner4 { width: 760px; + display: flex; align-items: center; justify-content: space-between; padding-right: 10px; @@ -162,13 +162,15 @@ button:focus { padding-left: 86px; } -.content-item-inner4 th { +.content-item-inner4 div { + display: flex; flex-direction: column; justify-content: center; } .content-item-inner5 { width: 320px; + display: flex; align-items: center; justify-content: space-between; padding: 0 10px; @@ -176,37 +178,30 @@ button:focus { height: 60px; } -.content-item-inner5 th { +.content-item-inner5 div { + display: flex; flex-direction: column; justify-content: center; } .content-item-inner6 { width: 120px; + display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; height: 60px; - text-align: right; } -.content-item-inner2 table tr td { +.content-item-inner2 ul li { + display: flex; align-items: center; padding-left: 17px; padding-right: 10px; height: 60px; - border-bottom: 2px solid #222831; } -.content-item-inner2 table tr td:nth-child(1) { - border-left: 2px solid #222831; -} - -.content-item-inner2 table tr td:nth-child(3) { - border-right: 2px solid #222831; -} - -.content-item-inner2 table tr td a { +.content-item-inner2 ul li a { font-weight: 400; font-size: 20px; display: inline-block; @@ -214,7 +209,7 @@ button:focus { color: #FFFFFF; } -.content-item-inner2 table tr td p { +.content-item-inner2 ul li p { font-weight: 400; font-size: 20px; display: inline-block; @@ -222,26 +217,26 @@ button:focus { color: #FFFFFF; } -.content-item-inner2 table tr:nth-child(odd) { +.content-item-inner2 ul li:nth-child(even) { background: #222831; } -.content-item-inner2 table tr td:nth-of-type(1) { +.content-item-inner2 ul li div:nth-of-type(1) { width: 760px; } -.content-item-inner2 table tr td:nth-of-type(1) img { +.content-item-inner2 ul li div:nth-of-type(1) img { max-width: 32px; margin-right: 37px; margin-top: -5px; } -.content-item-inner2 table tr td:nth-of-type(2) { +.content-item-inner2 ul li div:nth-of-type(2) { width: 320px; padding-left: 10px; } -.content-item-inner2 table tr td:nth-of-type(3) { +.content-item-inner2 ul li div:nth-of-type(3) { width: 120px; padding-right: 10px; text-align: right; @@ -299,16 +294,16 @@ Small Screen - Tablate .content-item-inner4 { padding-left: 76px; } - - .content-item-inner2 table tr td a { + + .content-item-inner2 ul li a { font-size: 16px; } - - .content-item-inner2 table tr td p { + + .content-item-inner2 ul li p { font-size: 16px; } - - .content-item-inner2 table tr td a:nth-of-type(1) img { + + .content-item-inner2 ul li a:nth-of-type(1) img { margin-right: 27px; } @@ -350,15 +345,15 @@ Small Screen - Mobile } .content-item-inner4 { - width: 720px; + width: 760px; padding-left: 77px; } - .content-item-inner2 table tr td:nth-of-type(1) { - width: 720px; + .content-item-inner2 ul li div:nth-of-type(1) { + width: 760px; } - - .content-item-inner2 table tr td:nth-of-type(1) img { + + .content-item-inner2 ul li div:nth-of-type(1) img { margin-right: 28px; } diff --git a/static/js/sorttable.js b/static/js/sorttable.js deleted file mode 100644 index 435bd7f..0000000 --- a/static/js/sorttable.js +++ /dev/null @@ -1,478 +0,0 @@ -/* - SortTable - version 2 - 7th April 2007 - Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/ - - Instructions: - Download this file - Add to your HTML - Add class="sortable" to any table you'd like to make sortable - Click on the headers to sort - - Thanks to many, many people for contributions and suggestions. - Licenced as X11: http://www.kryogenix.org/code/browser/licence.html - This basically means: do what you want with it. -*/ - - -var stIsIE = /*@cc_on!@*/false; - -sorttable = { - init: function() { - // quit if this function has already been called - if (arguments.callee.done) return; - // flag this function so we don't do the same thing twice - arguments.callee.done = true; - // kill the timer - if (_timer) clearInterval(_timer); - - if (!document.createElement || !document.getElementsByTagName) return; - - sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; - - forEach(document.getElementsByTagName('table'), function(table) { - if (table.className.search(/\bsortable\b/) != -1) { - sorttable.makeSortable(table); - } - }); - - }, - - makeSortable: function(table) { - if (table.getElementsByTagName('thead').length == 0) { - // table doesn't have a tHead. Since it should have, create one and - // put the first table row in it. - the = document.createElement('thead'); - the.appendChild(table.rows[0]); - table.insertBefore(the,table.firstChild); - } - // Safari doesn't support table.tHead, sigh - if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; - - if (table.tHead.rows.length != 1) return; // can't cope with two header rows - - // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as - // "total" rows, for example). This is B&R, since what you're supposed - // to do is put them in a tfoot. So, if there are sortbottom rows, - // for backwards compatibility, move them to tfoot (creating it if needed). - sortbottomrows = []; - for (var i=0; i
{{$gamemode.Name}} |
- Map |
- Players |
-
---|---|---|
- {{range $flag := $flags -}}
- {{if eq $server.ServerIP $flag.ServerIP -}}
- ![]() |
- {{$server.Map}} |
- {{$server.Players}}/{{$server.MaxPlayers}} |
-
{{$server.Map}} +
{{$server.Players}}/{{$server.MaxPlayers}} +
{{$gamemode.Name}} |
- Map |
- Players |
-
---|---|---|
- {{range $flag := $flags -}}
- {{if eq $server.ServerIP $flag.ServerIP -}}
- ![]() |
- {{$server.Map}} |
- {{$server.Players}}/{{$server.MaxPlayers}} |
-