From 263fbe76302b347b07bd5b717c4a3a2c8bf77166 Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 28 Apr 2020 21:47:28 +0200 Subject: [PATCH] added intro --- src/App.vue | 61 ++++++++++++++++++++++++++++++++++--- src/components/TownInfo.vue | 4 ++- 2 files changed, 59 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 9643216..8b7d18b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,23 @@ v-bind:class="{ screenshot: isScreenshot }" v-bind:style="{ backgroundImage: background ? `url('${background}')` : '' }" > - +
+ + Welcome to the (inofficial) + Virtual Blood on the Clocktower Town Square!
+ Please add more players through the + + Menu + + on the top right or by pressing [A].
+ This project is free and open source and can be found on + GitHub. +
+ Grimoire -
  • +
  • [G]
  • -
  • +
  • Night order
  • -
  • +
  • {{ Math.round(zoom * 100) }}% @@ -363,6 +379,13 @@ body { position: relative; } +a { + color: $townsfolk; + &:hover { + color: $demon; + } +} + h1, h2, h3, @@ -382,6 +405,10 @@ ul { height: 100%; background-position: center center; background-size: cover; + display: flex; + align-items: center; + align-content: center; + justify-content: center; } // success animation @@ -394,6 +421,29 @@ ul { } } +// Intro +.intro { + text-align: center; + width: 50%; + font-size: 120%; + position: absolute; + padding: 10px; + background: rgba(0, 0, 0, 0.5); + border: 3px solid black; + border-radius: 10px; + z-index: 3; + img { + position: absolute; + bottom: 100%; + left: 50%; + margin-left: -96px; + margin-bottom: 20px; + border-radius: 50%; + box-shadow: 0 0 10px black; + border: 3px solid black; + } +} + // Controls .controls { position: absolute; @@ -422,7 +472,8 @@ ul { } .menu { - transform-origin: 189px 22px; + width: 210px; + transform-origin: 190px 22px; transition: transform 500ms cubic-bezier(0.68, -0.55, 0.27, 1.55); transform: rotate(-90deg); diff --git a/src/components/TownInfo.vue b/src/components/TownInfo.vue index c3e11b7..647520e 100644 --- a/src/components/TownInfo.vue +++ b/src/components/TownInfo.vue @@ -1,7 +1,9 @@