-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainDetail.html
283 lines (277 loc) · 13.7 KB
/
mainDetail.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
<!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>
<title>삐용</title>
<link rel="stylesheet" href="../css/config.css" />
</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 id="main" class="text-start flex justify-center"></div>
<!--댓글-->
<div class="ml-2 flex items-center justify-start text-start">
<div class="font-medium text-lg mt-3 ml-4 mr-1">댓글</div>
<div id="comment_number" class="font-bold text-lg mt-3 mr-5">0</div>
</div>
<!--댓글 입력폼-->
<div class="flex items-center justify-center">
<div class="input-box w-80 mt-2 relative">
<div
class="max-w-sm bg-white border border-gray-200 rounded-lg shadow-sm divide-y divider-gray-200"
>
<div class="">
<div class="p-3 w-full">
<textarea
id="message"
rows="4"
class="block w-full font-normal text-gray-900 rounded-lg focus:ring-blue-50 focus:border-blue-50"
placeholder="재난관련 이야기를 주변인과 나눠보세요! 허위사실은 처벌될 수 있습니다."
></textarea>
</div>
<div id="imageContainer"></div>
</div>
<input
type="file"
id="imageBt"
name="image"
accept="image/*"
style="display: none"
/>
<div class="flex justify-end mt-3">
<div
id="imageDiv"
class="flex items-center p-2 text-gray-900 rounded-lg hover:bg-gray-100"
>
<svg
class="flex-shrink-0 w-6 h-6 text-gray-500 transition duration-75"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8.5 10C9.32843 10 10 9.32843 10 8.5C10 7.67157 9.32843 7 8.5 7C7.67157 7 7 7.67157 7 8.5C7 9.32843 7.67157 10 8.5 10Z"
fill="#0F1729"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11.0055 2H12.9945C14.3805 1.99999 15.4828 1.99999 16.3716 2.0738C17.2819 2.14939 18.0575 2.30755 18.7658 2.67552C19.8617 3.24477 20.7552 4.1383 21.3245 5.23415C21.6925 5.94253 21.8506 6.71811 21.9262 7.62839C22 8.5172 22 9.61946 22 11.0054V12.9945C22 13.6854 22 14.306 21.9909 14.8646C22.0049 14.9677 22.0028 15.0726 21.9846 15.175C21.9741 15.6124 21.9563 16.0097 21.9262 16.3716C21.8506 17.2819 21.6925 18.0575 21.3245 18.7658C20.7552 19.8617 19.8617 20.7552 18.7658 21.3245C18.0575 21.6925 17.2819 21.8506 16.3716 21.9262C15.4828 22 14.3805 22 12.9946 22H11.0055C9.61955 22 8.5172 22 7.62839 21.9262C6.71811 21.8506 5.94253 21.6925 5.23415 21.3245C4.43876 20.9113 3.74996 20.3273 3.21437 19.6191C3.20423 19.6062 3.19444 19.5932 3.185 19.5799C2.99455 19.3238 2.82401 19.0517 2.67552 18.7658C2.30755 18.0575 2.14939 17.2819 2.0738 16.3716C1.99999 15.4828 1.99999 14.3805 2 12.9945V11.0055C1.99999 9.61949 1.99999 8.51721 2.0738 7.62839C2.14939 6.71811 2.30755 5.94253 2.67552 5.23415C3.24477 4.1383 4.1383 3.24477 5.23415 2.67552C5.94253 2.30755 6.71811 2.14939 7.62839 2.0738C8.51721 1.99999 9.61949 1.99999 11.0055 2ZM20 11.05V12.5118L18.613 11.065C17.8228 10.2407 16.504 10.2442 15.7182 11.0727L11.0512 15.9929L9.51537 14.1359C8.69326 13.1419 7.15907 13.1746 6.38008 14.2028L4.19042 17.0928C4.13682 16.8463 4.09606 16.5568 4.06694 16.2061C4.0008 15.4097 4 14.3905 4 12.95V11.05C4 9.60949 4.0008 8.59025 4.06694 7.79391C4.13208 7.00955 4.25538 6.53142 4.45035 6.1561C4.82985 5.42553 5.42553 4.82985 6.1561 4.45035C6.53142 4.25538 7.00955 4.13208 7.79391 4.06694C8.59025 4.0008 9.60949 4 11.05 4H12.95C14.3905 4 15.4097 4.0008 16.2061 4.06694C16.9905 4.13208 17.4686 4.25538 17.8439 4.45035C18.5745 4.82985 19.1702 5.42553 19.5497 6.1561C19.7446 6.53142 19.8679 7.00955 19.9331 7.79391C19.9992 8.59025 20 9.60949 20 11.05ZM6.1561 19.5497C5.84198 19.3865 5.55279 19.1833 5.295 18.9467L7.97419 15.4106L9.51005 17.2676C10.2749 18.1924 11.6764 18.24 12.5023 17.3693L17.1693 12.449L19.9782 15.3792C19.9683 15.6812 19.9539 15.9547 19.9331 16.2061C19.8679 16.9905 19.7446 17.4686 19.5497 17.8439C19.1702 18.5745 18.5745 19.1702 17.8439 19.5497C17.4686 19.7446 16.9905 19.8679 16.2061 19.9331C15.4097 19.9992 14.3905 20 12.95 20H11.05C9.60949 20 8.59025 19.9992 7.79391 19.9331C7.00955 19.8679 6.53142 19.7446 6.1561 19.5497Z"
fill="#0F1729"
/>
</svg>
</div>
<button
id="create-comment-button"
class="items-center m-3 px-3 py-2 text-sm font-medium text-center text-white bg-gray-600 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 shadow-sm"
>
입력
</button>
</div>
</div>
</div>
</div>
<!--댓글 박스-->
<div id="comment" class="flex flex-col items-center justify-center"></div>
</div>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="../js/mainDetail.js"></script>
<script src="./js/isLoggedin.js"></script>
<script src="../js/logoutTest.js"></script>
</body>
</html>