Compare commits
8 Commits
083b7a03b1
...
archive/ma
| Author | SHA1 | Date | |
|---|---|---|---|
| bef96ba7e3 | |||
| c0dadf8927 | |||
| 1f377de0f4 | |||
| 6c31fa0538 | |||
| 729a4eec6b | |||
| 72fcf783b8 | |||
| 1517d0c006 | |||
| 7f765b4514 |
Submodule knockoutwhist updated: 8645d4a219...fbc0ea2277
6
knockoutwhistweb/app/assets/stylesheets/dark-mode.less
Normal file
6
knockoutwhistweb/app/assets/stylesheets/dark-mode.less
Normal file
@@ -0,0 +1,6 @@
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background-image: url('/assets/images/background.png');
|
||||
--color: white;
|
||||
}
|
||||
}
|
||||
4
knockoutwhistweb/app/assets/stylesheets/light-mode.less
Normal file
4
knockoutwhistweb/app/assets/stylesheets/light-mode.less
Normal file
@@ -0,0 +1,4 @@
|
||||
:root {
|
||||
--background-image: url('/assets/images/img.png');
|
||||
--color: black;
|
||||
}
|
||||
@@ -1,5 +1,15 @@
|
||||
@import "light-mode.less";
|
||||
@import "dark-mode.less";
|
||||
|
||||
@background-image: var(--background-image);
|
||||
@color: var(--color);
|
||||
@keyframes slideIn {
|
||||
0% { transform: translateX(-100vw); }
|
||||
100% { transform: translateX(0); }
|
||||
}
|
||||
body {
|
||||
background-image: url("/assets/images/background.png");
|
||||
background-image: @background-image;
|
||||
background-size: 100vw 100vh;
|
||||
}
|
||||
|
||||
html, body {
|
||||
@@ -12,12 +22,20 @@ html, body {
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
h1 {
|
||||
animation: slideIn 0.5s ease-out forwards;
|
||||
animation-fill-mode: backwards;
|
||||
}
|
||||
}
|
||||
|
||||
#textanimation {
|
||||
animation: slideIn 0.5s ease-out forwards;
|
||||
animation-fill-mode: backwards;
|
||||
animation-delay: 1s;
|
||||
}
|
||||
#sessions a, h1, p {
|
||||
color: white;
|
||||
color: @color;
|
||||
font-size: 40px;
|
||||
font-family: Arial;
|
||||
font-family: Arial, serif;
|
||||
}
|
||||
#ingame {
|
||||
display: flex;
|
||||
@@ -30,8 +48,21 @@ html, body {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
height: 20%
|
||||
height: 20%;
|
||||
img {
|
||||
animation: slideIn 0.5s ease-out forwards;
|
||||
animation-fill-mode: backwards;
|
||||
&:nth-child(1) { animation-delay: 0.5s; }
|
||||
&:nth-child(2) { animation-delay: 1s; }
|
||||
&:nth-child(3) { animation-delay: 1.5s; }
|
||||
&:nth-child(4) { animation-delay: 2s; }
|
||||
&:nth-child(5) { animation-delay: 2.5s; }
|
||||
&:nth-child(6) { animation-delay: 3s; }
|
||||
&:nth-child(7) { animation-delay: 3.5s; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#cardsplayed {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -80,11 +111,11 @@ html, body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
height: 0%;
|
||||
}
|
||||
#nextPlayers p {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
height: 0;
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
#invisible {
|
||||
visibility: hidden;
|
||||
@@ -96,7 +127,7 @@ html, body {
|
||||
height: 100%;
|
||||
}
|
||||
#rules {
|
||||
color: white;
|
||||
color: @color;
|
||||
font-size: 1.5em;
|
||||
font-family: Arial;
|
||||
font-family: Arial, serif;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package components
|
||||
|
||||
import de.knockoutwhist.components.DefaultConfiguration
|
||||
import controllers.WebUI
|
||||
import de.knockoutwhist.components.DefaultConfiguration
|
||||
import de.knockoutwhist.ui.UI
|
||||
import de.knockoutwhist.utils.events.EventListener
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package controllers
|
||||
|
||||
import controllers.sessions.AdvancedSession
|
||||
import com.google.inject.{Guice, Injector}
|
||||
import controllers.sessions.AdvancedSession
|
||||
import de.knockoutwhist.KnockOutWhist
|
||||
import de.knockoutwhist.components.Configuration
|
||||
import de.knockoutwhist.control.GameState.{InGame, Lobby, SelectTrump, TieBreak}
|
||||
import de.knockoutwhist.control.controllerBaseImpl.BaseGameLogic
|
||||
import di.KnockOutWebConfigurationModule
|
||||
import play.api.{controllers, *}
|
||||
import play.api.mvc.*
|
||||
import play.api.*
|
||||
import play.twirl.api.Html
|
||||
|
||||
import java.util.UUID
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package util
|
||||
|
||||
import de.knockoutwhist.cards.Card
|
||||
import de.knockoutwhist.cards.CardValue.{Ace, Eight, Five, Four, Jack, King, Nine, Queen, Seven, Six, Ten, Three, Two}
|
||||
import de.knockoutwhist.cards.CardValue.*
|
||||
import de.knockoutwhist.cards.Suit.{Clubs, Diamonds, Hearts, Spades}
|
||||
import play.twirl.api.Html
|
||||
import scalafx.scene.image.Image
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
@main("Sessions") {
|
||||
<div id="sessions">
|
||||
<h1>Knockout Whist sessions</h1>
|
||||
<p>Please select your session to jump inside the game!</p>
|
||||
<p id="textanimation">Please select your session to jump inside the game!</p>
|
||||
@for(session <- sessions) {
|
||||
<a href="@routes.HomeController.ingame(session.id.toString)">@session.name</a><br>
|
||||
<a id="textanimation" href="@routes.HomeController.ingame(session.id.toString)">@session.name</a><br>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 610 KiB After Width: | Height: | Size: 2.8 MiB |
BIN
knockoutwhistweb/public/images/img.png
Normal file
BIN
knockoutwhistweb/public/images/img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 MiB |
@@ -1,9 +1,9 @@
|
||||
package controllers
|
||||
|
||||
import org.scalatestplus.play._
|
||||
import org.scalatestplus.play.guice._
|
||||
import play.api.test._
|
||||
import play.api.test.Helpers._
|
||||
import org.scalatestplus.play.*
|
||||
import org.scalatestplus.play.guice.*
|
||||
import play.api.test.*
|
||||
import play.api.test.Helpers.*
|
||||
|
||||
/**
|
||||
* Add your spec here.
|
||||
|
||||
@@ -4,3 +4,5 @@ addSbtPlugin("org.foundweekends.giter8" % "sbt-giter8-scaffold" % "0.18.0")
|
||||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.2.1")
|
||||
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.0")
|
||||
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.1")
|
||||
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.2")
|
||||
|
||||
Reference in New Issue
Block a user