forked from Github/uno-online
Improvements
This commit is contained in:
parent
35285680d0
commit
5340695785
@ -3,7 +3,19 @@
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.Homepage {
|
||||
background-image: url('./assets/Landing-Page.gif');
|
||||
background-size: cover;
|
||||
margin: 0;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.homepage-menu {
|
||||
position: relative;
|
||||
top: 100px;
|
||||
}
|
||||
|
||||
.Game {
|
||||
|
BIN
client/src/assets/Landing-Page.gif
Normal file
BIN
client/src/assets/Landing-Page.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 916 KiB |
@ -13,6 +13,7 @@ import { Redirect } from 'react-router-dom'
|
||||
|
||||
let socket
|
||||
const ENDPOINT = 'http://localhost:5000'
|
||||
// const ENDPOINT = 'http://192.168.0.103:5000/'
|
||||
|
||||
const Game = (props) => {
|
||||
const data = queryString.parse(props.location.search)
|
||||
@ -801,10 +802,10 @@ const Game = (props) => {
|
||||
|
||||
</> }
|
||||
|
||||
</> : <h1 style={{margin: '0'}}>Room full</h1> }
|
||||
</> : <h1>Room full</h1> }
|
||||
|
||||
<br />
|
||||
<a href='/'>Forfeit Game</a>
|
||||
<a href='/'>Quit</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
@ -7,12 +7,14 @@ const Homepage = () => {
|
||||
|
||||
return (
|
||||
<div className='Homepage'>
|
||||
<div className='homepage-menu'>
|
||||
<h1>UNO</h1>
|
||||
<div><input type='text' placeholder='Game Code' onChange={(event) => setRoomCode(event.target.value)} /></div>
|
||||
<Link to={`/play?roomCode=${roomCode}`}><button>JOIN GAME</button></Link>
|
||||
<h1>OR</h1>
|
||||
<Link to={`/play?roomCode=${randomCodeGenerator(5)}`}><button>CREATE GAME</button></Link>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,10 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;1,200;1,300;1,400;1,500;1,600&display=swap');
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
|
Loading…
Reference in New Issue
Block a user