From 5e48a58c02f4c4b271db22fdc18887728ed32d6e Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 15 May 2019 14:00:21 +1000 Subject: [PATCH 1/5] header -> top --- client/instance.css | 12 +----------- client/src/components/game.component.jsx | 2 +- client/src/components/instance.component.jsx | 4 ++-- client/styles.css | 6 ++++++ 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/client/instance.css b/client/instance.css index e3fe1ce4..a841c2e9 100644 --- a/client/instance.css +++ b/client/instance.css @@ -6,12 +6,6 @@ height: 100%; } -.instance-hdr { - display: flex; - flex-flow: column; - flex: 1; -} - .instance-info { flex: 0 1 50%; padding-left: 1em; @@ -46,11 +40,7 @@ flex-flow: row wrap; } -.ready-btn { - flex: 1 0 50%; -} - -.ready-btn:hover { +.ready:hover { transition-property: all; transition-duration: 0.5s; transition-timing-function: ease; diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx index aeea8df6..66146f6a 100644 --- a/client/src/components/game.component.jsx +++ b/client/src/components/game.component.jsx @@ -52,7 +52,7 @@ function GamePanel(props) { } const header = ( -
+
@@ -137,12 +137,17 @@ function GamePanel(props) {
{effects}
-
selectSkillTarget(cryp.id)} > - {crypAvatar(cryp.name)} - {combatTextEl} -
+
+
+
>
+
+
selectSkillTarget(cryp.id)} > + {crypAvatar(cryp.name)} + {combatTextEl} +
+
); } diff --git a/client/src/components/game.cryp.jsx b/client/src/components/game.cryp.jsx index 17d49e80..af4d5b5d 100644 --- a/client/src/components/game.cryp.jsx +++ b/client/src/components/game.cryp.jsx @@ -78,12 +78,17 @@ function GameCryp(props) {
{skills}
-
selectSkillTarget(cryp.id)} > - {crypAvatar(cryp.name)} - {combatTextEl} -
+
+
+
>
+
+
selectSkillTarget(cryp.id)} > + {crypAvatar(cryp.name)} + {combatTextEl} +
+
{effects}
diff --git a/client/src/components/menu.component.jsx b/client/src/components/menu.component.jsx index 5bde6a10..f144d3cd 100644 --- a/client/src/components/menu.component.jsx +++ b/client/src/components/menu.component.jsx @@ -147,7 +147,6 @@ function Menu(args) { return (
{instanceList()} - {crypList()}
); } diff --git a/client/src/socket.jsx b/client/src/socket.jsx index dd2e1c25..610dd8bd 100644 --- a/client/src/socket.jsx +++ b/client/src/socket.jsx @@ -312,7 +312,7 @@ function createSocket(events) { sendAccountCryps(); } - // sendPing(); + sendPing(); return true; }); diff --git a/client/styles.css b/client/styles.css index 3ab0c4e3..97431553 100644 --- a/client/styles.css +++ b/client/styles.css @@ -17,9 +17,9 @@ html, body, main { -ms-user-select: none; /* this is the sweet nectar to keep it full page*/ - height: 100%; - max-height: 100%; - min-height: 100%; + height: 100vh; + max-height: 100vh; + min-height: 100vh; /*padding: 0 20%;*/ /* stops inspector going skitz*/ From 6cba30d2a1d275cd6261066e9c6171169f647c77 Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 15 May 2019 17:22:18 +1000 Subject: [PATCH 3/5] lookin good --- client/game.css | 34 +++++++++++++++--------- client/src/components/game.component.jsx | 18 ++++++------- client/src/components/game.cryp.jsx | 18 ++++++------- client/src/components/menu.component.jsx | 4 +-- client/src/utils.jsx | 1 + client/styles.css | 2 +- 6 files changed, 42 insertions(+), 35 deletions(-) diff --git a/client/game.css b/client/game.css index d7eb03e4..edbcfdfa 100644 --- a/client/game.css +++ b/client/game.css @@ -46,10 +46,10 @@ .opponent .game-cryp { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: - "stats" - "effects" - "avatar" - "skills"; + ". stats" + ". effects" + "target avatar" + ". skills"; } .game-cryp { @@ -57,12 +57,14 @@ justify-items: center; - grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr); + /*grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr);*/ + /*grid-template-columns: min-content minmax(0, 1fr);*/ + grid-template-columns: min-content 1fr 1fr; + grid-template-rows: 1fr 2fr 1fr; grid-template-areas: - "skills" - "avatar" - "effects" - "stats"; + ". skills skills" + "target avatar avatar" + "effects stats stats"; transition-property: all; transition-duration: 0.5s; @@ -70,10 +72,17 @@ transition-timing-function: ease; } -.game-cryp .avatar { +.game-cryp .targeting { + grid-area: target; + display: flex; + flex-flow: column; + justify-content: center; + align-items: flex-end; + width: 100%; +} + +.game-cryp .img { grid-area: avatar; - /*max-height: 50%;*/ - height: auto; } .game-cryp .stats { @@ -86,6 +95,7 @@ grid-area: skills; display: flex; flex-flow: column-reverse; + /*flex-flow: column;*/ } /*@media (max-width: 1000px) { diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx index 8855c38a..4512a4e1 100644 --- a/client/src/components/game.component.jsx +++ b/client/src/components/game.component.jsx @@ -137,17 +137,15 @@ function GamePanel(props) {
{effects}
-
-
-
>
-
-
selectSkillTarget(cryp.id)} > - {crypAvatar(cryp.name)} - {combatTextEl} -
+
+
>
+
selectSkillTarget(cryp.id)} > + {crypAvatar(cryp.name)} + {combatTextEl} +
); } diff --git a/client/src/components/game.cryp.jsx b/client/src/components/game.cryp.jsx index af4d5b5d..397362d1 100644 --- a/client/src/components/game.cryp.jsx +++ b/client/src/components/game.cryp.jsx @@ -78,17 +78,15 @@ function GameCryp(props) {
{skills}
-
-
-
>
-
-
selectSkillTarget(cryp.id)} > - {crypAvatar(cryp.name)} - {combatTextEl} -
+
+
>
+
selectSkillTarget(cryp.id)} > + {crypAvatar(cryp.name)} + {combatTextEl} +
{effects}
diff --git a/client/src/components/menu.component.jsx b/client/src/components/menu.component.jsx index f144d3cd..cec5eb2f 100644 --- a/client/src/components/menu.component.jsx +++ b/client/src/components/menu.component.jsx @@ -67,7 +67,7 @@ function Menu(args) { // ); return ( -
+
@@ -84,7 +84,7 @@ function Menu(args) {
-
+
); } diff --git a/client/src/utils.jsx b/client/src/utils.jsx index 8cc4bb5b..1ecedf1b 100644 --- a/client/src/utils.jsx +++ b/client/src/utils.jsx @@ -57,6 +57,7 @@ function crypAvatar(name) { return ( event.target.setAttribute('src', '/molecules/726.svg')} /> ); diff --git a/client/styles.css b/client/styles.css index 97431553..8bb729a6 100644 --- a/client/styles.css +++ b/client/styles.css @@ -53,7 +53,7 @@ figure { main { padding: 0 2em; display: grid; - grid-template-columns: repeat(10, 10%)); + grid-template-columns: repeat(10, 1fr); grid-template-rows: min-content 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr; grid-template-areas: From cfb4f3f3b76379002dd81488fd7f7e962cfc2f25 Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 15 May 2019 17:24:53 +1000 Subject: [PATCH 4/5] yeeaahh --- client/game.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/game.css b/client/game.css index edbcfdfa..481cc37b 100644 --- a/client/game.css +++ b/client/game.css @@ -55,7 +55,8 @@ .game-cryp { display: grid; - justify-items: center; + /*justify-items: center;*/ + justify-items: start; /*grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr);*/ /*grid-template-columns: min-content minmax(0, 1fr);*/ @@ -95,6 +96,7 @@ grid-area: skills; display: flex; flex-flow: column-reverse; + align-items: baseline; /*flex-flow: column;*/ } From 64a1129100e488aa094b65686151e636c0c91ee2 Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 15 May 2019 17:35:10 +1000 Subject: [PATCH 5/5] yas --- client/game.css | 16 ++++++++-------- client/src/components/game.component.jsx | 2 +- client/src/components/game.cryp.jsx | 2 +- client/src/test.game.js | 8 ++++++-- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/client/game.css b/client/game.css index 481cc37b..d5fc922a 100644 --- a/client/game.css +++ b/client/game.css @@ -46,10 +46,10 @@ .opponent .game-cryp { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: - ". stats" - ". effects" - "target avatar" - ". skills"; + "stats ." + "effects ." + "avatar target" + "skills ."; } .game-cryp { @@ -60,12 +60,12 @@ /*grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) auto minmax(0, 1fr);*/ /*grid-template-columns: min-content minmax(0, 1fr);*/ - grid-template-columns: min-content 1fr 1fr; + grid-template-columns: 1fr min-content 1fr; grid-template-rows: 1fr 2fr 1fr; grid-template-areas: - ". skills skills" - "target avatar avatar" - "effects stats stats"; + "skills . ." + "avatar target ." + "stats effects ."; transition-property: all; transition-duration: 0.5s; diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx index 4512a4e1..935e5c1a 100644 --- a/client/src/components/game.component.jsx +++ b/client/src/components/game.component.jsx @@ -138,7 +138,7 @@ function GamePanel(props) { {effects}
-
>
+
{'<'}
-
>
+
{'<'}