Nav.js
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { Link } from "@nextui-org/react"
import router from "next/router"
import { Button } from "semantic-ui-react"
export default function Nav() {
const moverun = () => {
router.push("/run")
}
const movenew = () => {
router.push("/new")
}
const movelow = () => {
router.push("/difficulty/low")
}
const movemed = () => {
router.push("/difficulty/medium")
}
const movehigh = () => {
router.push("/difficulty/high")
}
return (
<nav className="navbar">
<div className="flex px-10 sm:px-20 text-2xl whitespace-nowrap
space-x-10 sm:space-x-20">
<Button onClick={moverun} className="cursor-pointer transition
duration-100 transform hover:scale-125 hover:text-white
active:text-blue-500">테스트</Button>
<Button onClick={movelow} className="cursor-pointer transition
duration-100 transform hover:scale-125 hover:text-white
active:text-blue-500">난이도 하</Button>
<Button onClick={movemed} className="cursor-pointer transition
duration-100 transform hover:scale-125 hover:text-white
active:text-blue-500">난이도 중</Button>
<Button onClick={movehigh} className="cursor-pointer transition
duration-100 transform hover:scale-125 hover:text-white
active:text-blue-500">난이도 상</Button>
<Button onClick={movenew} className="cursor-pointer transition
duration-100 transform hover:scale-125 hover:text-white
active:text-blue-500">문제 만들기</Button>
</div>
</nav>
)
}