-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.html
345 lines (332 loc) · 13.2 KB
/
main.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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html lang="en">
<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" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.5/flowbite.min.js"></script>
<script
async
defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB12bgQnvBrc0Hwuztjrqpxvv7vEHvcf0U"
></script>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<title>삐용</title>
<link rel="stylesheet" href="../css/config.css" />
<style>
.news-rolling-container {
position: relative;
overflow: hidden;
height: 30px; /* 뉴스 하나의 높이에 따라 조정이 필요 */
}
.news-list {
position: relative;
width: 100%;
height: auto;
}
.news-item {
height: 30px; /* 뉴스 하나의 높이에 따라 조정이 필요 */
line-height: 30px; /* 세로 중앙 정렬을 위한 설정 */
}
</style>
</head>
<body>
<div class="relative content bg-gray-50 border-white">
<div class="bg-white border-gray-200 shadow">
<nav class="bg-white border-gray-200">
<div
class="max-w-screen-xl flex flex-nowrap items-center justify-between mx-auto p-4 h-15"
>
<!-- 로고 이미지 삽입 -->
<div class="flex items-center justify-center">
<a
href="https://page.ppiyong.shop/main.html"
class="flex items-center"
>
<img src="../img/logo.png" class="w-24 h-9 mr-10" />
</a>
</div>
<div class="main-nav-items">
<div
id="login-nav"
class="flex items-center justify-end text-end"
>
<a href="https://page.ppiyong.shop/alarm/alarm.html"
><img src="../img/icon/알림.png" class="w-6 h-6 mt-3 mr-3"
/></a>
<div class="username-text font-medium text-lg mt-1 mr-6">
강윤진님
</div>
<div class="text-center">
<button
type="button"
data-drawer-target="drawer-navigation"
data-drawer-show="drawer-navigation"
aria-controls="drawer-navigation"
>
<img
src="../img/icon/햄버거바.png"
alt="menu"
class="w-6 h-5 mt-3"
/>
</button>
</div>
</div>
<div id="non-login-nav" class="flex justify-end">
<div class="w-20 h-8 text-center p-1 ml-14">
<a href="https://page.ppiyong.shop/account/login.html">
<button>로그인</button>
</a>
</div>
<div class="bg-yellow-300 w-20 h-8 rounded text-center p-1">
<a href="https://page.ppiyong.shop/account/signup.html">
<button>회원가입</button>
</a>
</div>
</div>
</div>
</div>
</nav>
<nav>
<div
id="searchNav-item"
class="max-w-screen-xl flex flex-wrap items-center justify-around mx-auto p-3 pb-0"
>
<button id="home-href" class="font-bold">
<a href="https://page.ppiyong.shop/main.html">홈</a>
<div
class="under-nav bg-mySky p-1 h-3 border-b-4 border-yellow-300 border-7"
></div>
</button>
<button id="shelter-href">
<a href="https://page.ppiyong.shop/map.html">주변 대피소</a>
<div class="bg-mySky p-1 h-3"></div>
</button>
<button id="checklist-href">
<a href="https://page.ppiyong.shop/checklist.html">체크리스트</a>
<div class="bg-mySky p-1 h-3"></div>
</button>
</div>
<div class="searchMain_nav_underline"></div>
</nav>
</div>
<!-- drawer component -->
<div
id="drawer-navigation"
class="fixed top-0 left-0 z-40 w-64 h-screen p-4 overflow-y-auto transition-transform -translate-x-full bg-white dark:bg-gray-800"
tabindex="-1"
aria-labelledby="drawer-navigation-label"
>
<button
type="button"
data-drawer-hide="drawer-navigation"
aria-controls="drawer-navigation"
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 absolute top-2.5 right-2.5 inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"
>
<svg
aria-hidden="true"
class="w-5 h-5"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
clip-rule="evenodd"
></path>
</svg>
<span class="sr-only">Close menu</span>
</button>
<div class="py-4 overflow-y-auto">
<ul class="space-y-2">
<li>
<a
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white"
>
<svg
class="w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 22 21"
></svg>
<span class="username-text mt-10 font-bold text-2xl"
>강윤진</span
>
<span class="mt-10 font-medium text-2xl">님</span>
</a>
</li>
<li>
<a
href="https://page.ppiyong.shop/myChecklist.html"
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 18 18"
></svg>
<span class="flex-1 ml-3 whitespace-nowrap">MY 체크리스트</span>
</a>
</li>
<li>
<a
href="https://page.ppiyong.shop/alarm/select_other.html"
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 20 20"
></svg>
<span class="flex-1 ml-3 whitespace-nowrap"
>다른 지역 확인하기</span
>
</a>
</li>
<li>
<a
href="https://page.ppiyong.shop/account/editMember.html"
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 20 18"
></svg>
<span class="flex-1 ml-3 whitespace-nowrap"
>회원정보 수정하기</span
>
</a>
</li>
<li class="logout_btn">
<a
class="flex items-center p-2 text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700 group"
>
<svg
class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 dark:text-gray-400 group-hover:text-gray-900 dark:group-hover:text-white"
aria-hidden="true"
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 18 20"
></svg>
<div class="flex-1 ml-3 whitespace-nowrap">로그아웃</div>
</a>
</li>
</ul>
</div>
</div>
<!--메인 글씨-->
<div class="flex items-center justify-between items-start mb-3 w-80">
<div class="flex flex-col justify-center items-start mt-3 mr-2 ml-6">
<div
class="flex items-center justify-center text-black font-extrabold text-3xl"
>
<span id="current_city">현재 지역</span>
<br />
</div>
<div
class="flex items-start justify-center text-black font-medium text-2xl mt-1"
>
재난 소식입니다.
</div>
</div>
<!--확성기 이미지 -->
<img src="../img/icon/확성기.png" alt="삐용" class="w-16 h-14 mt-5" />
</div>
<div class="flex items-start justify-start">
<!--현재 날짜, 시각-->
<div id="current_time" class="text-black font-medium text-sm ml-6">
현재시간을 불러오고 있습니다.
</div>
<button id="refresh">
<img
src="../img/icon/새로고침.png"
alt="삐용"
class="w-4 w-4 ml-2 mt-0.5"
/>
</button>
</div>
<!--뉴스상자-->
<div id="notice-block" class="flex items-center justify-center">
<div
class="bg-white border-gray-200 shadow-md h-12 w-80 mt-5 p-2 text-sm text-center rounded-md"
>
<div class="news-rolling-container">
<ul class="news-list"></ul>
</div>
</div>
</div>
<div class="flex flex-col items-center justify-center">
<div id="Button" class="flex items-center justify-center mt-3 w-80">
<!--날씨 버튼-->
<div
id="weatherButton"
class="bg-white border-gray-200 shadow-md rounded-md block justify-center w-20 h-20 items-center mr-1"
>
<div class="flex justify-center items-center">
<img
class="flex justify-center items-center w-10 h-11 mb-3"
src="../img/icon/날씨.png"
/>
</div>
<p class="text-sm text-center">날씨</p>
</div>
<!-- 지진/해일 버튼 -->
<div
id="earthquakeButton"
class="bg-white border-gray-200 shadow-md rounded-md block justify-center items-center w-20 h-20 mr-1"
>
<div class="flex justify-center items-center">
<img
class="flex justify-center items-center w-10 h-11 mb-3"
src="../img/icon/earthquake_icon.png"
/>
</div>
<p class="text-sm text-center">지진/해일</p>
</div>
<!--민방위 버튼-->
<div
id="civilButton"
class="bg-white border-gray-200 shadow-md rounded-md block justify-center items-center w-20 h-20 mr-1"
>
<div class="flex justify-center items-center">
<img
class="flex justify-center items-center w-10 h-11 mb-3"
src="../img/icon/민방위.png"
/>
</div>
<p class="text-sm text-center">민방위</p>
</div>
<!-- 실종자 버튼 -->
<div
id="lostButton"
class="bg-white border-gray-200 shadow-md rounded-md block justify-center items-center w-20 h-20"
>
<div class="flex justify-center items-center">
<img
class="flex justify-center items-center w-10 h-11 mb-3"
src="../img/icon/실종자.png"
/>
</div>
<p class="text-sm text-center">실종자</p>
</div>
</div>
<!--메인 박스-->
<div id="main" class="text-start"></div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="./js/isLoggedin.js"></script>
<script src="../js/logoutTest.js"></script>
<script src="../js/main.js"></script>
</body>
</html>