-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.html
235 lines (227 loc) · 10.6 KB
/
header.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>백종원 골목식당</title>
<link rel="stylesheet" href="style.css">
<style>
* {
margin: 0;
}
.search img {
position: absolute;
width: 17px;
top: 10px;
right: 90px;
}
input {
width: 100%;
border-radius: 15px;
padding: 10px 12px;
padding-left: 55px;
font-size: 14px;
font-weight: 600;
color: gray;
border: 1px solid #F6F6F6;
background-color: #F6F6F6;
}
.background {
width: 100%;
}
.header {
position: fixed;
width: 100%;
height: 80px;
padding-top: 20px;
background-color: #EDEDED;
z-index: 1;
}
.home {
padding-left:10%;
font-size: 25px;
font-weight: bold;
font-family: sans-serif;
}
.in-header {
width: 100%;
display: flex;
}
.search {
position: relative;
width: 500px !important;
margin-left: auto;
padding-right: 80px;
}
.search-title {
position: absolute;
width: 50px;
font-size: 14px;
font-weight: 800;
top: 9px;
left: 6px;
}
.login {
padding-right: 5%;
padding-top: 8px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
.regi {
padding-right: 10%;
padding-top: 8px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
}
.slides img {
margin: 0;
width: 100%;
}
.bt {
cursor: pointer;
}
.scroll {
padding-top: 100px;
margin-bottom: 200px;
}
.scroll1 {
font-weight: bold;
}
.zoom {
font-weight: 900;
font-size: 30px;
color: #B70000;
}
</style>
</head>
<body>
<div class="background">
<div class="header">
<div class="in-header">
<div class="home"><a href=header.html>백's 골목지도</a></div>
<div class="search">
<input type="text" placeholder="가게 이름을 검색해보세요">
<img class="bt" src="https://s3.ap-northeast-2.amazonaws.com/cdn.wecode.co.kr/icon/search.png">
<div class="search-title">검색</div>
</div>
<div class="login">로그인</div>
<div class="regi">회원가입</div>
</div>
</div>
</div>
<div id="container" style="padding-top: 80px; ">
<div class="slide_wrap">
<div class="slide_box">
<div class="slide_list clearfix">
<div class="slide_content slide01">
<p>1</p>
</div>
<div class="slide_content slide02">
<p>2</p>
</div>
<div class="slide_content slide03">
<p>3</p>
</div>
<div class="slide_content slide04">
<p>4</p>
</div>
<div class="slide_content slide05">
<p>5</p>
</div>
</div>
<!-- // .slide_list -->
</div>
<!-- // .slide_box -->
<div class="slide_btn_box">
<button type="button" class="slide_btn_prev">Prev</button>
<button type="button" class="slide_btn_next">Next</button>
</div>
<!-- // .slide_btn_box -->
<ul class="slide_pagination"></ul>
<!-- // .slide_pagination -->
</div>
<!-- // .slide_wrap -->
</div>
<!-- // .container -->
<script src="./slideShow.js"></script>
</div>
<div class="scroll">
<div class="scroll1">내 근처 골목 식당이 궁금하다면?</div>
<div class="scroll2">스크롤 해보세요!</div>
<div class="zoom">↓</div>
</div>
<div class="all-map" style="display: flex; width: 100%; height: 600px;">
<div id="map" style="width:800px;height:500px; margin-left: 20%;"></div>
<div id="result" style="padding: 3%;">
<div class="kewrod">
<div id="kewrod-result" style="font-size: 13px; color: gray; font-weight: bold; text-align: left">키워드로 찾기</div>
<div class="eating" style="display: flex; padding-top: 5%; text-align: left; border-color: #B70000;">
<button id="hot" style="width: 50px; margin-right: 4%; border-radius: 10px; background-color: white; color: #B70000; border-color: gray;">매콤</button>
<button id="daldal" style="width: 50px; margin-right: 4%; border-radius: 10px; background-color: white; color: #B70000; border-color: gray;">달달</button>
<button id="nuki" style="width: 50px; margin-right: 4%; border-radius: 10px; background-color: white; color: #B70000; border-color: gray;">느끼</button>
<button id="solo" style="width: 50px; border-radius: 10px; color: #B70000; background-color: white; border-color: gray;">혼밥</button>
</div>
</div>
<div class="location">
<div id="location-result" style="padding-top: 15%; font-size: 13px; color: gray; font-weight: bold; text-align: left">위치로 찾기</div>
<div class="loc" style="width: 220px; display: flex; padding-top: 5%; text-align: left; border-color: #B70000;">
<button id="seoul" style="width: 50px; margin-right: 10px; border-radius: 10px; background-color: white; color: #2524FF; border-color: gray;">서울</button>
<button id="keung" style="width: 65px; margin-right: 10px; border-radius: 10px; background-color: white; color: #2524FF; border-color: gray;">경기도</button>
<button id="incheon" style="width: 50px; margin-right: 10px; border-radius: 10px; background-color: white; color: #2524FF; border-color: gray;">인천</button>
<button id="busan" style="width: 50px; border-radius: 10px; color: #2524FF; background-color: white; border-color: gray;">부산</button>
</div>
<div class="loc1" style="width: 220px; display: flex; padding-top: 5%; text-align: left; border-color: #B70000;">
<button id="ulsan" style="width: 45px; margin-right: 10px; border-radius: 10px; background-color: white; color: #2524FF; border-color: gray;">울산</button>
<button id="kang" style="width: 65px; margin-right: 10px; border-radius: 10px; background-color: white; color: #2524FF; border-color: gray;">강원도</button>
<button id="chung" style="width: 70px; border-radius: 10px; background-color: white; color: #2524FF; border-color: gray;">충청남도</button>
</div>
</div>
<div id="search-result" style="padding-top: 15%; font-size: 13px; color: black; font-weight: bold; text-align: left">검색 결과</div>
</div>
</div>
<script type="text/javascript" src="//dapi.kakao.com/v2/maps/sdk.js?appkey=1fe2ed3ce0747d01feea92fd257053ad"></script>
<script>
var container = document.getElementById('map');
var options = {
center: new kakao.maps.LatLng(37.5874286291778, 127.03602150310793),
level: 3
};
var map = new kakao.maps.Map(container, options);
var positions = [
{
title: '미식본좌',
latlng: new kakao.maps.LatLng(37.5874286291778, 127.03602150310793)
},
{
title: '생태연못',
latlng: new kakao.maps.LatLng(33.450936, 126.569477)
},
{
title: '텃밭',
latlng: new kakao.maps.LatLng(33.450879, 126.569940)
},
{
title: '근린공원',
latlng: new kakao.maps.LatLng(33.451393, 126.570738)
}
];
var imageSrc = "https://t1.daumcdn.net/localimg/localimages/07/mapapidoc/markerStar.png";
for (var i = 0; i < positions.length; i ++) {
// 마커 이미지의 이미지 크기 입니다
var imageSize = new kakao.maps.Size(24, 35);
// 마커 이미지를 생성합니다
var markerImage = new kakao.maps.MarkerImage(imageSrc, imageSize);
// 마커를 생성합니다
var marker = new kakao.maps.Marker({
map: map, // 마커를 표시할 지도
position: positions[i].latlng, // 마커를 표시할 위치
title : positions[i].title, // 마커의 타이틀, 마커에 마우스를 올리면 타이틀이 표시됩니다
image : markerImage // 마커 이미지
});
}
</script>
</body>
</html>