-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobile-main.html
More file actions
386 lines (369 loc) · 22.4 KB
/
Copy pathmobile-main.html
File metadata and controls
386 lines (369 loc) · 22.4 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
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
<!-- LMN 모바일 메인 지도 개편 (v0.2.1) -->
<!DOCTYPE html>
<html class="light" lang="ko"><head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta name="theme-color" content="#006e1c"/>
<link rel="manifest" href="manifest.webmanifest"/>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin=""/>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=IBM+Plex+Sans+KR:wght@400;500;600;700&display=swap" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Noto+Sans:wght@400;600;700&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=block" rel="stylesheet"/>
<link crossorigin="" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" rel="stylesheet"/>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<script id="tailwind-config">
try {
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"tertiary-fixed-dim": "#ffb870",
"primary": "#006e1c",
"surface-container-high": "#eae8e7",
"on-primary-fixed": "#002204",
"surface-container": "#f0eded",
"on-tertiary-fixed-variant": "#693c00",
"surface-dim": "#dcd9d9",
"on-surface-variant": "#3f4a3c",
"surface-container-lowest": "#ffffff",
"secondary-container": "#33a0fd",
"secondary-fixed": "#d1e4ff",
"on-primary": "#ffffff",
"tertiary-container": "#e18500",
"on-primary-container": "#003c0b",
"surface-container-highest": "#e4e2e1",
"error": "#ba1a1a",
"error-container": "#ffdad6",
"background": "#fbf9f8",
"surface-variant": "#e4e2e1",
"on-secondary-fixed-variant": "#00497d",
"outline": "#6f7a6b",
"secondary": "#0061a4",
"surface-container-low": "#f6f3f2",
"on-error": "#ffffff",
"on-surface": "#1b1c1c",
"secondary-fixed-dim": "#9ecaff",
"inverse-primary": "#78dc77",
"on-primary-fixed-variant": "#005313",
"on-background": "#1b1c1c",
"on-tertiary-fixed": "#2c1600",
"tertiary-fixed": "#ffdcbe",
"inverse-surface": "#303030",
"primary-container": "#4caf50",
"outline-variant": "#becab9",
"on-tertiary": "#ffffff",
"on-secondary-container": "#00355c",
"on-secondary": "#ffffff",
"surface": "#fbf9f8",
"primary-fixed-dim": "#78dc77",
"primary-fixed": "#94f990",
"tertiary": "#8b5000",
"surface-bright": "#fbf9f8",
"on-tertiary-container": "#4d2b00",
"inverse-on-surface": "#f3f0f0",
"surface-tint": "#006e1c",
"on-secondary-fixed": "#001d36",
"on-error-container": "#93000a",
"custom-hospital": "#F44336",
"custom-pharmacy": "#9C27B0",
"custom-store": "#FF5722"
},
"borderRadius": {
"DEFAULT": "0.125rem",
"lg": "0.25rem",
"xl": "0.5rem",
"full": "0.75rem",
"round-four": "0.5rem"
},
"spacing": {
"touch-target-min": "44px",
"stack-sm": "4px",
"stack-md": "8px",
"stack-lg": "16px",
"margin-page": "16px",
"gutter": "12px"
},
"fontFamily": {
"title": ["Noto Sans"],
"body": ["Noto Sans"],
"label-caps": ["Noto Sans"],
"body-sm": ["Noto Sans"],
"header-mobile": ["Noto Sans"],
"header-desktop": ["Noto Sans"]
},
"fontSize": {
"title": ["16px", {"lineHeight": "22px", "fontWeight": "600"}],
"body": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
"label-caps": ["11px", {"lineHeight": "14px", "letterSpacing": "0.5px", "fontWeight": "700"}],
"body-sm": ["12px", {"lineHeight": "16px", "fontWeight": "400"}],
"header-mobile": ["17px", {"lineHeight": "22px", "fontWeight": "700"}],
"header-desktop": ["18px", {"lineHeight": "24px", "fontWeight": "700"}]
}
},
},
}
} catch (_e) {}
</script>
<style>
body.lmn-mobile-revamp {
font-family: 'IBM Plex Sans KR', 'Noto Sans KR', sans-serif;
background:
radial-gradient(640px 260px at 12% 0%, rgba(0,110,28,0.15), transparent 72%),
radial-gradient(540px 220px at 88% 100%, rgba(0,97,164,0.17), transparent 74%),
linear-gradient(160deg, #f8fbf9 0%, #eef6f2 48%, #ecf3f8 100%);
}
.lmn-mobile-topbar {
backdrop-filter: blur(12px);
background: rgba(255,255,255,0.88);
border-bottom-color: rgba(117,141,122,0.28);
}
.lmn-mobile-brand {
font-family: 'Space Grotesk', 'IBM Plex Sans KR', sans-serif;
letter-spacing: 0.25px;
}
.lmn-mobile-panel {
background: rgba(255,255,255,0.78);
backdrop-filter: blur(12px);
}
#directions-btn {
background: linear-gradient(135deg, #ff9a1f 0%, #ff6f11 100%);
box-shadow: 0 10px 22px rgba(255, 111, 17, 0.3);
}
#route-summary, #route-fare-summary, #combo-summary {
background: rgba(255,255,255,0.72);
border: 1px solid rgba(120,138,128,0.24);
border-radius: 10px;
padding: 6px 9px;
}
.lmn-mobile-map {
border-radius: 16px 16px 0 0;
overflow: hidden;
margin: 8px 10px 0;
box-shadow: 0 14px 28px rgba(12, 30, 18, 0.16);
}
nav.lmn-mobile-bottom {
backdrop-filter: blur(12px);
background: rgba(255,255,255,0.9);
border-top-color: rgba(117,141,122,0.3);
}
.lmn-mobile-rise {
animation: lmnMobileRise .42s cubic-bezier(.2,.7,.2,1);
}
.menu-close-btn {
display: none;
}
.menu-advanced {
display: none;
}
body.menu-open .menu-close-btn {
display: inline-flex;
}
body.menu-open .menu-advanced {
display: block;
}
body.menu-open .lmn-mobile-panel {
position: fixed;
top: 44px;
left: 0;
right: 0;
bottom: 64px;
z-index: 1200;
height: auto !important;
}
body.menu-open .lmn-mobile-map {
opacity: 0.35;
}
@keyframes lmnMobileRise {
from { transform: translateY(9px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
</style>
</head>
<body class="lmn-mobile-revamp bg-surface text-on-surface flex flex-col h-screen overflow-hidden font-body">
<!-- TopAppBar -->
<header class="lmn-mobile-topbar fixed top-0 w-full z-50 bg-surface dark:bg-surface-dim border-b border-outline-variant shadow-sm flex items-center justify-between px-margin-page h-[44px]">
<div class="flex items-center gap-2">
<span class="material-symbols-outlined text-primary" data-icon="explore">explore</span>
<h1 class="lmn-mobile-brand font-header-mobile text-header-mobile text-primary">LMN</h1>
<span class="text-[10px] px-2 py-0.5 rounded-full bg-secondary-container/20 text-secondary">게스트</span>
</div>
<div class="flex items-center gap-1">
<button class="text-[10px] px-2 py-0.5 rounded-full border border-outline-variant" id="menu-toggle-btn">메뉴</button>
<span id="network-badge" class="text-[10px] px-2 py-0.5 rounded-full bg-green-100 text-green-700">온라인</span>
<button class="material-symbols-outlined text-on-surface-variant hover:bg-surface-container-high transition-colors p-2 rounded-full active:scale-95 duration-150" data-icon="my_location" data-action="locate">my_location</button>
</div>
</header>
<main class="lmn-mobile-rise flex-1 flex flex-col pt-[44px] pb-[64px]">
<!-- Control Panel (Top 50%) -->
<section class="lmn-mobile-panel h-[32%] flex flex-col bg-surface z-20 overflow-y-auto border-b border-outline-variant">
<div class="p-margin-page space-y-stack-lg flex-1">
<div class="flex justify-end">
<button class="menu-close-btn text-[11px] px-2 py-1 rounded-full border border-outline-variant" id="menu-close-btn">닫기</button>
</div>
<!-- Location Info Card -->
<div class="flex items-center justify-between bg-surface-container-low p-stack-lg rounded-round-four border border-outline-variant">
<div class="flex flex-col">
<div class="flex items-center gap-2">
<span class="material-symbols-outlined text-secondary text-[20px]" data-icon="map">map</span>
<span class="font-title text-title text-on-surface">내 위치</span>
</div>
<span class="font-body-sm text-body-sm text-on-surface-variant ml-7" id="coords-display">(37.5665, 126.9780)</span>
</div>
<button class="h-touch-target-min px-stack-lg bg-primary text-on-primary rounded-round-four font-title text-title active:scale-95 transition-transform shadow-sm" data-action="locate">내 위치 찾기</button>
</div>
<!-- Search Input Bar -->
<div class="flex items-center gap-2">
<div class="relative flex-1">
<span class="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-on-surface-variant">trip_origin</span>
<input class="w-full h-touch-target-min pl-10 pr-4 bg-surface-container-lowest border border-outline-variant rounded-round-four font-body text-body focus:ring-2 focus:ring-primary focus:border-primary outline-none transition-all placeholder:text-outline" id="start-input" placeholder="출발지 입력" type="text"/>
</div>
<button class="h-touch-target-min px-stack-lg bg-surface-container-high text-on-surface rounded-round-four font-title text-title active:opacity-90 shadow-sm" data-action="search-start">출발</button>
</div>
<div class="flex items-center gap-2">
<div class="relative flex-1">
<span class="material-symbols-outlined absolute left-3 top-1/2 -translate-y-1/2 text-on-surface-variant" data-icon="search">search</span>
<input class="w-full h-touch-target-min pl-10 pr-4 bg-surface-container-lowest border border-outline-variant rounded-round-four font-body text-body focus:ring-2 focus:ring-primary focus:border-primary outline-none transition-all placeholder:text-outline" id="destination-input" placeholder="서울역, 강남역, 병원..." type="text"/>
</div>
<button class="h-touch-target-min px-stack-lg bg-secondary text-on-secondary rounded-round-four font-title text-title active:opacity-90 shadow-sm" data-action="search">검색</button>
</div>
<div class="menu-advanced">
<div class="flex items-center justify-between">
<p class="text-[11px] text-on-surface-variant">최근 검색</p>
<button class="text-[11px] text-secondary" id="clear-recent-btn">지우기</button>
</div>
<div class="flex gap-2 overflow-x-auto" id="recent-search-list"></div>
<div class="grid grid-cols-2 gap-2">
<button class="text-[11px] px-2 py-1 rounded-round-four border border-outline-variant" id="toggle-theme-btn">다크</button>
<button class="text-[11px] px-2 py-1 rounded-round-four border border-outline-variant" id="reset-map-btn">지도 초기화</button>
<button class="text-[11px] px-2 py-1 rounded-round-four border border-outline-variant" id="copy-coords-btn">좌표 복사</button>
<button class="text-[11px] px-2 py-1 rounded-round-four border border-outline-variant" id="share-destination-btn">목적지 공유</button>
</div>
<div class="flex items-center gap-2">
<label class="text-[11px] text-on-surface-variant" for="nearby-radius-range">주변 반경</label>
<input class="flex-1" id="nearby-radius-range" max="3000" min="300" step="100" type="range" value="1500"/>
<span class="text-[11px] w-12 text-right" id="nearby-radius-label">1.5km</span>
</div>
<div class="flex items-center justify-between">
<p class="text-[11px] text-on-surface-variant">저장 목적지</p>
<button class="text-[11px] text-secondary" id="clear-favorites-btn">모두 지우기</button>
</div>
<div class="space-y-1" id="favorites-list"></div>
<div class="grid grid-cols-2 gap-2">
<button class="text-[11px] px-2 py-1 rounded-round-four border border-outline-variant" id="export-data-btn">내보내기</button>
<button class="text-[11px] px-2 py-1 rounded-round-four border border-outline-variant" id="import-data-btn">가져오기</button>
<input class="hidden" id="import-data-input" type="file" accept="application/json"/>
</div>
<div>
<p class="text-[11px] text-on-surface-variant mb-1">이동수단</p>
<div class="flex gap-1 overflow-x-auto pb-1">
<button class="text-[11px] px-2 py-1 rounded-full bg-primary-container/30 text-on-surface whitespace-nowrap" data-route-mode="driving">차량</button>
<button class="text-[11px] px-2 py-1 rounded-full border border-outline-variant whitespace-nowrap" data-route-mode="walking">도보</button>
<button class="text-[11px] px-2 py-1 rounded-full border border-outline-variant whitespace-nowrap" data-route-mode="cycling">자전거</button>
<button class="text-[11px] px-2 py-1 rounded-full border border-outline-variant whitespace-nowrap" data-route-mode="subway">지하철</button>
<button class="text-[11px] px-2 py-1 rounded-full border border-outline-variant whitespace-nowrap" data-route-mode="bus">버스</button>
<button class="text-[11px] px-2 py-1 rounded-full border border-outline-variant whitespace-nowrap" data-route-mode="taxi">택시</button>
<button class="text-[11px] px-2 py-1 rounded-full border border-outline-variant whitespace-nowrap" data-route-mode="flight">비행기</button>
</div>
</div>
<!-- Main Action Button -->
<button class="w-full h-[48px] flex items-center justify-center gap-2 bg-tertiary-container text-white rounded-round-four font-title text-title shadow-md active:scale-[0.98] transition-transform" id="directions-btn">
<span class="material-symbols-outlined" data-icon="directions">directions</span>
내부 길찾기
</button>
<p class="text-[11px] text-on-surface-variant" id="route-summary">길찾기 결과가 여기에 표시됩니다.</p>
<p class="text-[11px] text-primary" id="route-fare-summary">예상 요금: -</p>
<div class="flex items-center gap-2">
<select class="flex-1 h-touch-target-min bg-surface-container-lowest border border-outline-variant rounded-round-four px-3 text-[12px]" id="route-combo-select">
<option value="">조합 경로 선택</option>
<option value="walk-subway-walk">도보 + 지하철 + 도보</option>
<option value="walk-bus-walk">도보 + 버스 + 도보</option>
<option value="taxi-subway-walk">택시 + 지하철 + 도보</option>
<option value="drive-flight-drive">차량 + 비행기 + 차량</option>
<option value="bike-subway-walk">자전거 + 지하철 + 도보</option>
</select>
<button class="h-touch-target-min px-stack-lg border border-outline-variant rounded-round-four text-[12px]" id="combo-route-btn">조합</button>
</div>
<p class="text-[11px] text-on-surface-variant" id="combo-summary">조합 경로를 선택하면 구간별 경로와 요금을 계산합니다.</p>
<button class="w-full h-touch-target-min flex items-center justify-center gap-2 border border-outline-variant rounded-round-four font-title text-title" id="save-favorite-btn">
<span class="material-symbols-outlined" data-icon="bookmark_add">bookmark_add</span>
현재 목적지 저장
</button>
<!-- Category Grid -->
<div class="grid grid-cols-3 gap-gutter">
<button class="flex flex-col items-center justify-center gap-stack-sm p-stack-md bg-surface-container rounded-round-four border-b-4 border-custom-hospital active:bg-surface-container-high transition-colors h-[72px]" data-category="hospital">
<span class="material-symbols-outlined text-custom-hospital" data-icon="hospital">local_hospital</span>
<span class="font-label-caps text-label-caps text-on-surface">병원 찾기</span>
</button>
<button class="flex flex-col items-center justify-center gap-stack-sm p-stack-md bg-surface-container rounded-round-four border-b-4 border-custom-pharmacy active:bg-surface-container-high transition-colors h-[72px]" data-category="pharmacy">
<span class="material-symbols-outlined text-custom-pharmacy" data-icon="medical_services">medical_services</span>
<span class="font-label-caps text-label-caps text-on-surface">약국 찾기</span>
</button>
<button class="flex flex-col items-center justify-center gap-stack-sm p-stack-md bg-surface-container rounded-round-four border-b-4 border-custom-store active:bg-surface-container-high transition-colors h-[72px]" data-category="convenience">
<span class="material-symbols-outlined text-custom-store" data-icon="storefront">storefront</span>
<span class="font-label-caps text-label-caps text-on-surface">편의점 찾기</span>
</button>
</div>
</div>
</div>
<!-- Enhanced Status Bar -->
<div class="h-[52px] bg-primary-container/10 flex items-center px-margin-page border-t border-primary/20">
<div class="flex items-center gap-3">
<div class="w-6 h-6 bg-primary-container rounded-full flex items-center justify-center">
<span class="material-symbols-outlined text-on-primary text-[16px]" data-icon="check">check</span>
</div>
<p class="font-title text-title text-on-primary-container" id="status-message">준비 완료: 내 위치를 찾거나 목적지를 검색해 주세요.</p>
</div>
</div>
</section>
<!-- Map Area (Bottom 50%) -->
<section class="lmn-mobile-map h-[68%] relative bg-surface-container-highest overflow-hidden">
<div class="absolute inset-0 z-0" id="map"></div>
<div class="absolute left-3 top-3 z-20 flex gap-1 bg-white/90 backdrop-blur px-2 py-2 rounded-xl shadow-md border border-outline-variant">
<button class="text-[10px] px-2 py-1 rounded-full border border-outline-variant bg-error-container/30" data-category="hospital">병원</button>
<button class="text-[10px] px-2 py-1 rounded-full border border-outline-variant bg-secondary-container/20" data-category="pharmacy">약국</button>
<button class="text-[10px] px-2 py-1 rounded-full border border-outline-variant bg-tertiary-container/20" data-category="convenience">편의점</button>
</div>
<!-- Map Controls -->
<div class="absolute right-margin-page bottom-margin-page z-20 flex flex-col gap-stack-md">
<button class="w-touch-target-min h-touch-target-min bg-surface-container-lowest border border-outline-variant shadow-md flex items-center justify-center rounded-round-four active:bg-surface-container-high transition-colors" data-action="zoom-in">
<span class="material-symbols-outlined" data-icon="add">add</span>
</button>
<button class="w-touch-target-min h-touch-target-min bg-surface-container-lowest border border-outline-variant shadow-md flex items-center justify-center rounded-round-four active:bg-surface-container-high transition-colors" data-action="zoom-out">
<span class="material-symbols-outlined" data-icon="remove">remove</span>
</button>
<button class="w-touch-target-min h-touch-target-min bg-primary text-on-primary shadow-lg flex items-center justify-center rounded-round-four active:scale-95 transition-transform" data-action="locate">
<span class="material-symbols-outlined" data-icon="navigation" style="font-variation-settings: 'FILL' 1;">navigation</span>
</button>
</div>
</section>
</main>
<!-- BottomNavBar -->
<nav class="lmn-mobile-bottom fixed bottom-0 w-full z-50 h-[64px] bg-surface border-t border-outline-variant flex justify-around items-center px-gutter rounded-t-xl shadow-[0_-4px_12px_rgba(0,0,0,0.05)]">
<button class="flex flex-col items-center justify-center bg-secondary-container text-on-secondary-container rounded-round-four px-stack-lg py-1 transition-all active:scale-95" data-nav="mobile-main.html">
<span class="material-symbols-outlined" data-icon="map" style="font-variation-settings: 'FILL' 1;">map</span>
<span class="font-label-caps text-label-caps">Map</span>
</button>
<button class="flex flex-col items-center justify-center text-on-surface-variant hover:bg-surface-variant transition-colors rounded-round-four px-stack-md py-1 active:opacity-80" data-nav="mobile-search.html">
<span class="material-symbols-outlined" data-icon="search">search</span>
<span class="font-label-caps text-label-caps">Search</span>
</button>
<button class="flex flex-col items-center justify-center text-on-surface-variant hover:bg-surface-variant transition-colors rounded-round-four px-stack-md py-1 active:opacity-80" data-nav="mobile-saved.html">
<span class="material-symbols-outlined" data-icon="bookmark">bookmark</span>
<span class="font-label-caps text-label-caps">Saved</span>
</button>
<button class="flex flex-col items-center justify-center text-on-surface-variant hover:bg-surface-variant transition-colors rounded-round-four px-stack-md py-1 active:opacity-80" data-nav="mobile-profile.html">
<span class="material-symbols-outlined" data-icon="person">person</span>
<span class="font-label-caps text-label-caps">Profile</span>
</button>
</nav>
<script crossorigin="" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="lmn-core.js"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('sw.js').catch(function () {});
});
}
</script>
</body></html>