File tree 5 files changed +33
-7
lines changed
5 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"typescript.preferences.quoteStyle" : " single" ,
3
3
"editor.formatOnSave" : true ,
4
- "files.eol" : " \n "
4
+ "files.eol" : " \n " ,
5
+ "nuxt.isNuxtApp" : false
5
6
}
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ export default function Ring() {
8
8
if ( isHovered ) {
9
9
return (
10
10
< div
11
- className = "my-10 border-4 rounded-full w-80 h-80 shadow-yellow-200 shadow-2xl bg-yellow-200 border-yellow-200 transition-all"
11
+ className = "mt-2 mb-5 border-4 rounded-full w-80 h-80 shadow-yellow-200 shadow-2xl bg-yellow-200 border-yellow-200 transition-all"
12
12
onMouseEnter = { onMouseEnter }
13
13
onMouseLeave = { onMouseLeave }
14
14
> </ div >
15
15
) ;
16
16
} else
17
17
return (
18
18
< div
19
- className = "my-10 border-4 border-yellow-300 rounded-full w-80 h-80 transition-all"
19
+ className = "mt-2 mb-5 border-4 border-yellow-300 rounded-full w-80 h-80 transition-all"
20
20
onMouseEnter = { onMouseEnter }
21
21
onMouseLeave = { onMouseLeave }
22
22
> </ div >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function createRoom(){
9
9
}
10
10
11
11
12
- function Room ( ) {
12
+ function RoomForm ( ) {
13
13
14
14
return (
15
15
< >
@@ -22,4 +22,4 @@ function Room() {
22
22
)
23
23
}
24
24
25
- export default Room
25
+ export default RoomForm
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ import { useRouter } from 'next/router' ;
4
+ import Link from 'next/link' ;
5
+
6
+ import Ring from '../components/Ring'
7
+
8
+ function Lobby ( ) {
9
+ const router = useRouter ( ) ;
10
+ const { keycode } = router . query ;
11
+
12
+ return (
13
+ < >
14
+ < div className = "flex flex-col w-full h-screen items-center justify-center bg-slate-800" >
15
+ < h1 className = "text-5xl text-yellow-300" > Light Touch</ h1 >
16
+ < div className = "text-2xl text-yellow-300" > { keycode } </ div >
17
+
18
+ < Ring />
19
+ < Link href = "/" > < a className = "button" > Leave</ a > </ Link >
20
+ </ div >
21
+ </ >
22
+ )
23
+ }
24
+
25
+ export default Lobby
Original file line number Diff line number Diff line change 1
1
import Ring from "../components/Ring" ;
2
- import Room from '../components/Room '
2
+ import RoomForm from '../components/RoomForm '
3
3
4
4
export default function Home ( ) {
5
5
return (
6
6
< div className = "flex flex-col w-full h-screen items-center justify-center bg-slate-800" >
7
7
< h1 className = "text-5xl text-yellow-300" > Light Touch</ h1 >
8
8
< Ring />
9
- < Room />
9
+ < RoomForm />
10
10
</ div >
11
11
) ;
12
12
}
You can’t perform that action at this time.
0 commit comments