mirror of
https://github.com/mizanxali/uno-online
synced 2024-11-05 10:45:25 +00:00
Improvements
This commit is contained in:
parent
35285680d0
commit
5340695785
@ -3,7 +3,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
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 {
|
.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
|
let socket
|
||||||
const ENDPOINT = 'http://localhost:5000'
|
const ENDPOINT = 'http://localhost:5000'
|
||||||
|
// const ENDPOINT = 'http://192.168.0.103:5000/'
|
||||||
|
|
||||||
const Game = (props) => {
|
const Game = (props) => {
|
||||||
const data = queryString.parse(props.location.search)
|
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 />
|
<br />
|
||||||
<a href='/'>Forfeit Game</a>
|
<a href='/'>Quit</a>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -7,12 +7,14 @@ const Homepage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='Homepage'>
|
<div className='Homepage'>
|
||||||
|
<div className='homepage-menu'>
|
||||||
<h1>UNO</h1>
|
<h1>UNO</h1>
|
||||||
<div><input type='text' placeholder='Game Code' onChange={(event) => setRoomCode(event.target.value)} /></div>
|
<div><input type='text' placeholder='Game Code' onChange={(event) => setRoomCode(event.target.value)} /></div>
|
||||||
<Link to={`/play?roomCode=${roomCode}`}><button>JOIN GAME</button></Link>
|
<Link to={`/play?roomCode=${roomCode}`}><button>JOIN GAME</button></Link>
|
||||||
<h1>OR</h1>
|
<h1>OR</h1>
|
||||||
<Link to={`/play?roomCode=${randomCodeGenerator(5)}`}><button>CREATE GAME</button></Link>
|
<Link to={`/play?roomCode=${randomCodeGenerator(5)}`}><button>CREATE GAME</button></Link>
|
||||||
</div>
|
</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');
|
@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 {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: 'Montserrat', sans-serif;
|
font-family: 'Montserrat', sans-serif;
|
||||||
|
Loading…
Reference in New Issue
Block a user