From b2748b56f0a31ca48bad1024850a87011f436da3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 14 Sep 2018 01:32:56 +0200 Subject: [PATCH] Add gamelog mini --- static/nryg.less | 22 +++++++++++++++++++++- templates/minis/gamelog.html | 25 +++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 templates/minis/gamelog.html diff --git a/static/nryg.less b/static/nryg.less index 47042e5f..ccc8b5a7 100644 --- a/static/nryg.less +++ b/static/nryg.less @@ -649,7 +649,7 @@ nav { } .last-video { - grid-column: 1 + grid-column: 1; } .fav-video { @@ -660,6 +660,26 @@ nav { color: rgba(255, 255, 255, 0.3); } } + + .gamelog { + background-color: #00ffc8; + padding: 18px; + color: black; + font-family: "Arial", sans-serif; + grid-template-columns: 33.3% 33.4% 33.3%; + + .games-owned { + grid-column: 1; + } + + .games-beaten { + grid-column: 2; + } + + .games-completed { + grid-column: 3; + } + } } .wiki { diff --git a/templates/minis/gamelog.html b/templates/minis/gamelog.html new file mode 100644 index 00000000..db9109b2 --- /dev/null +++ b/templates/minis/gamelog.html @@ -0,0 +1,25 @@ +
+
+
+ {{ record.username }} +
+
+ Posseduti +
+
+ {{ record.owned_games }} +
+
+ Finiti +
+
+ {{ record.beaten_games }} +
+
+ Completati +
+
+ {{ record.completed_games }} +
+
+