summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-04 12:26:33 +0200
committerTor Andersson <tor@ccxvii.net>2021-06-04 12:29:30 +0200
commit42c10fe5c6879980e0790a9a87b709e3ab26f40f (patch)
treeb9cbf84b2d7f5d74c86cb3ac018d6bfcf887fd82
parent78170e63aca439c76fd02f5393c02a93edbda38a (diff)
downloadserver-42c10fe5c6879980e0790a9a87b709e3ab26f40f.tar.gz
High res covers.
Size covers to fit in a 300x300 pixel box (150x150 displayed).
-rw-r--r--public/style.css2
-rw-r--r--views/index.ejs2
-rw-r--r--views/profile.ejs5
3 files changed, 6 insertions, 3 deletions
diff --git a/public/style.css b/public/style.css
index c1b25fd..7a10a99 100644
--- a/public/style.css
+++ b/public/style.css
@@ -26,7 +26,7 @@ h2 { margin-left: -1px; }
.main hr + p { font-style: italic; }
table.wide { min-width: 50rem; }
.error { color: brown; font-style: italic; white-space: pre-wrap; }
-.logo { float: left; margin: 0 20px 5px 0; box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.5); }
+.logo { float: left; margin: 0 20px 5px 0; box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.5); height: 150px; }
table { border-collapse: collapse; }
th { text-align: left; background-color: gainsboro; }
th, td { border: 1px solid black; }
diff --git a/views/index.ejs b/views/index.ejs
index 95e7898..91f4504 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -2,7 +2,7 @@
<style>
.list { display: flex; flex-wrap: wrap; justify-content: left; }
.list a { margin: 1em; display: block; }
-.list img { box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.5); }
+.list img { box-shadow: 2px 2px 4px 0px rgba(0,0,0,0.5); height: 150px; }
</style>
<p>
diff --git a/views/profile.ejs b/views/profile.ejs
index 60f1ff9..0b3f20f 100644
--- a/views/profile.ejs
+++ b/views/profile.ejs
@@ -1,5 +1,8 @@
<%- include('header', { title: "Rally the Troops!", refresh: (active_games.length > 0 ? 300 : 0) }) %>
-<style>td.nowrap a { color: black; text-decoration: none; }</style>
+<style>
+td.nowrap a { color: black; text-decoration: none; }
+.logo { width: 80px; height: 80px; }
+</style>
<img class="logo" src="<%= avatar %>" width="80" height="80">
<p>