Add harambee llogo and hack fix for 0 shots bug

master
Thomas 4 years ago
parent e1b8401955
commit 2870f7436f
  1. 5
      backend/data/timelines.js
  2. 2
      frontend/src/components/Centurion.tsx
  3. 2
      frontend/src/components/Lobby.tsx
  4. 4
      frontend/src/components/Player.tsx
  5. 10
      frontend/src/css/index.sass
  6. 3
      frontend/src/css/lobby.sass
  7. BIN
      frontend/src/img/harambee_logo.png

@ -9,11 +9,12 @@ module.exports = {
"timestamp": 0, "timestamp": 0,
"events": [ "events": [
{ {
"type": "talk", "type": "shot",
"text": [ "text": [
"Zet je schrap!", "Zet je schrap!",
"We gaan zo beginnen" "We gaan zo beginnen"
] ],
"shotCount": 0
} }
] ]
}, },

@ -8,6 +8,7 @@ import ShotsTaken from "./ShotsTaken";
import Lobby from "./Lobby"; import Lobby from "./Lobby";
import logo from "../img/via-logo.svg"; import logo from "../img/via-logo.svg";
import haramlogo from "../img/harambee_logo.png";
import Player from "./Player"; import Player from "./Player";
const Centurion = () => { const Centurion = () => {
@ -35,6 +36,7 @@ const Centurion = () => {
{showFeed ? feedContent : lobbyContent} {showFeed ? feedContent : lobbyContent}
</section> </section>
<footer> <footer>
<img src={haramlogo} className="haram-logo" alt="haramlogo"/>
<img src={logo} className="via-logo" alt="logo"/> <img src={logo} className="via-logo" alt="logo"/>
</footer> </footer>
</> </>

@ -148,7 +148,7 @@ const Lobby = (props: any) => {
{isConnected && {isConnected &&
<Row justify="center"> <Row justify="center">
<Col xs={24} sm={16} md={12} xl={10}> <Col xs={24} sm={16} md={12} xl={10} className="lobby-info">
<Card> <Card>
<h3>Huidige lobby: <b>{room?.id || 'Geen lobby'}</b></h3> <h3>Huidige lobby: <b>{room?.id || 'Geen lobby'}</b></h3>

@ -71,9 +71,6 @@ const Player = () => {
let targetTime = roomTime() / 1000; let targetTime = roomTime() / 1000;
let diff = player.current.currentTime - targetTime; let diff = player.current.currentTime - targetTime;
console.log('PLAYER DIFF', diff,
'min req to seek: ', diffSecondsRequiredToSeekRunningPlayer);
if (player.current && Math.abs(diff) > diffSecondsRequiredToSeekRunningPlayer) { if (player.current && Math.abs(diff) > diffSecondsRequiredToSeekRunningPlayer) {
if (room.speedFactor != 1 || manualAdjustment || timesSeeked < maxTimesSeekAllow) { if (room.speedFactor != 1 || manualAdjustment || timesSeeked < maxTimesSeekAllow) {
player.current.currentTime = targetTime; player.current.currentTime = targetTime;
@ -82,7 +79,6 @@ const Player = () => {
if (!manualAdjustment) { if (!manualAdjustment) {
setTimesSeeked(timesSeeked + 1); setTimesSeeked(timesSeeked + 1);
} }
console.log('PLAYER SEEKED', 'Player was seeked (total: ' + timesSeeked + ')');
} else { } else {
console.warn('The running player is off, but we\'ve changed the time ' + console.warn('The running player is off, but we\'ve changed the time ' +
'too often, skipping synchronizing the player.'); 'too often, skipping synchronizing the player.');

@ -34,6 +34,16 @@ body
padding: 10px padding: 10px
.haram-logo
z-index: -10000
position: fixed
left: 0
bottom: 0
width: auto
height: 10em
padding: 10px
.sider .sider
text-align: center text-align: center

@ -31,6 +31,9 @@
font-size: 1.5rem font-size: 1.5rem
text-align: center text-align: center
.lobby-info
text-align: center
.control .control
font-size: 1.3rem font-size: 1.3rem
margin: 2em 1em 2em 1em margin: 2em 1em 2em 1em

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

Loading…
Cancel
Save