diff --git a/client/assets/styles/menu.less b/client/assets/styles/menu.less index 93f6a63f..566120b0 100644 --- a/client/assets/styles/menu.less +++ b/client/assets/styles/menu.less @@ -129,18 +129,29 @@ section { .demo { margin-top: 1em; - display: grid; - grid-template-areas: - "vinfo game" - "vcons game"; - - grid-template-columns: 1fr 1fr; - grid-template-rows: min-content 1fr; + display: block; button { cursor: default; } + section { + div:first-child { + padding-right: 1em; + } + } + + .construct-section { + .construct-list { + height: 25em; + grid-area: unset; + + .instance-construct { + border: 0; + } + } + } + .colour-info { grid-area: vinfo; display: flex; @@ -156,17 +167,9 @@ section { } } - .vbox-demo { - grid-area: vinfo; - } - .game-demo { - grid-area: game; - - display: grid; - grid-template-columns: 1fr 2fr; - .game { + height: 25em; display: flex; flex-flow: column; @@ -175,15 +178,6 @@ section { } } } - - .construct-list { - grid-area: vcons; - height: 100%; - - svg { - height: 100%; - } - } } @media (max-width: 800px) { @@ -195,24 +189,6 @@ section { } } - .demo { - grid-template-columns: 1fr; - grid-template-areas: - "vinfo" - "vcons" - "game" - "game"; - - - .construct-list .instance-construct:not(:first-child) { - display: none; - } - - .game-demo { - grid-template-columns: 1fr; - } - } - .menu .team { grid-template-columns: 1fr; diff --git a/client/assets/styles/styles.less b/client/assets/styles/styles.less index 409e52fd..f89cecb0 100644 --- a/client/assets/styles/styles.less +++ b/client/assets/styles/styles.less @@ -14,7 +14,7 @@ html body { -ms-user-select: none; overflow-x: hidden; - overflow-y: hidden; + // overflow-y: hidden; } #mnml { @@ -26,7 +26,7 @@ html body { /* stops inspector going skitz*/ overflow-x: hidden; - overflow-y: hidden; + // overflow-y: hidden; } // @media (min-width: 1921px) { diff --git a/client/src/components/demo.jsx b/client/src/components/demo.jsx index cff51564..57c814ee 100644 --- a/client/src/components/demo.jsx +++ b/client/src/components/demo.jsx @@ -84,7 +84,7 @@ function Demo(args) { function inventoryElement() { return ( -
+

VBOX PHASE {shapes.Red()} {shapes.Green()} {shapes.Blue()} @@ -116,39 +116,48 @@ function Demo(args) { ? 'equipping empty gray' : 'empty gray'; - return ( -
- {players[0].constructs.map((c, i) => ( -
-

{c.name}

- -
- {i === 0 && equipped - ? - : - } - - -
-
-
-
-
-
- ))} + const constructEl = c => ( +
+

{c.name}

+ +
+ {equipped + ? + : + } + + +
+
+
+
+
); + + return ( +
+
+

CONSTRUCTS

+

Constructs are the units you control. They are reset every game and their initial appearance is randomly generated.

+

Skills and Specs you create in the VBOX Phase are equipped to your constructs to create a build.

+
+
+ {constructEl(players[0].constructs[0])} +
+
+ ); }; const gameDemo = () => { return ( -
+

COMBAT PHASE

Battle your opponent using dynamic team builds from the VBOX phase.

-

Crafted skills can be used to damage the opponent or support your team.

-

Turn based combat, each team picks targets for their skills during this phase.

-

The damage dealt by skills, cast order and construct life depend on your decisions in the VBOX phase.

+

The skills crafted can be used to damage the opponent or support your team.

+

Simultaneous turn based combat: each team picks targets for their skills during this phase.

+

The damage dealt by skills, cast order and construct life depend on your decisions in the VBOX phase.

@@ -165,7 +174,7 @@ function Demo(args) {
-
+ ); };