citylist.tsx 1.96 KB
Newer Older
Kim, MinGyu's avatar
Kim, MinGyu committed
1
import React, { MouseEventHandler } from "react";
백승민's avatar
theme1    
백승민 committed
2

백승민's avatar
백승민 committed
3
4
type CityProps = {
  handleClick: MouseEventHandler;
Kim, MinGyu's avatar
Kim, MinGyu committed
5
};
백승민's avatar
백승민 committed
6

Kim, MinGyu's avatar
Kim, MinGyu committed
7
export default function Citylist({ handleClick }: CityProps) {
백승민's avatar
백승민 committed
8
  return (
백승민's avatar
백승민 committed
9
10
    <div className="overflow-auto w-full flex flex-row md:flex-col md:mr-24 bg-sky-100">
      <div className="text-center px-5 py-2 bg-sky-300 shrink-0">도시</div>
Kim, MinGyu's avatar
Kim, MinGyu committed
11
      <button
백승민's avatar
백승민 committed
12
        id={"서울"}
Kim, MinGyu's avatar
Kim, MinGyu committed
13
14
15
16
17
18
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        서울
      </button>
      <button
백승민's avatar
백승민 committed
19
        id={"부산"}
Kim, MinGyu's avatar
Kim, MinGyu committed
20
21
22
23
24
25
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        부산
      </button>
      <button
백승민's avatar
백승민 committed
26
        id={"인천"}
Kim, MinGyu's avatar
Kim, MinGyu committed
27
28
29
30
31
32
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        인천
      </button>
      <button
백승민's avatar
백승민 committed
33
        id={"대구"}
Kim, MinGyu's avatar
Kim, MinGyu committed
34
35
36
37
38
39
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        대구
      </button>
      <button
백승민's avatar
백승민 committed
40
        id={"광주"}
Kim, MinGyu's avatar
Kim, MinGyu committed
41
42
43
44
45
46
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        광주
      </button>
      <button
백승민's avatar
백승민 committed
47
        id={"대전"}
Kim, MinGyu's avatar
Kim, MinGyu committed
48
49
50
51
52
53
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        대전
      </button>
      <button
백승민's avatar
백승민 committed
54
        id={"울산"}
Kim, MinGyu's avatar
Kim, MinGyu committed
55
56
57
58
59
60
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        울산
      </button>
      <button
백승민's avatar
백승민 committed
61
        id={"세종"}
Kim, MinGyu's avatar
Kim, MinGyu committed
62
63
64
65
66
67
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        세종
      </button>
      <button
백승민's avatar
백승민 committed
68
        id={"독도"}
Kim, MinGyu's avatar
Kim, MinGyu committed
69
70
71
72
73
74
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        독도
      </button>
      <button
백승민's avatar
백승민 committed
75
        id={"제주"}
Kim, MinGyu's avatar
Kim, MinGyu committed
76
77
78
79
80
        onClick={handleClick}
        className="px-5 py-2 hover:underline shrink-0"
      >
        제주
      </button>
백승민's avatar
백승민 committed
81
      {/* citylist */}
Kim, MinGyu's avatar
Kim, MinGyu committed
82
83
    </div>
    // Citylist Page
백승민's avatar
백승민 committed
84
  );
Kim, MinGyu's avatar
Kim, MinGyu committed
85
}