feat(supporters): 회복 일정 플래너를 템플릿·워커에 통합 (/plan·/en/plan), /recovery·/stay 를 /plan 으로 정리
- 템플릿: Planner.astro, lib/plan.ts·tour.ts, styles/plan.css, planStrings, pages plan·en/plan·404. Base 내비 회복 일정 → /plan, 언어 짝 /plan↔/en/plan, 옛 주소 리다이렉트(vercel.json), 사이트맵 - 워커 planner 단계(recovery 다음): scripts/build_planner_data.mjs 가 업종별 기본 규칙표(scripts/template/planner/procedures.plastic|derm.json)에 병원 시술 페이지 원문(recoveryNotes)을 matchKeywords 로 붙이고, 장소는 briefs/<clinic>/planner.places.json(큐레이션) 또는 범용 기본표(관광공사 기준 좌표)로 만든다 - 브리프: viewclinic·oracle 큐레이션 장소. 빈 템플릿(관광 데이터 없음)도 빌드·검증 통과(plan.test 14건) - 이전 세션의 미커밋 작업(피부과 수집·OCR·게이트·언어 스위치, stay 페이지 제거)도 이 커밋에 함께 들어감. docs/prd 변경은 제외 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
5c08fa97ab
commit
aa5b05227f
126 files changed
+12916
-2068
No files matched your search
@@ -0,0 +1,313 @@
|
||||
---
|
||||
// 회복기 스케줄러 본문 (설계 v0.2 §13). /plan(한국어)과 /en/plan(영어)이 같은 컴포넌트를 lang 만 바꿔 쓴다.
|
||||
// 구성은 홈·영상 페이지와 같은 섹션 리듬이다: 다크 히어로(글래스 통계) → 틴트(입력 카드) → 다크(핵심 날짜) → 라이트(확인·규칙) → 틴트(타임라인) → 다크(예약).
|
||||
// 건강정보(시술·수술일)는 서버로 보내지 않는다. 상태는 URL 해시로만 공유하고, 언어 전환은 해시를 들고 다른 언어 페이지로 이동한다.
|
||||
import '../styles/plan.css';
|
||||
import strings from '../data/planStrings.json';
|
||||
import P from '../data/procedures.json';
|
||||
import PL from '../data/places.json';
|
||||
import TKO from '../data/medicalTourismKo.json';
|
||||
import TEN from '../data/medicalTourism.json';
|
||||
import { tourToPlaces } from '../lib/tour';
|
||||
interface Props { lang: 'ko' | 'en' }
|
||||
const { lang } = Astro.props;
|
||||
const t = strings[lang];
|
||||
const tour = tourToPlaces((lang === 'en' ? TEN : TKO) as any, lang);
|
||||
const nProcs = P.procedures.length;
|
||||
const nPlaces = PL.places.filter((x) => x.category !== 'hotel').length + tour.filter((x) => x.category !== 'hotel').length;
|
||||
const nHotels = PL.places.filter((x) => x.category === 'hotel').length + tour.filter((x) => x.category === 'hotel').length;
|
||||
const procList = (P.procedures as any[]).map((x) => x.label[lang]).join(lang === 'ko' ? '·' : ', ');
|
||||
const originLabel = (PL as any).origin?.label?.[lang] ?? '';
|
||||
---
|
||||
<section class="section dark plan-hero">
|
||||
<div class="wrap-wide">
|
||||
<div class="sec-head">
|
||||
<div class="eyebrow" style="color:var(--purple-300)">{t.eyebrow}</div>
|
||||
<h1>{t.h_hero}</h1>
|
||||
<p class="lede"><strong>{t.title}</strong> {t.lede}</p>
|
||||
</div>
|
||||
<div class="stats">
|
||||
<div class="stat"><b>{nProcs}</b><span class="label">{t.stat_procs}</span><span class="desc">{procList}</span></div>
|
||||
<div class="stat"><b>{nPlaces}</b><span class="label">{t.stat_places}</span><span class="desc">{t.stat_places_d.replace('{origin}', originLabel)}</span></div>
|
||||
<div class="stat"><b>{nHotels}</b><span class="label">{t.stat_hotels}</span><span class="desc">{t.stat_hotels_d}</span></div>
|
||||
<div class="stat"><b>0</b><span class="label">{t.stat_privacy}</span><span class="desc">{t.stat_privacy_d}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div id="planner" data-lang={lang}>
|
||||
<section class="section tint"><div class="wrap-wide"><noscript><p class="notice">{lang === 'ko' ? '이 일정표는 브라우저에서 계산합니다. 자바스크립트를 켜 주세요.' : 'This planner runs in your browser. Please enable JavaScript.'}</p></noscript></div></section>
|
||||
</div>
|
||||
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
||||
<div class="sticky-bar" id="sticky" hidden><div class="s"><b id="sticky-title"></b><small id="sticky-sub"></small></div><button type="button" data-action="go">{t.stickyView}</button></div>
|
||||
|
||||
<script>
|
||||
import P from '../data/procedures.json';
|
||||
import PL from '../data/places.json';
|
||||
import STR from '../data/planStrings.json';
|
||||
import factSheet from '../data/factSheet.json';
|
||||
import TKO from '../data/medicalTourismKo.json';
|
||||
import TEN from '../data/medicalTourism.json';
|
||||
import { tourToPlaces, festivalsDuring } from '../lib/tour';
|
||||
import { buildPlan, encodeHash, decodeHash, bookingUrl, googleFlightsUrl, mapUrl, buildIcs, summaryText, isIsoDate, addDays } from '../lib/plan';
|
||||
import type { Lang, Procedure, Place, Nationality, Plan, PlanDay } from '../lib/plan';
|
||||
|
||||
type Strings = Record<string, string>;
|
||||
const procedures = P.procedures as unknown as Procedure[];
|
||||
const curated = (PL.places as unknown as Place[]).map((x) => ({ ...x, source: 'curated' as const }));
|
||||
const root0 = document.getElementById('planner')!;
|
||||
const tourData = ((root0.dataset.lang === 'en' ? TEN : TKO) as any);
|
||||
const places: Place[] = [...curated, ...tourToPlaces(tourData, root0.dataset.lang === 'en' ? 'en' : 'ko')];
|
||||
const tourDate: string = String(tourData?.meta?.fetchedAt ?? '').slice(0, 10);
|
||||
const nationalities = P.nationalities.list as Nationality[];
|
||||
const PREFS = ['sightseeing', 'shopping', 'food', 'kpop', 'care'];
|
||||
const root = document.getElementById('planner')!;
|
||||
const pageLang = (root.dataset.lang === 'en' ? 'en' : 'ko') as Lang;
|
||||
const toastEl = document.getElementById('toast')!;
|
||||
const sticky = document.getElementById('sticky')!;
|
||||
const reservationUrl: string = (factSheet as any).reservationUrl || (factSheet as any).url || '/visit';
|
||||
|
||||
interface State { lang: Lang; nat: string; proc: string; date: string; prefs: string[] }
|
||||
const initial = decodeHash(location.hash);
|
||||
const state: State = {
|
||||
lang: pageLang,
|
||||
nat: initial.n ?? '',
|
||||
proc: initial.p && procedures.some((p) => p.id === initial.p) ? initial.p : '',
|
||||
date: initial.d ?? '',
|
||||
prefs: (initial.pref ?? []).filter((x) => PREFS.includes(x)),
|
||||
};
|
||||
|
||||
const esc = (s: unknown) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c] as string));
|
||||
const T = (): Strings => (STR as any)[state.lang];
|
||||
const fill = (s: string, vars: Record<string, string | number>) => Object.entries(vars).reduce((acc, [k, val]) => acc.replaceAll(`{${k}}`, String(val)), s);
|
||||
const locale = () => (state.lang === 'ko' ? 'ko-KR' : 'en-GB');
|
||||
const fmtDate = (iso: string) => new Intl.DateTimeFormat(locale(), { month: 'short', day: 'numeric', weekday: 'short', timeZone: 'UTC' }).format(new Date(`${iso}T00:00:00Z`));
|
||||
const weekday = (iso: string) => new Intl.DateTimeFormat(locale(), { weekday: 'short', timeZone: 'UTC' }).format(new Date(`${iso}T00:00:00Z`));
|
||||
const L = (o: any) => esc(o?.[state.lang] ?? '');
|
||||
const currentProc = () => procedures.find((p) => p.id === state.proc) ?? null;
|
||||
const currentNat = () => nationalities.find((n) => n.code === state.nat) ?? null;
|
||||
const statusTag = (st: string) => st === 'clinic' ? `<span class="tag clinic">${esc(T().clinicSourced)}</span>` : `<span class="tag prov">${esc(T().provisional)}</span>`;
|
||||
/** 섹션 머리: 아이브로우(영문) + Playfair 영문 제목 + 한글 부제. 홈의 .sec-head 규격 */
|
||||
const secHead = (eyebrow: string, en: string, sub: string, dark = false) => `<div class="sec-head"><div class="eyebrow"${dark ? ' style="color:var(--purple-300)"' : ''}>${esc(eyebrow)}</div><h2>${esc(en)}</h2>${sub ? `<p class="sub">${esc(sub)}</p>` : ''}</div>`;
|
||||
const cardHead = (n: number, en: string, sub: string) => `<div class="cat step"><span class="n">${n}</span>Step ${n}</div><h3 class="serif">${esc(en)}</h3>${sub ? `<p class="sub2">${esc(sub)}</p>` : ''}`;
|
||||
|
||||
function syncHash() {
|
||||
const h = encodeHash({ p: state.proc || undefined, d: state.date || undefined, l: state.lang, n: state.nat || undefined, pref: state.prefs });
|
||||
history.replaceState(null, '', `#${h}`);
|
||||
}
|
||||
function toast(msg: string) { toastEl.textContent = msg; toastEl.classList.add('show'); setTimeout(() => toastEl.classList.remove('show'), 1600); }
|
||||
|
||||
// ---------- 입력 (틴트 섹션, 카드 3장) ----------
|
||||
function renderInput(): string {
|
||||
const t = T();
|
||||
const natOpts = [`<option value="">${state.lang === 'ko' ? '선택' : 'Select'}</option>`].concat(nationalities.map((n) => `<option value="${n.code}" ${n.code === state.nat ? 'selected' : ''}>${L(n.label)}</option>`)).join('');
|
||||
const procBtns = procedures.map((p) => `<button type="button" data-action="proc" data-id="${p.id}" class="${p.id === state.proc ? 'on' : ''}" aria-pressed="${p.id === state.proc}"><small>${L(p.group)}</small><b>${L(p.label)}</b></button>`).join('');
|
||||
const prefBtns = PREFS.map((k) => `<button type="button" data-action="pref" data-id="${k}" class="${state.prefs.includes(k) ? 'on' : ''}" aria-pressed="${state.prefs.includes(k)}">${esc(t[`pref_${k}`])}</button>`).join('');
|
||||
const minDate = new Date().toISOString().slice(0, 10);
|
||||
return `
|
||||
<section class="section tint plan-input" style="padding:3.2rem 0"><div class="wrap-wide">
|
||||
${secHead('Plan', t.h_input, t.sub_input)}
|
||||
<div class="steps-grid">
|
||||
<div class="card">
|
||||
${cardHead(1, t.h_step1, t.step1)}
|
||||
<div class="field"><label for="nat">${esc(t.nationality)}</label><select id="nat" data-action="nat">${natOpts}</select></div>
|
||||
<p class="hint">${esc(t.h_step1_hint)}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
${cardHead(2, t.h_step2, t.step2)}
|
||||
<div class="field"><label>${esc(t.procedure)}</label><div class="proc-grid">${procBtns}</div></div>
|
||||
<div class="field"><label for="sdate">${esc(t.surgeryDate)}</label><input id="sdate" type="date" data-action="date" value="${esc(state.date)}" min="${minDate}" /></div>
|
||||
<p class="hint">${esc(t.surgeryDateHint)}</p>
|
||||
</div>
|
||||
<div class="card span">
|
||||
${cardHead(3, t.h_step3, t.step3)}
|
||||
<div class="pref-row">${prefBtns}</div>
|
||||
<p class="hint">${esc(t.prefs)}</p>
|
||||
<div class="plan-actions"><button type="button" class="btn primary" data-action="go">${esc(t.generate)}</button><button type="button" class="btn ghost small" data-action="reset">${esc(t.reset)}</button></div>
|
||||
</div>
|
||||
</div>
|
||||
</div></section>`;
|
||||
}
|
||||
|
||||
// ---------- 결과 ----------
|
||||
function dayLabel(d: PlanDay): string {
|
||||
const t = T();
|
||||
if (d.offset < 0) return fill(t.dayBefore, { n: -d.offset });
|
||||
if (d.offset === 0) return t.daySurgery;
|
||||
return fill(t.dayAfter, { n: d.offset });
|
||||
}
|
||||
function eventLabel(d: PlanDay): string {
|
||||
const t = T();
|
||||
const ev: string[] = [];
|
||||
if (d.isArrival) ev.push(t.arriveBy);
|
||||
if (d.isSurgery) ev.push(t.surgery);
|
||||
if (d.isHospital && !d.isSurgery) ev.push(t.hospital);
|
||||
if (d.isStitch) ev.push(t.stitch);
|
||||
if (d.isDeparture) ev.push(t.departure);
|
||||
return ev.join(' · ');
|
||||
}
|
||||
function pickHtml(p: Place): string {
|
||||
const t = T();
|
||||
const dist = p.travelLabel ? esc(p.travelLabel) : `${p.distanceKm <= 0.6 ? esc(t.walk) : esc(t.taxi)} ${esc(fill(t.km, { km: p.distanceKm }))}`;
|
||||
const meta = `<small>${dist}${p.indoor ? ' · ' + esc(t.indoor) : ''}${p.source === 'tourapi' ? ' · ' + esc(t.tour_badge) : ''}</small>`;
|
||||
return p.mapQuery ? `<a href="${mapUrl(p.mapQuery)}" rel="noopener" target="_blank" title="${L(p.note)}">${L(p.name)} ${meta}</a>` : `<span class="pick" title="${L(p.note)}">${L(p.name)} ${meta}</span>`;
|
||||
}
|
||||
|
||||
function renderEmpty(): string {
|
||||
const t = T();
|
||||
return `<section class="section dark" id="result"><div class="wrap-wide">${secHead('Step 4', t.h_step4, t.step4, true)}<div class="empty"><b>${esc(t.empty_title)}</b>${esc(t.empty_sub)}</div></div></section>`;
|
||||
}
|
||||
|
||||
function renderResult(plan: Plan, p: Procedure): string {
|
||||
const t = T();
|
||||
const nat = currentNat();
|
||||
const levels = (P as any).levels as { level: number; label: any; desc: any }[];
|
||||
const diets = (P as any).diets as Record<string, { label: any; desc: any }>;
|
||||
const lv = (n: number) => levels.find((x) => x.level === n)!;
|
||||
const hn = p.hospitalNights.value;
|
||||
|
||||
// 다크 섹션: 핵심 날짜 6개 (글래스 통계 카드)
|
||||
const dateVal = (iso: string) => `${iso.replace(/-/g, '.')}<span class="wd">${esc(weekday(iso))}</span>`;
|
||||
const numVal = (n: number, unit: string) => `${n}<span class="wd">${esc(unit)}</span>`;
|
||||
const txtVal = (s: string) => `<span class="txt">${esc(s)}</span>`;
|
||||
const stat = (label: string, valueHtml: string | null, st: string, note?: string) => `<div class="stat"><span class="label">${esc(label)}</span><b>${valueHtml === null ? txtVal(t.pending) : valueHtml}</b><span class="desc">${statusTag(st)}${note ? ' ' + esc(note) : ''}</span></div>`;
|
||||
const stitchDisplay = (p.stitchRemovalDay as any).display?.[state.lang];
|
||||
const stats = [
|
||||
stat(t.arriveBy, dateVal(plan.arriveBy), p.preOpDays.status, p.preOpDays.note ? (p.preOpDays.note as any)[state.lang] : undefined),
|
||||
stat(t.surgery, dateVal(plan.surgeryDate), 'clinic'),
|
||||
stat(t.hospital, hn === null ? null : hn === 0 ? txtVal(t.hospitalNone) : numVal(hn, fill(t.hospitalNights, { n: '' }).trim()), p.hospitalNights.status),
|
||||
stat(t.stitch, plan.stitchDate ? dateVal(plan.stitchDate) : stitchDisplay ? txtVal(stitchDisplay) : null, p.stitchRemovalDay.status, p.stitchRemovalDay.note ? (p.stitchRemovalDay.note as any)[state.lang] : undefined),
|
||||
stat(t.departure, plan.earliestDeparture ? dateVal(plan.earliestDeparture) : null, p.earliestDepartureDay.status),
|
||||
stat(t.stayNights, plan.stayNights === null ? null : numVal(plan.stayNights, fill(t.nights, { n: '' }).trim()), p.earliestDepartureDay.status),
|
||||
].join('');
|
||||
const scheduleSec = `<section class="section dark" id="result"><div class="wrap-wide">
|
||||
${secHead('Step 4', t.h_step4, `${t.step4 ? t.step4 + ' · ' : ''}${(p.label as any)[state.lang]}. ${t.sub_schedule}`, true)}
|
||||
<div class="stats dates">${stats}</div>
|
||||
<p class="note">${esc(t.departureNote)} ${esc(t.provisionalNote)}${p.readMore ? ` <a href="${esc(p.readMore)}">${esc(t.readMore)}</a>` : ''}</p>
|
||||
</div></section>`;
|
||||
|
||||
// 라이트 섹션: 체류 확인 · 회복 규칙 · 외출 단계 근거
|
||||
let visaCard = '';
|
||||
if (nat) {
|
||||
const stay = plan.stayNights === null ? null : plan.stayNights + 1;
|
||||
const country = (nat.label as any)[state.lang];
|
||||
let cls = 'ok', msg = '';
|
||||
if (nat.visaFreeDays === null) { cls = 'warn'; msg = fill(t.visaRequired, { country }); }
|
||||
else if (stay !== null && stay > nat.visaFreeDays) { cls = 'warn'; msg = fill(t.visaOver, { country, days: nat.visaFreeDays, stay }); }
|
||||
else if (stay !== null) { msg = fill(t.visaOk, { country, days: nat.visaFreeDays, stay }); }
|
||||
if (msg) visaCard = `<div class="card ${cls}"><div class="cat">Check</div><h3>${esc(t.h_visa)}</h3><p>${esc(msg)}</p><p class="fine">${esc(t.visaVerify)} <a href="${esc((P as any).nationalities.portal)}" rel="noopener" target="_blank">${esc(t.visaPortal)}</a></p></div>`;
|
||||
}
|
||||
const cons = p.constraints.map((c) => `<li>${L((P as any).constraints[c])}</li>`).join('');
|
||||
const stepNotes = p.outingLevels.filter((s) => s.note).map((s) => `<li>${L(s.note)} ${statusTag(s.status)}</li>`).join('');
|
||||
const rulesSec = `<section class="section light"><div class="wrap-wide">
|
||||
${secHead('Rules', t.h_rules, t.sub_rules)}
|
||||
<div class="grid">
|
||||
${visaCard}
|
||||
<div class="card"><div class="cat">${esc(t.constraints)}</div><h3>${esc(t.h_rules)}</h3><ul class="rules">${cons}</ul></div>
|
||||
${stepNotes ? `<div class="card"><div class="cat">${esc(t.levelLabel)}</div><h3>${esc(t.h_days)}</h3><ul class="rules">${stepNotes}</ul></div>` : ''}
|
||||
</div>
|
||||
</div></section>`;
|
||||
|
||||
// 틴트 섹션: 타임라인
|
||||
const legend = `<div class="legend">${levels.map((l) => `<span><span class="tag l${l.level}">${L(l.label)}</span>${L(l.desc)}</span>`).join('')}</div>`;
|
||||
const days = plan.days.map((d) => {
|
||||
const ev = eventLabel(d);
|
||||
const lvl = lv(d.level);
|
||||
const festPicks = d.festivals.map((f) => `<a href="#fest-${esc(f.id)}" class="fest"><span class="tag l3">${esc(t.festival_pick)}</span> ${esc(f.title)}</a>`).join('');
|
||||
const picks = d.picks.length || festPicks ? `<div class="picks">${festPicks}${d.picks.map(pickHtml).join('')}</div>` : d.level === 0 || d.isSurgery ? `<div class="rest">${esc(t.noPicks)}</div>` : '';
|
||||
const dietTag = d.offset >= 0 && d.diet !== 'normal' ? `<span class="tag diet" title="${L(diets[d.diet].desc)}">${esc(t.diet)}: ${L(diets[d.diet].label)}</span>` : '';
|
||||
return `<div class="day ${ev ? 'mark' : ''}"><div class="d"><b>${esc(fmtDate(d.date))}</b><span>${esc(dayLabel(d))}</span>${ev ? `<span class="ev">${esc(ev)}</span>` : ''}</div><div class="body"><div class="tags"><span class="tag l${d.level}">${esc(t.level)}: ${L(lvl.label)}</span>${dietTag}<span class="desc">${L(lvl.desc)}</span></div>${picks}</div></div>`;
|
||||
}).join('');
|
||||
const daysSec = `<section class="section tint"><div class="wrap-wide">
|
||||
${secHead('Timeline', t.h_days, t.sub_days)}
|
||||
${legend}
|
||||
<div class="timeline">${days}</div>
|
||||
</div></section>`;
|
||||
|
||||
// 라이트 섹션: 체류 기간의 행사 (TourAPI)
|
||||
const firstL3 = plan.days.find((d) => d.level >= 3)?.date ?? null;
|
||||
const festCards = lastFest.map((f) => {
|
||||
const from = firstL3 && firstL3 <= f.end ? fill(t.fest_from, { d: fmtDate(firstL3 < f.start ? f.start : firstL3) }) : t.fest_notYet;
|
||||
return `<div class="card fest-card" id="fest-${esc(f.id)}">${f.image ? `<img src="${esc(f.image)}" alt="${esc(f.title)}" loading="lazy" onerror="this.remove()" />` : ''}<div class="cat">${esc(fill(t.fest_when, { a: f.start.slice(5).replace('-', '.'), b: f.end.slice(5).replace('-', '.') }))} · ${esc(f.travelLabel ?? fill(t.km, { km: f.distanceKm }))}</div><h3>${esc(f.title)}</h3><p>${esc(f.blurb)}</p><p class="fine"><span class="tag ${firstL3 && firstL3 <= f.end ? 'l3' : 'l0'}">${esc(from)}</span> ${f.url ? `<a href="${esc(f.url)}" rel="noopener" target="_blank">${esc(t.readMoreShort)}</a> · ` : ''}<a href="${mapUrl(f.title)}" rel="noopener" target="_blank">${esc(t.map)}</a></p></div>`;
|
||||
}).join('');
|
||||
const festSec = `<section class="section light"><div class="wrap-wide">${secHead('Events', t.h_fest, t.sub_fest)}${festCards ? `<div class="grid">${festCards}</div>` : `<p class="sub" style="color:var(--slate-500)">${esc(t.fest_none)}</p>`}${tourDate ? `<p class="fine" style="margin-top:1rem">${esc(fill(t.source_tour, { date: tourDate }))}</p>` : ''}</div></section>`;
|
||||
|
||||
// 다크 섹션: 예약과 저장 (큐레이션 숙소 + TourAPI 숙박 가까운 순 6곳)
|
||||
const checkin = plan.arriveBy, checkout = plan.earliestDeparture ?? addDays(plan.surgeryDate, 14);
|
||||
const hotelList = [...places.filter((x) => x.category === 'hotel' && x.source !== 'tourapi'), ...places.filter((x) => x.category === 'hotel' && x.source === 'tourapi').sort((a, b) => a.distanceKm - b.distanceKm).slice(0, 6)];
|
||||
const hotels = hotelList.map((h) => `
|
||||
<div class="card"><div class="cat">${L(h.area)} · ${esc(h.travelLabel ?? fill(t.km, { km: h.distanceKm }))}${h.source === 'tourapi' ? ' · ' + esc(t.tour_badge) : ''}</div><h3>${L(h.name)}</h3><p>${L(h.note)}</p>
|
||||
<div class="links"><a href="${bookingUrl(h.bookingQuery ?? (h.name as any).en, checkin, checkout, state.lang)}" rel="noopener sponsored" target="_blank">${esc(t.hotelSearch)}</a>${h.mapQuery ? `<a href="${mapUrl(h.mapQuery)}" rel="noopener" target="_blank">${esc(t.map)}</a>` : ''}</div></div>`).join('');
|
||||
const srcs = p.sources.map((id) => (P as any).clinicSources.find((s: any) => s.id === id)).filter(Boolean).map((s: any) => `<li><a href="${esc(s.url)}" rel="noopener" target="_blank">${L(s.label)}</a></li>`).join('');
|
||||
const bookSec = `<section class="section dark"><div class="wrap-wide">
|
||||
${secHead('Step 5', t.h_book, `${t.step5 ? t.step5 + '. ' : ''}${t.sub_book}`, true)}
|
||||
<div class="cat" style="font-size:0.75rem;color:var(--purple-300);font-weight:700;letter-spacing:0.06em;font-family:Inter,Pretendard,sans-serif;margin-bottom:0.8rem">${esc(t.h_hotels).toUpperCase()} · ${esc(t.hotels)}</div>
|
||||
<div class="hotel-grid">${hotels}</div>
|
||||
<div class="book-row">
|
||||
<div class="card"><div class="cat">${esc(t.h_flights)}</div><h3>${esc(t.flights)}</h3><p>${esc(t.flightHint)}</p><div class="plan-actions"><a class="btn ghost small" href="${googleFlightsUrl(checkin, checkout, state.lang)}" rel="noopener" target="_blank">${esc(t.flightSearch)}</a></div></div>
|
||||
<div class="card"><div class="cat">${esc(t.h_consult)}</div><h3>${esc(t.consult)}</h3><p>${esc(t.consultHint)}</p><div class="plan-actions"><a class="btn primary small" href="${esc(reservationUrl)}" rel="noopener">${esc(t.consult)}</a><button type="button" class="btn ghost small" data-action="copy">${esc(t.copySummary)}</button></div></div>
|
||||
<div class="card"><div class="cat">Save</div><h3>${esc(t.ics)}</h3><p>${esc(t.hotelHint)}</p><div class="plan-actions"><button type="button" class="btn ghost small" data-action="ics">${esc(t.ics)}</button><button type="button" class="btn ghost small" data-action="share">${esc(t.shareLink)}</button><button type="button" class="btn ghost small" data-action="print">${esc(t.print)}</button></div></div>
|
||||
</div>
|
||||
<p class="disclosure">${esc(t.affiliate)} ${esc(t.medical)}</p>
|
||||
<p class="note" style="margin-top:0.6rem">${esc(t.sourceLabel)}</p><ul class="sources-list">${srcs}${tourDate ? `<li>${esc(fill(t.source_tour, { date: tourDate }))}</li>` : ''}</ul>
|
||||
</div></section>`;
|
||||
|
||||
return scheduleSec + rulesSec + daysSec + festSec + bookSec;
|
||||
}
|
||||
|
||||
let lastPlan: Plan | null = null;
|
||||
let lastFest: ReturnType<typeof festivalsDuring> = [];
|
||||
function render() {
|
||||
const p = currentProc();
|
||||
lastPlan = null;
|
||||
let result = renderEmpty();
|
||||
if (p && isIsoDate(state.date)) {
|
||||
const pre = buildPlan({ procedure: p, surgeryDate: state.date, nationality: currentNat(), prefs: state.prefs }, places);
|
||||
lastFest = festivalsDuring(tourData, pre.arriveBy, pre.earliestDeparture ?? addDays(pre.surgeryDate, 14));
|
||||
lastPlan = buildPlan({ procedure: p, surgeryDate: state.date, nationality: currentNat(), prefs: state.prefs, festivals: lastFest }, places);
|
||||
result = renderResult(lastPlan, p);
|
||||
}
|
||||
root.innerHTML = renderInput() + result;
|
||||
syncHash();
|
||||
updateSticky();
|
||||
}
|
||||
/** 모바일 하단 요약 바: 결과가 있고 결과 섹션이 아직 화면 아래에 있을 때만 보인다. */
|
||||
function updateSticky() {
|
||||
const p = currentProc();
|
||||
if (!lastPlan || !p) { sticky.hidden = true; return; }
|
||||
const t = T();
|
||||
const short = (iso: string) => iso.slice(5).replace('-', '.');
|
||||
(document.getElementById('sticky-title') as HTMLElement).textContent = (p.label as any)[state.lang];
|
||||
(document.getElementById('sticky-sub') as HTMLElement).textContent = fill(t.stickyStay, { a: short(lastPlan.arriveBy), b: lastPlan.earliestDeparture ? short(lastPlan.earliestDeparture) : t.pending, n: lastPlan.stayNights ?? '?' });
|
||||
const r = document.getElementById('result');
|
||||
sticky.hidden = !r || r.getBoundingClientRect().top < window.innerHeight * 0.6;
|
||||
}
|
||||
window.addEventListener('scroll', () => { if (lastPlan) updateSticky(); }, { passive: true });
|
||||
|
||||
// ---------- 이벤트 ----------
|
||||
document.addEventListener('click', (e) => {
|
||||
const el = (e.target as HTMLElement).closest<HTMLElement>('[data-action]');
|
||||
if (!el) return;
|
||||
const a = el.dataset.action;
|
||||
if (a === 'proc') { state.proc = el.dataset.id!; render(); if (state.date) document.getElementById('result')?.scrollIntoView({ behavior: 'smooth', block: 'start' }); }
|
||||
else if (a === 'pref') { const id = el.dataset.id!; state.prefs = state.prefs.includes(id) ? state.prefs.filter((x) => x !== id) : [...state.prefs, id]; render(); }
|
||||
else if (a === 'go') { render(); if (lastPlan) document.getElementById('result')?.scrollIntoView({ behavior: 'smooth', block: 'start' }); else (document.getElementById('sdate') as HTMLInputElement | null)?.focus(); }
|
||||
else if (a === 'reset') { state.proc = ''; state.date = ''; state.prefs = []; state.nat = ''; render(); window.scrollTo({ top: 0, behavior: 'smooth' }); }
|
||||
else if (a === 'copy' && lastPlan) { navigator.clipboard.writeText(summaryText(lastPlan, currentProc()!, state.lang, T())).then(() => toast(T().copied)); }
|
||||
else if (a === 'share') { navigator.clipboard.writeText(location.href).then(() => toast(T().copied)); }
|
||||
else if (a === 'print') { window.print(); }
|
||||
else if (a === 'ics' && lastPlan) {
|
||||
const t = T();
|
||||
const ics = buildIcs(lastPlan, { arrive: t.arriveBy, surgery: `${t.surgery} · ${(currentProc()!.label as any)[state.lang]}`, stitch: t.stitch, departure: t.departure }, t.summaryTitle);
|
||||
const url = URL.createObjectURL(new Blob([ics], { type: 'text/calendar;charset=utf-8' }));
|
||||
const link = Object.assign(document.createElement('a'), { href: url, download: `recovery-plan-${state.date}.ics` });
|
||||
document.body.appendChild(link); link.click(); link.remove(); URL.revokeObjectURL(url);
|
||||
}
|
||||
});
|
||||
document.addEventListener('change', (e) => {
|
||||
const el = e.target as HTMLInputElement | HTMLSelectElement;
|
||||
if (el.dataset.action === 'nat') { state.nat = el.value; render(); }
|
||||
if (el.dataset.action === 'date') { state.date = isIsoDate(el.value) ? el.value : ''; render(); if (state.proc && state.date) document.getElementById('result')?.scrollIntoView({ behavior: 'smooth', block: 'start' }); }
|
||||
});
|
||||
|
||||
render();
|
||||
</script>
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"_comment": "회복기 스케줄러 큐레이션 장소 (설계 v0.2 §13.5 1순위 소스). 기준점은 신논현역(뷰성형외과). distanceKm 는 직선 거리 근사값이고 verify 가 true 인 항목은 출시 전 영업 여부·거리를 확인한다. 링크는 구글 지도 검색과 예약 사이트 검색 결과만 쓴다(지어낸 상세 URL 없음). 축제·행사(날짜 의존)는 한국관광공사 Tour API 연결(P1) 뒤에 추가한다.",
|
||||
"origin": { "label": { "ko": "신논현역 3번 출구", "en": "Sinnonhyeon Station Exit 3" }, "lat": 37.5045, "lng": 127.0250 },
|
||||
"categories": {
|
||||
"sightseeing": { "ko": "관광", "en": "Sightseeing" },
|
||||
"shopping": { "ko": "쇼핑", "en": "Shopping" },
|
||||
"food": { "ko": "미식", "en": "Food" },
|
||||
"kpop": { "ko": "K-pop·핫플", "en": "K-pop & hotspots" },
|
||||
"care": { "ko": "휴식·케어", "en": "Rest & care" },
|
||||
"essentials": { "ko": "생활", "en": "Essentials" },
|
||||
"hotel": { "ko": "숙소", "en": "Hotels" }
|
||||
},
|
||||
"places": [
|
||||
{ "id": "pharmacy-sinnonhyeon", "name": { "ko": "신논현역 주변 약국", "en": "Pharmacies near Sinnonhyeon Station" }, "category": "essentials", "minLevel": 1, "distanceKm": 0.2, "indoor": true, "area": { "ko": "신논현", "en": "Sinnonhyeon" }, "note": { "ko": "병원 건물 옆 골목에 약국이 있습니다. 처방약과 냉찜질 팩을 구할 수 있습니다.", "en": "Pharmacies in the alley next to the clinic building. Prescriptions and cold packs." }, "mapQuery": "약국 신논현역", "verify": true },
|
||||
{ "id": "convenience-sinnonhyeon", "name": { "ko": "편의점 (신논현역 일대)", "en": "Convenience stores (Sinnonhyeon area)" }, "category": "essentials", "minLevel": 1, "distanceKm": 0.1, "indoor": true, "area": { "ko": "신논현", "en": "Sinnonhyeon" }, "note": { "ko": "생수, 죽, 빨대, 얼음을 24시간 살 수 있습니다.", "en": "Water, porridge, straws and ice, 24 hours." }, "mapQuery": "편의점 신논현역", "verify": false },
|
||||
{ "id": "porridge-chain", "name": { "ko": "죽 전문점 (본죽 등 체인)", "en": "Korean porridge (Bonjuk and similar chains)" }, "category": "food", "minLevel": 1, "dietOk": ["liquid", "soft", "mild", "normal"], "distanceKm": 0.4, "indoor": true, "area": { "ko": "신논현·강남", "en": "Sinnonhyeon / Gangnam" }, "note": { "ko": "유동식 단계에서 먹을 수 있는 죽을 배달과 포장으로 받을 수 있습니다.", "en": "Porridge suitable for the liquid-diet stage, by delivery or takeout." }, "mapQuery": "본죽 신논현역", "verify": true },
|
||||
{ "id": "smoothie-cafe", "name": { "ko": "스무디·주스 카페 (강남대로)", "en": "Smoothie and juice cafes (Gangnam-daero)" }, "category": "food", "minLevel": 1, "dietOk": ["liquid", "soft", "mild", "normal"], "distanceKm": 0.5, "indoor": true, "area": { "ko": "강남대로", "en": "Gangnam-daero" }, "note": { "ko": "빨대로 마실 수 있는 메뉴가 많습니다. 뜨겁지 않은 것으로 고르세요.", "en": "Plenty of straw-friendly options. Choose nothing hot." }, "mapQuery": "스무디 카페 신논현역", "verify": true },
|
||||
{ "id": "seolleongtang", "name": { "ko": "설렁탕·곰탕 (강남 일대)", "en": "Seolleongtang beef bone soup (Gangnam area)" }, "category": "food", "minLevel": 1, "dietOk": ["soft", "mild", "normal"], "distanceKm": 0.6, "indoor": true, "area": { "ko": "강남", "en": "Gangnam" }, "note": { "ko": "국물 위주라 부드러운 음식 단계부터 가능합니다. 밥을 말아 천천히 드세요.", "en": "Broth-based, fine from the soft-food stage. Eat slowly with rice in the soup." }, "mapQuery": "설렁탕 강남역", "verify": true },
|
||||
{ "id": "sulbing", "name": { "ko": "설빙 (빙수 디저트)", "en": "Sulbing shaved-ice dessert" }, "category": "food", "minLevel": 1, "dietOk": ["soft", "mild", "normal"], "distanceKm": 0.6, "indoor": true, "area": { "ko": "강남", "en": "Gangnam" }, "note": { "ko": "차갑고 부드러워 부기가 있을 때도 먹기 편합니다.", "en": "Cold and soft, comfortable even with swelling." }, "mapQuery": "설빙 강남", "verify": true },
|
||||
{ "id": "cafe-garosugil", "name": { "ko": "가로수길 카페", "en": "Garosu-gil cafes" }, "category": "food", "minLevel": 2, "dietOk": ["soft", "mild", "normal"], "distanceKm": 1.2, "indoor": true, "area": { "ko": "신사동 가로수길", "en": "Garosu-gil, Sinsa" }, "note": { "ko": "조용한 카페가 많아 오후에 잠깐 앉아 있기 좋습니다.", "en": "Quiet cafes, good for a short afternoon sit-down." }, "mapQuery": "가로수길 카페", "verify": false },
|
||||
{ "id": "korean-bbq-gangnam", "name": { "ko": "강남 한식·구이", "en": "Korean BBQ and set meals (Gangnam)" }, "category": "food", "minLevel": 2, "dietOk": ["normal"], "distanceKm": 0.8, "indoor": true, "area": { "ko": "강남", "en": "Gangnam" }, "note": { "ko": "일반식이 가능한 단계부터입니다. 담당 원장이 술을 허용하기 전에는 음료로 대신하세요.", "en": "From the regular-diet stage. Skip alcohol until your surgeon allows it." }, "mapQuery": "한식 맛집 강남역", "verify": false },
|
||||
{ "id": "garosugil", "name": { "ko": "가로수길", "en": "Garosu-gil" }, "category": "shopping", "minLevel": 2, "distanceKm": 1.2, "indoor": false, "area": { "ko": "신사동", "en": "Sinsa" }, "note": { "ko": "편집숍과 뷰티 매장이 모여 있는 거리입니다. 택시로 5분.", "en": "A street of boutiques and beauty stores. 5 minutes by taxi." }, "mapQuery": "가로수길", "verify": false },
|
||||
{ "id": "oliveyoung-gangnam", "name": { "ko": "올리브영 강남 타운", "en": "Olive Young Gangnam Town" }, "category": "shopping", "minLevel": 2, "distanceKm": 0.9, "indoor": true, "area": { "ko": "강남역", "en": "Gangnam Station" }, "note": { "ko": "K-뷰티 대형 매장입니다. 수술 부위에 닿는 화장품은 담당 원장 안내를 따르세요.", "en": "Large K-beauty store. Follow your surgeon's guidance on products near the surgical area." }, "mapQuery": "올리브영 강남타운", "verify": true },
|
||||
{ "id": "shinsegae-gangnam", "name": { "ko": "신세계백화점 강남점", "en": "Shinsegae Department Store Gangnam" }, "category": "shopping", "minLevel": 2, "distanceKm": 2.4, "indoor": true, "area": { "ko": "고속터미널", "en": "Express Bus Terminal" }, "note": { "ko": "지하 파미에스테이션과 연결됩니다. 실내라 날씨와 상관없이 다닐 수 있습니다.", "en": "Connected to the Famille Station underground mall. Fully indoors." }, "mapQuery": "신세계백화점 강남점", "verify": false },
|
||||
{ "id": "hyundai-apgujeong", "name": { "ko": "현대백화점 압구정본점", "en": "Hyundai Department Store Apgujeong" }, "category": "shopping", "minLevel": 2, "distanceKm": 2.0, "indoor": true, "area": { "ko": "압구정", "en": "Apgujeong" }, "note": { "ko": "택시로 10분. 배송 서비스를 이용하면 짐을 들지 않아도 됩니다.", "en": "10 minutes by taxi. Use the delivery counter so you carry nothing." }, "mapQuery": "현대백화점 압구정본점", "verify": false },
|
||||
{ "id": "coex-mall", "name": { "ko": "코엑스몰·별마당도서관", "en": "COEX Mall and Starfield Library" }, "category": "shopping", "minLevel": 2, "distanceKm": 3.4, "indoor": true, "area": { "ko": "삼성동", "en": "Samseong" }, "note": { "ko": "실내 쇼핑몰과 도서관, 아쿠아리움이 한 건물에 있습니다.", "en": "Indoor mall, library and aquarium in one building." }, "mapQuery": "코엑스몰", "verify": false },
|
||||
{ "id": "apgujeong-rodeo", "name": { "ko": "압구정 로데오·K-Star Road", "en": "Apgujeong Rodeo and K-Star Road" }, "category": "kpop", "minLevel": 2, "distanceKm": 2.6, "indoor": false, "area": { "ko": "압구정", "en": "Apgujeong" }, "note": { "ko": "기획사 건물과 아이돌 조형물이 있는 거리입니다.", "en": "Street of entertainment agencies and idol art figures." }, "mapQuery": "K-Star Road 압구정", "verify": true },
|
||||
{ "id": "kwangya-seongsu", "name": { "ko": "KWANGYA@SEOUL (성수)", "en": "KWANGYA@SEOUL (Seongsu)" }, "category": "kpop", "minLevel": 3, "distanceKm": 5.5, "indoor": true, "area": { "ko": "성수동", "en": "Seongsu" }, "note": { "ko": "SM 엔터테인먼트 공식 굿즈 매장입니다. 운영 시간을 확인하고 가세요.", "en": "SM Entertainment's official merchandise store. Check hours before visiting." }, "mapQuery": "KWANGYA@SEOUL", "verify": true },
|
||||
{ "id": "seongsu", "name": { "ko": "성수동 카페·팝업", "en": "Seongsu cafes and pop-ups" }, "category": "kpop", "minLevel": 3, "distanceKm": 5.5, "indoor": false, "area": { "ko": "성수동", "en": "Seongsu" }, "note": { "ko": "브랜드 팝업과 카페가 모인 동네입니다. 주말은 인파가 많습니다.", "en": "Brand pop-ups and cafes. Crowded on weekends." }, "mapQuery": "성수동 팝업", "verify": false },
|
||||
{ "id": "hongdae", "name": { "ko": "홍대", "en": "Hongdae" }, "category": "kpop", "minLevel": 3, "distanceKm": 11, "indoor": false, "area": { "ko": "홍대입구", "en": "Hongik Univ." }, "note": { "ko": "버스킹과 굿즈숍이 있습니다. 왕복 1시간 이상 걸리니 자유 외출 단계에서 가세요.", "en": "Busking and merch shops. Over an hour round trip, so save it for full-day outings." }, "mapQuery": "홍대 걷고싶은거리", "verify": false },
|
||||
{ "id": "kakao-friends-gangnam", "name": { "ko": "카카오프렌즈 강남 플래그십", "en": "Kakao Friends Gangnam Flagship" }, "category": "kpop", "minLevel": 2, "distanceKm": 0.9, "indoor": true, "area": { "ko": "강남역", "en": "Gangnam Station" }, "note": { "ko": "캐릭터 굿즈 매장입니다. 걸어서도 갈 수 있는 거리입니다.", "en": "Character merchandise store, within walking distance." }, "mapQuery": "카카오프렌즈 강남플래그십스토어", "verify": true },
|
||||
{ "id": "bongeunsa", "name": { "ko": "봉은사", "en": "Bongeunsa Temple" }, "category": "sightseeing", "minLevel": 2, "distanceKm": 3.6, "indoor": false, "area": { "ko": "삼성동", "en": "Samseong" }, "note": { "ko": "코엑스 맞은편의 사찰입니다. 경사가 완만해 천천히 걷기 좋습니다.", "en": "Temple across from COEX. Gentle slopes, good for a slow walk." }, "mapQuery": "봉은사", "verify": false },
|
||||
{ "id": "seonjeongneung", "name": { "ko": "선정릉", "en": "Seonjeongneung Royal Tombs" }, "category": "sightseeing", "minLevel": 2, "distanceKm": 2.4, "indoor": false, "area": { "ko": "선릉", "en": "Seolleung" }, "note": { "ko": "유네스코 세계유산 왕릉입니다. 숲길이 그늘져서 햇빛을 피하기 좋습니다.", "en": "UNESCO World Heritage royal tombs. Shaded forest paths." }, "mapQuery": "선정릉", "verify": false },
|
||||
{ "id": "banpo-hangang", "name": { "ko": "반포한강공원·달빛무지개분수", "en": "Banpo Hangang Park and Moonlight Rainbow Fountain" }, "category": "sightseeing", "minLevel": 2, "distanceKm": 2.8, "indoor": false, "area": { "ko": "반포", "en": "Banpo" }, "note": { "ko": "저녁에 분수 공연을 볼 수 있습니다. 운영 기간을 확인하세요.", "en": "Evening fountain show. Check the season schedule." }, "mapQuery": "반포한강공원", "verify": false },
|
||||
{ "id": "gyeongbokgung", "name": { "ko": "경복궁·북촌", "en": "Gyeongbokgung Palace and Bukchon" }, "category": "sightseeing", "minLevel": 3, "distanceKm": 9, "indoor": false, "area": { "ko": "종로", "en": "Jongno" }, "note": { "ko": "택시로 30분 이상 걸립니다. 걷는 시간이 길어 자유 외출 단계에서 가세요.", "en": "Over 30 minutes by taxi and a lot of walking. Save for full-day outings." }, "mapQuery": "경복궁", "verify": false },
|
||||
{ "id": "lotte-tower", "name": { "ko": "롯데월드타워·서울스카이", "en": "Lotte World Tower and Seoul Sky" }, "category": "sightseeing", "minLevel": 3, "distanceKm": 8, "indoor": true, "area": { "ko": "잠실", "en": "Jamsil" }, "note": { "ko": "실내 전망대와 쇼핑몰입니다. 택시로 25분.", "en": "Indoor observatory and mall. 25 minutes by taxi." }, "mapQuery": "롯데월드타워", "verify": false },
|
||||
{ "id": "myeongdong", "name": { "ko": "명동", "en": "Myeongdong" }, "category": "shopping", "minLevel": 3, "distanceKm": 7, "indoor": false, "area": { "ko": "중구", "en": "Jung-gu" }, "note": { "ko": "화장품과 길거리 음식이 많습니다. 인파가 많으니 부딪히지 않게 다니세요.", "en": "Cosmetics and street food. Crowded, so mind bumps." }, "mapQuery": "명동", "verify": false },
|
||||
{ "id": "clinic-aftercare", "name": { "ko": "뷰성형외과 애프터케어", "en": "View Plastic Surgery Aftercare" }, "category": "care", "minLevel": 1, "distanceKm": 0.05, "indoor": true, "area": { "ko": "병원", "en": "Clinic" }, "note": { "ko": "고주파 관리와 경과 확인은 병원 안내에 따라 예약합니다.", "en": "Radiofrequency care and follow-up checks, booked per the clinic's guidance." }, "mapQuery": "뷰성형외과", "verify": false },
|
||||
{ "id": "clinic-dental", "name": { "ko": "뷰성형외과 15층 치과", "en": "View Plastic Surgery Dental Clinic (15F)" }, "category": "care", "minLevel": 1, "distanceKm": 0.05, "indoor": true, "area": { "ko": "병원", "en": "Clinic" }, "note": { "ko": "양악·윤곽 협진 치과입니다. 여유 시간에 검진을 받을 수 있는지 상담에서 물어보세요.", "en": "Dental clinic for jaw and contouring cases. Ask at consultation about a check-up during your stay." }, "mapQuery": "뷰성형외과", "verify": false },
|
||||
{ "id": "hotel-spa-gangnam", "name": { "ko": "호텔 스파·라운지 (숙소 안)", "en": "Hotel spa and lounge (at your hotel)" }, "category": "care", "minLevel": 0, "distanceKm": 0, "indoor": true, "area": { "ko": "숙소", "en": "Your hotel" }, "note": { "ko": "사우나와 마사지는 담당 원장이 허용하기 전에는 피하고 라운지와 룸서비스만 이용하세요.", "en": "Skip sauna and massage until your surgeon allows. Lounge and room service are fine." }, "mapQuery": null, "verify": false },
|
||||
{ "id": "hotel-cappuccino", "name": { "ko": "호텔 카푸치노", "en": "Hotel Cappuccino" }, "category": "hotel", "minLevel": 0, "distanceKm": 0.5, "indoor": true, "area": { "ko": "논현동 봉은사로", "en": "Nonhyeon, Bongeunsa-ro" }, "note": { "ko": "병원과 같은 봉은사로에 있어 걸어서 다닐 수 있습니다.", "en": "On the same road as the clinic, within walking distance." }, "mapQuery": "호텔 카푸치노 논현", "bookingQuery": "Hotel Cappuccino Seoul", "verify": true },
|
||||
{ "id": "novotel-gangnam", "name": { "ko": "노보텔 앰배서더 강남", "en": "Novotel Ambassador Seoul Gangnam" }, "category": "hotel", "minLevel": 0, "distanceKm": 1.0, "indoor": true, "area": { "ko": "역삼동", "en": "Yeoksam" }, "note": { "ko": "강남역 근처 대형 호텔입니다. 룸서비스와 24시간 프런트가 있습니다.", "en": "Large hotel near Gangnam Station with room service and a 24-hour front desk." }, "mapQuery": "노보텔 앰배서더 강남", "bookingQuery": "Novotel Ambassador Seoul Gangnam", "verify": true },
|
||||
{ "id": "l7-gangnam", "name": { "ko": "L7 강남 바이 롯데", "en": "L7 Gangnam by Lotte" }, "category": "hotel", "minLevel": 0, "distanceKm": 1.4, "indoor": true, "area": { "ko": "강남역", "en": "Gangnam Station" }, "note": { "ko": "강남역 인근이며 택시로 5분입니다.", "en": "Near Gangnam Station, 5 minutes by taxi." }, "mapQuery": "L7 강남", "bookingQuery": "L7 Gangnam by Lotte", "verify": true },
|
||||
{ "id": "andaz-gangnam", "name": { "ko": "안다즈 서울 강남", "en": "Andaz Seoul Gangnam" }, "category": "hotel", "minLevel": 0, "distanceKm": 2.6, "indoor": true, "area": { "ko": "압구정 로데오", "en": "Apgujeong Rodeo" }, "note": { "ko": "압구정 로데오에 있는 고급 호텔입니다. 병원까지 택시로 10분.", "en": "Upscale hotel at Apgujeong Rodeo. 10 minutes to the clinic by taxi." }, "mapQuery": "안다즈 서울 강남", "bookingQuery": "Andaz Seoul Gangnam", "verify": true },
|
||||
{ "id": "josun-palace", "name": { "ko": "조선 팰리스 강남", "en": "Josun Palace Seoul Gangnam" }, "category": "hotel", "minLevel": 0, "distanceKm": 1.8, "indoor": true, "area": { "ko": "역삼동", "en": "Yeoksam" }, "note": { "ko": "역삼동의 고급 호텔입니다. 병원까지 택시로 10분.", "en": "Luxury hotel in Yeoksam. 10 minutes to the clinic by taxi." }, "mapQuery": "조선 팰리스 서울 강남", "bookingQuery": "Josun Palace Seoul Gangnam", "verify": true }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,235 @@
|
||||
{
|
||||
"_comment": "회복기 스케줄러 UI 문자열. ko/en 두 언어. 일본어·중국어는 P1에서 같은 키로 추가한다. 고객 화면이므로 운영자 어휘를 쓰지 않는다.",
|
||||
"ko": {
|
||||
"eyebrow": "Recovery Planner",
|
||||
"title": "수술일을 정하셨다면, 여행 일정은 여기서 짜세요.",
|
||||
"lede": "시술과 수술일을 고르면 입국 권장일, 출국 가능 최소일, 회복기 동안 외출할 수 있는 날과 그날 갈 만한 곳을 정리해 드립니다. 계산은 이 화면 안에서만 이루어지고 어디에도 저장되지 않습니다.",
|
||||
"step1": "국적",
|
||||
"step2": "시술과 수술일",
|
||||
"step3": "여유 시간에 하고 싶은 것",
|
||||
"step4": "일정표",
|
||||
"step5": "예약과 저장",
|
||||
"lang": "언어",
|
||||
"nationality": "국적",
|
||||
"procedure": "시술",
|
||||
"surgeryDate": "수술일",
|
||||
"surgeryDateHint": "상담에서 확정한 날짜를 넣으세요. 아직 정하지 않았다면 예상일도 괜찮습니다.",
|
||||
"prefs": "여러 개 고를 수 있습니다",
|
||||
"pref_sightseeing": "관광",
|
||||
"pref_shopping": "쇼핑",
|
||||
"pref_food": "미식",
|
||||
"pref_kpop": "K-pop·핫플",
|
||||
"pref_care": "휴식·케어",
|
||||
"generate": "일정표 만들기",
|
||||
"arriveBy": "입국 권장일",
|
||||
"surgery": "수술일",
|
||||
"hospital": "입원",
|
||||
"hospitalNights": "{n}박",
|
||||
"hospitalNone": "당일 귀가",
|
||||
"stitch": "실밥·부목 제거",
|
||||
"departure": "출국 가능 최소일",
|
||||
"stayNights": "총 체류",
|
||||
"nights": "{n}박",
|
||||
"pending": "확인",
|
||||
"provisional": "병원 확인 전",
|
||||
"clinicSourced": "병원 안내 기준",
|
||||
"departureNote": "출국 가능 최소일은 최소 기준입니다. 담당 원장이 경과를 보고 다르게 안내할 수 있으니 항공권은 변경 가능한 조건으로 예약하세요.",
|
||||
"dayBefore": "수술 {n}일 전",
|
||||
"daySurgery": "수술 당일",
|
||||
"dayAfter": "수술 후 {n}일",
|
||||
"level": "외출",
|
||||
"diet": "식사",
|
||||
"picks": "추천",
|
||||
"noPicks": "이 날은 쉬는 날입니다. 배달과 룸서비스를 이용하세요.",
|
||||
"constraints": "회복기 동안 지킬 것",
|
||||
"visaTitle": "체류 기간 확인",
|
||||
"visaOk": "{country} 국적의 무비자 체류 한도는 {days}일이고 이 일정은 {stay}일입니다. 한도 안에 있습니다.",
|
||||
"visaOver": "{country} 국적의 무비자 체류 한도는 {days}일인데 이 일정은 {stay}일입니다. 비자가 필요할 수 있으니 확인하세요.",
|
||||
"visaRequired": "{country} 국적은 사전 비자가 필요할 수 있습니다. 출발 전 확인하세요.",
|
||||
"visaVerify": "체류 한도는 2026년 9월 기준이며 바뀔 수 있습니다. 대한민국 비자포털에서 확인하세요.",
|
||||
"visaPortal": "대한민국 비자포털",
|
||||
"hotels": "병원 근처 숙소",
|
||||
"hotelHint": "입국 권장일부터 출국 가능 최소일까지 날짜를 넣어 검색합니다. 엘리베이터, 룸서비스, 24시간 프런트가 있는 곳을 골랐습니다.",
|
||||
"hotelSearch": "이 날짜로 검색",
|
||||
"flights": "항공권",
|
||||
"flightHint": "인천공항 도착 기준으로 날짜를 채워 검색합니다. 변경 가능한 요금을 권합니다.",
|
||||
"flightSearch": "구글 항공권에서 보기",
|
||||
"consult": "상담 예약",
|
||||
"consultHint": "아래 일정 요약을 복사해 상담 신청 때 함께 보내면 병원이 회복 일정에 맞춰 안내할 수 있습니다.",
|
||||
"copySummary": "일정 요약 복사",
|
||||
"copied": "복사했습니다",
|
||||
"shareLink": "링크 복사",
|
||||
"ics": "캘린더에 저장",
|
||||
"print": "인쇄",
|
||||
"map": "지도",
|
||||
"readMore": "회복 일정 자세히",
|
||||
"affiliate": "숙소·항공 링크는 각 예약 사이트로 이동하며, 제휴 링크가 적용될 경우 이 매체가 소정의 수수료를 받을 수 있습니다. 예약 조건과 결제는 각 사이트의 안내를 따릅니다.",
|
||||
"medical": "이 일정표는 병원 공개 안내를 바탕으로 한 일반 정보입니다. 본인 수술 범위와 경과에 따라 담당 원장의 지시가 우선합니다.",
|
||||
"km": "{km}km",
|
||||
"walk": "도보",
|
||||
"taxi": "택시",
|
||||
"indoor": "실내",
|
||||
"summaryTitle": "회복 일정 요약",
|
||||
"levelLabel": "외출 단계",
|
||||
"sourceLabel": "근거",
|
||||
"reset": "처음부터",
|
||||
"provisionalNote": "\"병원 확인 전\"으로 표시된 값은 병원 공개 안내에 없어 일반 기준으로 넣은 잠정값입니다. 상담에서 본인 일정으로 확정하세요.",
|
||||
"noRemoval": "제거 방문 없음",
|
||||
"h_hero": "Plan Your Recovery Stay",
|
||||
"h_step1": "Nationality",
|
||||
"h_step2": "Procedure & Surgery Date",
|
||||
"h_step3": "Your Free Time",
|
||||
"h_step4": "Your Schedule",
|
||||
"h_visa": "Length of Stay",
|
||||
"h_rules": "During Recovery",
|
||||
"h_days": "Day by Day",
|
||||
"h_book": "Book & Save",
|
||||
"h_hotels": "Hotels Near the Clinic",
|
||||
"h_flights": "Flights",
|
||||
"h_consult": "Consultation",
|
||||
"h_input": "Build Your Schedule",
|
||||
"sub_input": "세 가지만 고르면 일정표가 바로 나옵니다.",
|
||||
"stat_procs": "시술",
|
||||
"stat_places": "추천 장소",
|
||||
"stat_places_d": "큐레이션과 한국관광공사 TourAPI. {origin} 기준 거리·이동 시간 표시",
|
||||
"stat_hotels": "근처 숙소",
|
||||
"stat_hotels_d": "병원 도보 10분 안, 엘리베이터·룸서비스·24시간 프런트",
|
||||
"stat_privacy": "서버 저장",
|
||||
"stat_privacy_d": "시술과 수술일은 이 화면 안에서만 계산합니다",
|
||||
"sub_schedule": "핵심 날짜 여섯 개입니다. 항공권과 숙소는 이 날짜로 검색합니다.",
|
||||
"sub_days": "날짜마다 외출 단계와 식사 단계, 그날 갈 만한 곳을 표시합니다.",
|
||||
"sub_book": "입국 권장일부터 출국 가능 최소일까지 날짜를 채워 검색합니다.",
|
||||
"sub_rules": "담당 원장 안내가 우선이고, 아래는 병원 공개 안내 기준입니다.",
|
||||
"empty_title": "시술과 수술일을 고르면 여기에 일정표가 나옵니다",
|
||||
"empty_sub": "수술일은 예상일이어도 됩니다.",
|
||||
"stickyView": "일정표 보기",
|
||||
"stickyStay": "{a} → {b} · {n}박",
|
||||
"h_step1_hint": "국적을 고르면 시차와 무비자 체류 한도를 함께 봅니다.",
|
||||
"h_fest": "Festivals During Your Stay",
|
||||
"sub_fest": "체류 기간과 겹치는 행사입니다. 자유 외출 단계가 되는 날부터 갈 수 있습니다.",
|
||||
"fest_none": "체류 기간과 겹치는 행사가 없습니다.",
|
||||
"fest_when": "{a} ~ {b}",
|
||||
"fest_from": "{d}부터 가능",
|
||||
"fest_notYet": "이번 체류에서는 자유 외출 단계에 닿지 않습니다",
|
||||
"source_tour": "장소·행사 데이터: 한국관광공사 TourAPI, {date} 기준. 영업 여부와 행사 일정은 방문 전에 확인하세요.",
|
||||
"tour_badge": "관광공사",
|
||||
"festival_pick": "행사",
|
||||
"readMoreShort": "홈페이지"
|
||||
},
|
||||
"en": {
|
||||
"eyebrow": "Recovery Planner",
|
||||
"title": "Surgery date set? Plan the rest of your trip here.",
|
||||
"lede": "Pick your procedure and surgery date. We work out when to arrive, the earliest you can fly home, which recovery days you can go out, and where to go on those days. Everything is calculated on this page and stored nowhere.",
|
||||
"step1": "",
|
||||
"step2": "",
|
||||
"step3": "",
|
||||
"step4": "",
|
||||
"step5": "",
|
||||
"lang": "Language",
|
||||
"nationality": "Nationality",
|
||||
"procedure": "Procedure",
|
||||
"surgeryDate": "Surgery date",
|
||||
"surgeryDateHint": "Use the date confirmed at consultation. An estimate is fine if it's not set yet.",
|
||||
"prefs": "Choose as many as you like",
|
||||
"pref_sightseeing": "Sightseeing",
|
||||
"pref_shopping": "Shopping",
|
||||
"pref_food": "Food",
|
||||
"pref_kpop": "K-pop & hotspots",
|
||||
"pref_care": "Rest & care",
|
||||
"generate": "Build my schedule",
|
||||
"arriveBy": "Arrive by",
|
||||
"surgery": "Surgery",
|
||||
"hospital": "Hospital stay",
|
||||
"hospitalNights": "{n} night(s)",
|
||||
"hospitalNone": "Same-day discharge",
|
||||
"stitch": "Stitch / splint removal",
|
||||
"departure": "Earliest departure",
|
||||
"stayNights": "Total stay",
|
||||
"nights": "{n} nights",
|
||||
"pending": "To confirm",
|
||||
"provisional": "Provisional",
|
||||
"clinicSourced": "From clinic guidance",
|
||||
"departureNote": "Earliest departure is a minimum. Your surgeon may advise differently after follow-up, so book flights with flexible terms.",
|
||||
"dayBefore": "{n} day(s) before surgery",
|
||||
"daySurgery": "Surgery day",
|
||||
"dayAfter": "Day {n} after surgery",
|
||||
"level": "Outing",
|
||||
"diet": "Diet",
|
||||
"picks": "Suggestions",
|
||||
"noPicks": "A rest day. Use delivery and room service.",
|
||||
"constraints": "During recovery",
|
||||
"visaTitle": "Length of stay check",
|
||||
"visaOk": "Visa-free stay for {country} nationals is {days} days and this plan is {stay} days. You're within the limit.",
|
||||
"visaOver": "Visa-free stay for {country} nationals is {days} days but this plan is {stay} days. You may need a visa, please check.",
|
||||
"visaRequired": "{country} nationals may need a visa in advance. Check before you travel.",
|
||||
"visaVerify": "Stay limits are as of September 2026 and may change. Confirm at the Korea Visa Portal.",
|
||||
"visaPortal": "Korea Visa Portal",
|
||||
"hotels": "Hotels near the clinic",
|
||||
"hotelHint": "Searches with your arrival and earliest-departure dates filled in. We picked places with elevators, room service and a 24-hour front desk.",
|
||||
"hotelSearch": "Search these dates",
|
||||
"flights": "Flights",
|
||||
"flightHint": "Searches with your dates filled in, arriving at Incheon. Flexible fares recommended.",
|
||||
"flightSearch": "Open in Google Flights",
|
||||
"consult": "Book a consultation",
|
||||
"consultHint": "Copy the summary below and send it with your consultation request so the clinic can plan around your recovery dates.",
|
||||
"copySummary": "Copy summary",
|
||||
"copied": "Copied",
|
||||
"shareLink": "Copy link",
|
||||
"ics": "Save to calendar",
|
||||
"print": "Print",
|
||||
"map": "Map",
|
||||
"readMore": "Full recovery timeline",
|
||||
"affiliate": "Hotel and flight links open the booking sites. Where an affiliate link applies, this site may earn a small commission. Booking terms and payment follow each site.",
|
||||
"medical": "This schedule is general information based on the clinic's published guidance. Your surgeon's instructions for your own case take priority.",
|
||||
"km": "{km} km",
|
||||
"walk": "walk",
|
||||
"taxi": "taxi",
|
||||
"indoor": "indoor",
|
||||
"summaryTitle": "Recovery schedule summary",
|
||||
"levelLabel": "Outing level",
|
||||
"sourceLabel": "Source",
|
||||
"reset": "Start over",
|
||||
"provisionalNote": "Values marked \"Provisional\" are not in the clinic's published guidance and use general estimates. Confirm your own dates at consultation.",
|
||||
"noRemoval": "No removal visit",
|
||||
"h_hero": "Plan Your Recovery Stay",
|
||||
"h_step1": "Nationality",
|
||||
"h_step2": "Procedure & Surgery Date",
|
||||
"h_step3": "Your Free Time",
|
||||
"h_step4": "Your Schedule",
|
||||
"h_visa": "Length of Stay",
|
||||
"h_rules": "During Recovery",
|
||||
"h_days": "Day by Day",
|
||||
"h_book": "Book & Save",
|
||||
"h_hotels": "Hotels Near the Clinic",
|
||||
"h_flights": "Flights",
|
||||
"h_consult": "Consultation",
|
||||
"h_input": "Build Your Schedule",
|
||||
"sub_input": "Pick three things and your schedule appears.",
|
||||
"stat_procs": "procedures",
|
||||
"stat_places": "curated places",
|
||||
"stat_places_d": "Curated picks plus Korea Tourism Organization data, with distance and travel time from {origin}",
|
||||
"stat_hotels": "hotels nearby",
|
||||
"stat_hotels_d": "Within a 10-minute walk, with elevators, room service and 24-hour desks",
|
||||
"stat_privacy": "stored on servers",
|
||||
"stat_privacy_d": "Your procedure and dates are calculated on this page only",
|
||||
"sub_schedule": "Six key dates. Flights and hotels are searched with these.",
|
||||
"sub_days": "Each day shows the outing level, diet stage and places worth going.",
|
||||
"sub_book": "Searches are filled with your arrival and earliest-departure dates.",
|
||||
"sub_rules": "Your surgeon's instructions come first. Below is the clinic's published guidance.",
|
||||
"empty_title": "Pick a procedure and a surgery date to see your schedule here",
|
||||
"empty_sub": "An estimated date is fine.",
|
||||
"stickyView": "See schedule",
|
||||
"stickyStay": "{a} → {b} · {n} nights",
|
||||
"h_step1_hint": "Your nationality sets the jet-lag buffer and the visa-free stay check.",
|
||||
"h_fest": "Festivals During Your Stay",
|
||||
"sub_fest": "Events that overlap your stay. You can go from the first full-day-out date.",
|
||||
"fest_none": "No events overlap your stay.",
|
||||
"fest_when": "{a} to {b}",
|
||||
"fest_from": "From {d}",
|
||||
"fest_notYet": "Your stay does not reach the full-day-out stage",
|
||||
"source_tour": "Places and events: Korea Tourism Organization TourAPI, as of {date}. Check opening status and event dates before you go.",
|
||||
"tour_badge": "KTO",
|
||||
"festival_pick": "Event",
|
||||
"readMoreShort": "Website"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,989 @@
|
||||
{
|
||||
"_comment": "회복기 스케줄러 시술별 규칙표 (설계 v0.2 §13.4). 숫자마다 status 가 붙는다. clinic = 병원 공개 주의사항·애프터케어에 있는 값, provisional = 병원 확인 전 잠정값(화면에 배지 표시), null = 값 없음(화면에 '확인'). 병원 확인이 끝나면 status 를 clinic 으로 바꾸고 source 를 채운다.",
|
||||
"clinicSources": [
|
||||
{
|
||||
"id": "precautions",
|
||||
"label": {
|
||||
"ko": "뷰성형외과 홈페이지 · 수술 전·후 주의사항",
|
||||
"en": "View Plastic Surgery · Pre/Post-operative precautions"
|
||||
},
|
||||
"url": "https://www.viewclinic.com/system/precautions/",
|
||||
"accessed": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"id": "aftercare",
|
||||
"label": {
|
||||
"ko": "뷰성형외과 홈페이지 · 애프터케어",
|
||||
"en": "View Plastic Surgery · Aftercare"
|
||||
},
|
||||
"url": "https://www.viewclinic.com/system/after-care/",
|
||||
"accessed": "2026-09-07"
|
||||
}
|
||||
],
|
||||
"levels": [
|
||||
{
|
||||
"level": 0,
|
||||
"label": {
|
||||
"ko": "실내 안정",
|
||||
"en": "Rest indoors"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "병실이나 호텔에서 쉬는 날입니다. 필요한 것은 배달과 룸서비스로 해결합니다.",
|
||||
"en": "Rest at the hospital or hotel. Use delivery and room service."
|
||||
}
|
||||
},
|
||||
{
|
||||
"level": 1,
|
||||
"label": {
|
||||
"ko": "근거리 외출",
|
||||
"en": "Short walks"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "호텔 반경 500m 안에서 짧게 다녀옵니다. 도보 10분 이내.",
|
||||
"en": "Short trips within 500 m of your hotel. Up to a 10-minute walk."
|
||||
}
|
||||
},
|
||||
{
|
||||
"level": 2,
|
||||
"label": {
|
||||
"ko": "반나절 외출",
|
||||
"en": "Half-day outing"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "택시로 반경 3km 안 쇼핑·식사·가벼운 관광이 가능합니다.",
|
||||
"en": "Shopping, dining and light sightseeing within 3 km by taxi."
|
||||
}
|
||||
},
|
||||
{
|
||||
"level": 3,
|
||||
"label": {
|
||||
"ko": "자유 외출",
|
||||
"en": "Full day out"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "하루 단위 외출이 가능합니다. 시내 관광, 행사, 인파가 있는 곳도 담당 원장 안내 안에서 가능합니다.",
|
||||
"en": "Full-day outings. City sightseeing and events, within your surgeon's guidance."
|
||||
}
|
||||
}
|
||||
],
|
||||
"diets": {
|
||||
"liquid": {
|
||||
"label": {
|
||||
"ko": "유동식",
|
||||
"en": "Liquid diet"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "건더기 없는 유동식만 드십니다.",
|
||||
"en": "Liquids only, no solids."
|
||||
}
|
||||
},
|
||||
"soft": {
|
||||
"label": {
|
||||
"ko": "부드러운 음식",
|
||||
"en": "Soft foods"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "건더기가 있어도 부드러운 음식까지 가능합니다.",
|
||||
"en": "Soft foods are fine. Avoid anything chewy or hard."
|
||||
}
|
||||
},
|
||||
"mild": {
|
||||
"label": {
|
||||
"ko": "자극 없는 일반식",
|
||||
"en": "Regular, non-spicy"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "맵고 짜거나 딱딱한 음식은 피합니다.",
|
||||
"en": "Regular meals. Avoid spicy, salty or hard foods."
|
||||
}
|
||||
},
|
||||
"normal": {
|
||||
"label": {
|
||||
"ko": "일반식",
|
||||
"en": "Regular diet"
|
||||
},
|
||||
"desc": {
|
||||
"ko": "식사 제한이 없습니다.",
|
||||
"en": "No dietary restrictions."
|
||||
}
|
||||
}
|
||||
},
|
||||
"constraints": {
|
||||
"no-heavy-lifting": {
|
||||
"ko": "무거운 짐과 팔을 많이 쓰는 동작을 피합니다. 쇼핑은 배송 서비스를 이용하세요.",
|
||||
"en": "Avoid heavy bags and arm-heavy movement. Use delivery for shopping."
|
||||
},
|
||||
"sports-bra": {
|
||||
"ko": "스포츠브라를 1~3개월 유지합니다.",
|
||||
"en": "Wear a sports bra for 1 to 3 months."
|
||||
},
|
||||
"no-alcohol-30d": {
|
||||
"ko": "음주와 흡연은 최소 1개월 이후입니다.",
|
||||
"en": "No alcohol or smoking for at least 1 month."
|
||||
},
|
||||
"no-sauna-60d": {
|
||||
"ko": "사우나, 찜질방, 수영, 과한 운동은 약 2개월 후입니다.",
|
||||
"en": "No sauna, spa, swimming or intense exercise for about 2 months."
|
||||
},
|
||||
"compression-band": {
|
||||
"ko": "압박밴드를 2~4주 착용합니다. 취침 시에는 하지 않습니다.",
|
||||
"en": "Wear the compression band for 2 to 4 weeks, not while sleeping."
|
||||
},
|
||||
"sleep-elevated": {
|
||||
"ko": "머리를 심장보다 높게 하고 정면 자세로 잡니다. 1주 후부터 옆으로 누워도 됩니다.",
|
||||
"en": "Sleep with your head above heart level, facing up. Side sleeping from week 2."
|
||||
},
|
||||
"saline-gargle": {
|
||||
"ko": "약 1개월간 생리식염수 가글을 꾸준히 합니다.",
|
||||
"en": "Rinse with saline regularly for about 1 month."
|
||||
},
|
||||
"no-hard-food-30d": {
|
||||
"ko": "질기고 딱딱한 음식은 한 달간 피합니다.",
|
||||
"en": "Avoid chewy or hard food for 1 month."
|
||||
},
|
||||
"no-sun": {
|
||||
"ko": "직사광선을 피합니다. 모자와 선글라스를 챙기세요.",
|
||||
"en": "Avoid direct sun. Bring a hat and sunglasses."
|
||||
},
|
||||
"mask": {
|
||||
"ko": "외출 시 마스크를 쓰면 부기와 멍이 덜 보입니다.",
|
||||
"en": "A mask helps cover swelling and bruising when out."
|
||||
},
|
||||
"no-glasses": {
|
||||
"ko": "안경 착용을 피합니다. 콘택트렌즈나 안경 없이 다닐 계획을 세우세요.",
|
||||
"en": "Avoid glasses resting on your nose. Plan for contacts or going without."
|
||||
},
|
||||
"no-lens": {
|
||||
"ko": "콘택트렌즈는 담당 원장이 허용할 때까지 쓰지 않습니다.",
|
||||
"en": "No contact lenses until your surgeon allows."
|
||||
},
|
||||
"cold-compress": {
|
||||
"ko": "초기에는 냉찜질, 이후 온찜질을 합니다.",
|
||||
"en": "Cold compresses at first, then warm."
|
||||
},
|
||||
"no-nose-blow": {
|
||||
"ko": "코를 세게 풀거나 코 부위에 압력을 주지 않습니다.",
|
||||
"en": "Do not blow your nose or press on the nose area."
|
||||
},
|
||||
"no-massage": {
|
||||
"ko": "수술 부위 마사지와 강한 압박을 피합니다.",
|
||||
"en": "No massage or firm pressure on the surgical area."
|
||||
},
|
||||
"no-hat-pressure": {
|
||||
"ko": "이식 부위를 누르는 모자나 헬멧을 피합니다.",
|
||||
"en": "Avoid hats or helmets that press on the graft area."
|
||||
},
|
||||
"no-scratch": {
|
||||
"ko": "가려워도 긁지 않습니다.",
|
||||
"en": "Do not scratch, even if itchy."
|
||||
},
|
||||
"driving": {
|
||||
"ko": "수술 당일은 운전할 수 없습니다. 보호자 동반을 권합니다.",
|
||||
"en": "No driving on surgery day. A companion is recommended."
|
||||
}
|
||||
},
|
||||
"procedures": [
|
||||
{
|
||||
"id": "breast",
|
||||
"label": {
|
||||
"ko": "가슴성형",
|
||||
"en": "Breast Augmentation"
|
||||
},
|
||||
"group": {
|
||||
"ko": "가슴",
|
||||
"en": "Breast"
|
||||
},
|
||||
"readMore": "/posts/breast-recovery-timeline",
|
||||
"preOpDays": {
|
||||
"value": 2,
|
||||
"status": "provisional",
|
||||
"note": {
|
||||
"ko": "검진과 상담 1일, 여유 1일",
|
||||
"en": "1 day for tests and consultation, 1 buffer day"
|
||||
}
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": 7,
|
||||
"range": [
|
||||
5,
|
||||
10
|
||||
],
|
||||
"status": "clinic",
|
||||
"source": "precautions",
|
||||
"note": {
|
||||
"ko": "실밥이 있으면 약 1주에 제거. 피부 접착제를 쓴 경우 실밥 없음",
|
||||
"en": "Stitches, if any, removed at about 1 week. No stitches if skin adhesive was used"
|
||||
}
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 10,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 0,
|
||||
"status": "clinic",
|
||||
"source": "precautions",
|
||||
"note": {
|
||||
"ko": "부기는 2~3일째 가장 심합니다",
|
||||
"en": "Swelling peaks on days 2 to 3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"fromDay": 3,
|
||||
"level": 1,
|
||||
"status": "clinic",
|
||||
"source": "precautions",
|
||||
"note": {
|
||||
"ko": "3일 이후 붕대를 뗍니다",
|
||||
"en": "Bandage removed after day 3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"fromDay": 7,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 14,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "normal",
|
||||
"status": "clinic",
|
||||
"source": "precautions"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"driving",
|
||||
"no-heavy-lifting",
|
||||
"sports-bra",
|
||||
"no-alcohol-30d",
|
||||
"no-sauna-60d"
|
||||
],
|
||||
"sources": [
|
||||
"precautions",
|
||||
"aftercare"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "contour",
|
||||
"label": {
|
||||
"ko": "안면윤곽·양악",
|
||||
"en": "Facial Contouring / Jaw Surgery"
|
||||
},
|
||||
"group": {
|
||||
"ko": "얼굴뼈",
|
||||
"en": "Facial bone"
|
||||
},
|
||||
"readMore": "/posts/contour-recovery",
|
||||
"preOpDays": {
|
||||
"value": 2,
|
||||
"status": "provisional",
|
||||
"note": {
|
||||
"ko": "3D-CT 촬영과 검진, 상담",
|
||||
"en": "3D-CT, tests and consultation"
|
||||
}
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": null,
|
||||
"status": "clinic",
|
||||
"source": "precautions",
|
||||
"note": {
|
||||
"ko": "입안 실은 녹는 실이라 보통 한 달 후 저절로 없어집니다. 별도 제거 방문 없음",
|
||||
"en": "Intraoral stitches dissolve on their own in about a month. No removal visit"
|
||||
},
|
||||
"display": {
|
||||
"ko": "제거 방문 없음",
|
||||
"en": "No removal visit"
|
||||
}
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 14,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 0,
|
||||
"status": "clinic",
|
||||
"source": "precautions",
|
||||
"note": {
|
||||
"ko": "부기는 3~4일까지 늘다가 가라앉습니다",
|
||||
"en": "Swelling increases until day 3 to 4, then subsides"
|
||||
}
|
||||
},
|
||||
{
|
||||
"fromDay": 5,
|
||||
"level": 1,
|
||||
"status": "clinic",
|
||||
"source": "precautions",
|
||||
"note": {
|
||||
"ko": "5~7일 후 일상생활이 가능합니다",
|
||||
"en": "Daily activities possible after day 5 to 7"
|
||||
}
|
||||
},
|
||||
{
|
||||
"fromDay": 10,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 21,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "liquid",
|
||||
"status": "clinic",
|
||||
"source": "precautions"
|
||||
},
|
||||
{
|
||||
"fromDay": 7,
|
||||
"type": "soft",
|
||||
"status": "clinic",
|
||||
"source": "precautions"
|
||||
},
|
||||
{
|
||||
"fromDay": 14,
|
||||
"type": "mild",
|
||||
"status": "clinic",
|
||||
"source": "precautions"
|
||||
},
|
||||
{
|
||||
"fromDay": 30,
|
||||
"type": "normal",
|
||||
"status": "clinic",
|
||||
"source": "precautions"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"driving",
|
||||
"compression-band",
|
||||
"sleep-elevated",
|
||||
"saline-gargle",
|
||||
"no-hard-food-30d",
|
||||
"no-alcohol-30d",
|
||||
"no-sauna-60d",
|
||||
"no-massage"
|
||||
],
|
||||
"sources": [
|
||||
"precautions",
|
||||
"aftercare"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "eye",
|
||||
"label": {
|
||||
"ko": "눈성형",
|
||||
"en": "Eyelid Surgery"
|
||||
},
|
||||
"group": {
|
||||
"ko": "눈",
|
||||
"en": "Eyes"
|
||||
},
|
||||
"readMore": "/posts/eye-canthoplasty-types",
|
||||
"preOpDays": {
|
||||
"value": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": 6,
|
||||
"range": [
|
||||
5,
|
||||
7
|
||||
],
|
||||
"status": "provisional"
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 7,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 2,
|
||||
"level": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 5,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 10,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "normal",
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"driving",
|
||||
"cold-compress",
|
||||
"no-sun",
|
||||
"no-lens",
|
||||
"no-scratch",
|
||||
"no-alcohol-30d"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"id": "nose",
|
||||
"label": {
|
||||
"ko": "코성형",
|
||||
"en": "Rhinoplasty"
|
||||
},
|
||||
"group": {
|
||||
"ko": "코",
|
||||
"en": "Nose"
|
||||
},
|
||||
"readMore": "/posts/functional-rhinoplasty-ent",
|
||||
"preOpDays": {
|
||||
"value": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": 7,
|
||||
"range": [
|
||||
5,
|
||||
7
|
||||
],
|
||||
"status": "provisional",
|
||||
"note": {
|
||||
"ko": "부목과 실밥 제거",
|
||||
"en": "Splint and stitch removal"
|
||||
}
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 10,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 3,
|
||||
"level": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 7,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 14,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "mild",
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 14,
|
||||
"type": "normal",
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"driving",
|
||||
"mask",
|
||||
"no-glasses",
|
||||
"no-nose-blow",
|
||||
"no-sun",
|
||||
"no-alcohol-30d",
|
||||
"no-sauna-60d"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"id": "fat",
|
||||
"label": {
|
||||
"ko": "지방성형",
|
||||
"en": "Liposuction / Fat Grafting"
|
||||
},
|
||||
"group": {
|
||||
"ko": "지방",
|
||||
"en": "Fat"
|
||||
},
|
||||
"readMore": null,
|
||||
"preOpDays": {
|
||||
"value": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": 7,
|
||||
"status": "provisional"
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 7,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 2,
|
||||
"level": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 5,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 14,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "normal",
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"driving",
|
||||
"compression-band",
|
||||
"no-massage",
|
||||
"no-alcohol-30d",
|
||||
"no-sauna-60d"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"id": "lifting",
|
||||
"label": {
|
||||
"ko": "안티에이징·리프팅",
|
||||
"en": "Anti-aging / Face Lift"
|
||||
},
|
||||
"group": {
|
||||
"ko": "리프팅",
|
||||
"en": "Lifting"
|
||||
},
|
||||
"readMore": "/posts/thread-lift-vs-facelift",
|
||||
"preOpDays": {
|
||||
"value": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": 7,
|
||||
"status": "provisional"
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 10,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 3,
|
||||
"level": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 7,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 14,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "soft",
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 7,
|
||||
"type": "normal",
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"driving",
|
||||
"mask",
|
||||
"no-massage",
|
||||
"no-sun",
|
||||
"no-alcohol-30d",
|
||||
"no-sauna-60d"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"id": "skin",
|
||||
"label": {
|
||||
"ko": "피부과 시술",
|
||||
"en": "Dermatology Treatment"
|
||||
},
|
||||
"group": {
|
||||
"ko": "피부",
|
||||
"en": "Skin"
|
||||
},
|
||||
"readMore": null,
|
||||
"preOpDays": {
|
||||
"value": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": null,
|
||||
"status": "provisional",
|
||||
"note": {
|
||||
"ko": "실밥 없음",
|
||||
"en": "No stitches"
|
||||
},
|
||||
"display": {
|
||||
"ko": "제거 방문 없음",
|
||||
"en": "No removal visit"
|
||||
}
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 1,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 3,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "normal",
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"no-sun",
|
||||
"no-sauna-60d"
|
||||
],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"id": "hair",
|
||||
"label": {
|
||||
"ko": "모발이식",
|
||||
"en": "Hair Transplant"
|
||||
},
|
||||
"group": {
|
||||
"ko": "모발",
|
||||
"en": "Hair"
|
||||
},
|
||||
"readMore": null,
|
||||
"preOpDays": {
|
||||
"value": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
"hospitalNights": {
|
||||
"value": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
"stitchRemovalDay": {
|
||||
"value": null,
|
||||
"status": "provisional",
|
||||
"note": {
|
||||
"ko": "채취 방식에 따라 다릅니다",
|
||||
"en": "Depends on the harvesting method"
|
||||
}
|
||||
},
|
||||
"earliestDepartureDay": {
|
||||
"value": 3,
|
||||
"status": "provisional"
|
||||
},
|
||||
"outingLevels": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"level": 0,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 1,
|
||||
"level": 1,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 3,
|
||||
"level": 2,
|
||||
"status": "provisional"
|
||||
},
|
||||
{
|
||||
"fromDay": 7,
|
||||
"level": 3,
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"diet": [
|
||||
{
|
||||
"fromDay": 0,
|
||||
"type": "normal",
|
||||
"status": "provisional"
|
||||
}
|
||||
],
|
||||
"constraints": [
|
||||
"no-sun",
|
||||
"no-hat-pressure",
|
||||
"no-scratch",
|
||||
"no-alcohol-30d",
|
||||
"no-sauna-60d"
|
||||
],
|
||||
"sources": []
|
||||
}
|
||||
],
|
||||
"nationalities": {
|
||||
"_comment": "무비자 체류 한도(일). 2026-09 기준 확인 필요. null 은 사전 비자 필요. 화면은 항상 대한민국 비자포털 링크와 함께 보여준다.",
|
||||
"portal": "https://www.visa.go.kr",
|
||||
"list": [
|
||||
{
|
||||
"code": "US",
|
||||
"label": {
|
||||
"ko": "미국",
|
||||
"en": "United States"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": true
|
||||
},
|
||||
{
|
||||
"code": "CA",
|
||||
"label": {
|
||||
"ko": "캐나다",
|
||||
"en": "Canada"
|
||||
},
|
||||
"visaFreeDays": 180,
|
||||
"longHaul": true
|
||||
},
|
||||
{
|
||||
"code": "GB",
|
||||
"label": {
|
||||
"ko": "영국",
|
||||
"en": "United Kingdom"
|
||||
},
|
||||
"visaFreeDays": 180,
|
||||
"longHaul": true
|
||||
},
|
||||
{
|
||||
"code": "AU",
|
||||
"label": {
|
||||
"ko": "호주",
|
||||
"en": "Australia"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": true
|
||||
},
|
||||
{
|
||||
"code": "JP",
|
||||
"label": {
|
||||
"ko": "일본",
|
||||
"en": "Japan"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "TW",
|
||||
"label": {
|
||||
"ko": "대만",
|
||||
"en": "Taiwan"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "HK",
|
||||
"label": {
|
||||
"ko": "홍콩",
|
||||
"en": "Hong Kong"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "SG",
|
||||
"label": {
|
||||
"ko": "싱가포르",
|
||||
"en": "Singapore"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "TH",
|
||||
"label": {
|
||||
"ko": "태국",
|
||||
"en": "Thailand"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "MY",
|
||||
"label": {
|
||||
"ko": "말레이시아",
|
||||
"en": "Malaysia"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "AE",
|
||||
"label": {
|
||||
"ko": "아랍에미리트",
|
||||
"en": "United Arab Emirates"
|
||||
},
|
||||
"visaFreeDays": 90,
|
||||
"longHaul": true
|
||||
},
|
||||
{
|
||||
"code": "RU",
|
||||
"label": {
|
||||
"ko": "러시아",
|
||||
"en": "Russia"
|
||||
},
|
||||
"visaFreeDays": 60,
|
||||
"longHaul": true
|
||||
},
|
||||
{
|
||||
"code": "KZ",
|
||||
"label": {
|
||||
"ko": "카자흐스탄",
|
||||
"en": "Kazakhstan"
|
||||
},
|
||||
"visaFreeDays": 30,
|
||||
"longHaul": true
|
||||
},
|
||||
{
|
||||
"code": "CN",
|
||||
"label": {
|
||||
"ko": "중국",
|
||||
"en": "China"
|
||||
},
|
||||
"visaFreeDays": null,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "VN",
|
||||
"label": {
|
||||
"ko": "베트남",
|
||||
"en": "Vietnam"
|
||||
},
|
||||
"visaFreeDays": null,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "ID",
|
||||
"label": {
|
||||
"ko": "인도네시아",
|
||||
"en": "Indonesia"
|
||||
},
|
||||
"visaFreeDays": null,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "PH",
|
||||
"label": {
|
||||
"ko": "필리핀",
|
||||
"en": "Philippines"
|
||||
},
|
||||
"visaFreeDays": null,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "MN",
|
||||
"label": {
|
||||
"ko": "몽골",
|
||||
"en": "Mongolia"
|
||||
},
|
||||
"visaFreeDays": null,
|
||||
"longHaul": false
|
||||
},
|
||||
{
|
||||
"code": "OTHER",
|
||||
"label": {
|
||||
"ko": "그 외",
|
||||
"en": "Other"
|
||||
},
|
||||
"visaFreeDays": null,
|
||||
"longHaul": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
{
|
||||
"clinic": "viewclinic",
|
||||
"generatedAt": "2026-09-11",
|
||||
"sourceNote": "병원 홈페이지 시술 페이지 원문",
|
||||
"items": [
|
||||
{
|
||||
"procedure": "수술 전·후 주의사항",
|
||||
"procedureEn": "Pre- and Post-Operative Precautions",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/system/precautions/",
|
||||
"ko": [
|
||||
"수술 당일 콘택트렌즈, 귀금속, 액세서리, 매니큐어, 화장 등은 미리 제거해 주시기 바랍니다.",
|
||||
"수술 후 2~3일째 가장 부기가 많고 3일 이후 붕대 제거가 가능합니다.",
|
||||
"전체적인 부기는 1개월 정도 지나면서 자연스러워지고 잔 붓기는 6개월까지 좋아집니다.",
|
||||
"절개 부위에 더마본드 사용 시 2주 후부터 샤워 가능합니다.",
|
||||
"절개 부위에 실밥이 있는 경우, 실밥 제거 후 다음날부터 가벼운 샤워 가능합니다.",
|
||||
"6개월 이후 흉터 레이저 관리 가능합니다.",
|
||||
"수술 후 스포츠브라는 1~3개월 유지하고, 3개월 후 일반 속옷 착용이 가능합니다.",
|
||||
"수술 후 음주 및 흡연은 최소 1개월 이후 가능합니다.",
|
||||
"찜질방, 사우나, 수영장, 과도한 운동은 약 2개월 후 가능합니다.",
|
||||
"재수술 후 운동은 3개월 이후 권장합니다.",
|
||||
"수술 후 회복 및 경과는 개인에 따라 차이가 있을 수 있으며 염증, 출혈, 신경 손상 등의 부작용이 생길 수 있으므로 주의가 필요합니다.",
|
||||
"수술 후 3~4일까지는 부기가 증가하고 이후부터 가라앉으며 5~7일 후 일상생활이 가능합니다.",
|
||||
"3일 후부터 머리를 감을 수 있으며, 간단한 샤워는 가능하나 목욕은 삼갑니다.",
|
||||
"턱 테이프 제거 후 다음 날부터 가벼운 거품 세안, 피부 화장이 가능합니다.",
|
||||
"수술 후 1주가 지나면 어린이용 작은 칫솔모로 가볍게 양치 가능하고, 음식물 섭취 후 항상 가글을 잘 해주세요.",
|
||||
"수술 후 3일 정도는 냉찜질, 그 후에는 온찜질로 부기를 예방할 수 있습니다.",
|
||||
"바깥쪽 실밥 제거 후 1주일은 더 상처연고로 관리해 주시고, 이후 흉터연고로 관리해주세요.",
|
||||
"찜질방, 사우나, 수영장, 과도한 운동, 마사지는 약 1~2개월 후 가능합니다.",
|
||||
"수술 후 3~4일까지는 부기가 증가하고 이후부터 부기가 가라앉으며 5~7일 후 일상생활이 가능합니다.",
|
||||
"수술 후 1달 정도가 되면 부기의 80%가 빠지게 되며 이후부터는 점점 자연스러워집니다.",
|
||||
"수술 후 3일 동안은 냉찜질, 그 후에는 온찜질로 부기를 예방할 수 있습니다.",
|
||||
"수술 후 7일째부터 입술 운동(A/E/I/O/U), 웃는 연습(입꼬리 위치가 같게) 꾸준히 해주시기 바랍니다.",
|
||||
"수술 후 2~3일은 멍이나 부기가 증가할 수 있으며 개인차가 있습니다.",
|
||||
"수술 후 1~2주 정도 큰 부기가 있고 눈 주위 멍이나 큰 부기는 한 달 정도 지나면서 자연스러워지며 잔 붓기는 6개월 사이에 점차 감소합니다.",
|
||||
"수술 후 3일간은 냉찜질을 해주시기 바랍니다.",
|
||||
"눈썹거상 눈썹 문신은 6개월 이후에 가능합니다.",
|
||||
"눈밑지방재배치 초반에 눈 밑이 볼록하고 단단하게 느껴질 수 있으나 평균 1개월정도 부기가 흡수되면서 볼록한게 감소하고 단단한 것도 풀어지며 자연스러워집니다.",
|
||||
"실밥을 제거했어도 절개 부위가 약하기 때문에 눈을 비비고 만지는 행동, 눈에 자극을 주는 행동은 1개월까지 삼가주세요.",
|
||||
"실밥 제거 후 다음날부터 가벼운 거품 세안, 연한 피부 화장이 가능합니다.",
|
||||
"수술 후 3일간은 냉찜질을 해주시기 바랍니다.(코 주변, 이마 쪽으로 찜질해 주시기 바랍니다.)",
|
||||
"실밥 제거 후 다음날부터 가벼운 거품 세안, 피부 화장 가능합니다.",
|
||||
"붙이는 코팩 또는 스크럽 제품 사용은 1개월 이후 가능합니다.",
|
||||
"부위에 따라 멍이 1~3주 지속될 수 있으며, 부기는 3~4주 정도면 70%~80% 이상 감소하게 됩니다.",
|
||||
"1개월 이후 전체적인 부기가 빠지고 압박복이 늘어나게 되면 압박복은 수선 후 착용해 주시는 것이 좋습니다.",
|
||||
"수술 후 2주 후부터 식이조절 및 가벼운 운동을 병행해 주시면 체중조절 및 회복에 도움이 됩니다.",
|
||||
"실밥 제거 후 다음날부터 가벼운 거품 세안, 샤워가 가능합니다.",
|
||||
"부기가 빠지고 지방이 생착 되는 기간은 1개월 정도 소요됩니다.",
|
||||
"지방이 생착 되는 기간 동안에는 외부의 압력으로 인해 눌리거나 충격이 가해지는 행동을 주의해주세요.",
|
||||
"1개월 이후 원장님 경과 체크를 진행하며, 필요시 부족한 부위에 2차 지방이식이 가능합니다.",
|
||||
"실밥 제거 후 다음날부터 가벼운 거품 세안, 샴푸, 화장이 가능합니다."
|
||||
],
|
||||
"en": [
|
||||
"On the day of surgery, please remove contact lenses, jewelry, accessories, nail polish, and makeup in advance.",
|
||||
"Swelling is greatest on the 2nd to 3rd day after surgery, and bandages can be removed after the 3rd day.",
|
||||
"Overall swelling naturally improves after about 1 month, and residual swelling improves up to 6 months.",
|
||||
"If Dermabond is used on the incision site, showering is possible from 2 weeks after surgery.",
|
||||
"If there are stitches on the incision site, light showering is possible from the day after stitch removal.",
|
||||
"Scar laser treatment is possible after 6 months.",
|
||||
"Wear a sports bra for 1 to 3 months after surgery, and normal underwear is allowed after 3 months.",
|
||||
"Drinking alcohol and smoking are allowed at least 1 month after surgery.",
|
||||
"Saunas, jjimjilbangs, swimming pools, and excessive exercise are allowed about 2 months after surgery.",
|
||||
"Exercise after revision surgery is recommended after 3 months.",
|
||||
"Recovery and progress after surgery may vary by individual, and complications such as inflammation, bleeding, and nerve damage may occur, so caution is required.",
|
||||
"Swelling increases for 3 to 4 days after surgery, then subsides, and daily activities are possible after 5 to 7 days.",
|
||||
"You can wash your hair from 3 days after surgery; simple showers are allowed but baths are not.",
|
||||
"After removing chin tape, light foam cleansing and skin makeup are possible from the next day.",
|
||||
"After 1 week post-surgery, you can gently brush your teeth with a small children's toothbrush, and always gargle well after eating.",
|
||||
"Cold compresses are recommended for about 3 days after surgery, then warm compresses can help prevent swelling.",
|
||||
"Manage the outer stitches with wound ointment for 1 week after removal, then use scar ointment afterward.",
|
||||
"Saunas, jjimjilbangs, swimming pools, excessive exercise, and massages are allowed about 1 to 2 months after surgery.",
|
||||
"Swelling increases for 3 to 4 days after surgery, then subsides, and daily activities are possible after 5 to 7 days.",
|
||||
"About 80% of swelling reduces after 1 month post-surgery, and the appearance gradually becomes natural.",
|
||||
"Cold compresses are recommended for 3 days after surgery, then warm compresses can help prevent swelling.",
|
||||
"From the 7th day after surgery, consistently practice lip exercises (A/E/I/O/U) and smiling exercises (keep the corners of the mouth aligned).",
|
||||
"Bruising or swelling may increase for 2 to 3 days after surgery, with individual differences.",
|
||||
"",
|
||||
"Apply cold compresses for 3 days after surgery.",
|
||||
"Eyebrow lift and eyebrow tattooing are possible after 6 months.",
|
||||
"After lower eyelid fat repositioning, the under-eye area may feel bulging and firm initially, but swelling reduces and firmness softens over about 1 month, becoming natural.",
|
||||
"Even after stitch removal, avoid rubbing or touching the eyes and any actions that irritate the eyes for 1 month because the incision area is weak.",
|
||||
"Light foam cleansing and light skin makeup are possible from the day after stitch removal.",
|
||||
"Apply cold compresses for 3 days after surgery, focusing on the nose area and forehead.",
|
||||
"Light foam cleansing and skin makeup are possible from the day after stitch removal.",
|
||||
"Use of adhesive nose packs or scrub products is allowed after 1 month.",
|
||||
"Bruising may last 1 to 3 weeks depending on the area, and swelling reduces by 70% to 80% after about 3 to 4 weeks.",
|
||||
"After 1 month, overall swelling decreases and compression garments may loosen; it is recommended to have the compression garment altered and wear it again.",
|
||||
"From 2 weeks after surgery, dietary control and light exercise help with weight management and recovery.",
|
||||
"Light foam cleansing and showering are possible from the day after stitch removal.",
|
||||
"It takes about 1 month for swelling to subside and fat to stabilize.",
|
||||
"During the fat stabilization period, avoid pressure or impact on the area.",
|
||||
"",
|
||||
"Light foam cleansing, shampooing, and makeup are possible from the day after stitch removal."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "눈밑지방재배치",
|
||||
"procedureEn": "Lower Eyelid Fat Repositioning",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/eye/under-eye-fat-relocation/",
|
||||
"ko": [
|
||||
"회복기간 바로 일상생활 가능",
|
||||
"수술 후 약 1주일 정도는 눈을 심하게 비비는 등의 행동은 피하는 것이 좋습니다."
|
||||
],
|
||||
"en": [
|
||||
"You can resume daily activities immediately during the recovery period.",
|
||||
"For about 1 week after surgery, avoid actions such as rubbing your eyes vigorously."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "무턱",
|
||||
"procedureEn": "Receding Chin",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/jaw/type-jaw/short-chin/",
|
||||
"ko": [
|
||||
"평균적으로 수술 후 3~4주가 지난 후 출근 등 큰 체력이 소모되지 않는 일상생활은 가능합니다.",
|
||||
"수술이 끝난 후, 8~12시간 가량 경과 후 간단한 실내 움직임은 가능해지며 수술 후 2주 정도까지는 경과체크를 하며 상처 및 부종 등을 관리하시게 됩니다."
|
||||
],
|
||||
"en": [
|
||||
"On average, after 3 to 4 weeks post-surgery, you can return to work and other daily activities that do not require heavy physical exertion.",
|
||||
"After surgery, simple indoor movements are possible about 8 to 12 hours later, and until about 2 weeks after surgery, you will have follow-up checks to manage wounds and swelling."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "뷰 복부거상술",
|
||||
"procedureEn": "View Abdominal Lift",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/lipo/tummy-tuck/",
|
||||
"ko": [
|
||||
"일상 복귀는 1~2주, 조직 회복은 4~6주 정도 소요됩니다.",
|
||||
"일정 기간 보정속옷 착용, 운동 제한 등이 필요합니다."
|
||||
],
|
||||
"en": [
|
||||
"Returning to daily life takes 1 to 2 weeks, and tissue recovery takes about 4 to 6 weeks.",
|
||||
"Wearing compression garments and exercise restrictions are necessary for a certain period."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "뷰 줄기세포",
|
||||
"procedureEn": "View Stem Cell",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/view_stemcell/",
|
||||
"ko": [
|
||||
"시술 직후 일상생활이 가능하며, 특별한 회복 기간을 필요로 하지 않습니다.",
|
||||
"다만 무리한 운동은 1~2일 정도 피하는 것이 좋습니다."
|
||||
],
|
||||
"en": [
|
||||
"You can perform daily activities immediately after the procedure, and no special recovery period is required.",
|
||||
"However, it is recommended to avoid strenuous exercise for about 1 to 2 days."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "남성여유증, 여성형유방",
|
||||
"procedureEn": "Gynecomastia",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/view-male/gynecomastia/",
|
||||
"ko": [
|
||||
"수술 후 부기 완화, 염증 관리에 도움되는 APL 관리를 진행합니다."
|
||||
],
|
||||
"en": [
|
||||
"APL treatment is performed to help reduce swelling and manage inflammation after surgery."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "모발이식",
|
||||
"procedureEn": "Hair Transplant",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/hair-transplant/",
|
||||
"ko": [
|
||||
"이식모가 생착 되기까지 약 3주가 소요되며, 수술 후 10~15일까지는 이식부위에 딱지가 조금씩 떨어지게 됩니다."
|
||||
],
|
||||
"en": [
|
||||
"It takes about 3 weeks for transplanted hair to take root, and scabs on the transplant area will gradually fall off by 10 to 15 days after surgery."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "프로모션2_가슴",
|
||||
"procedureEn": "Promotion 2_Breast",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/ldpg-2/",
|
||||
"ko": [
|
||||
"수술 후 발생할 수 있는 합병증인 출혈, 감염, 염증 등은 개인에 따라 차이가 있을 수 있으므로 주의해야 합니다."
|
||||
],
|
||||
"en": [
|
||||
"Complications such as bleeding, infection, and inflammation may occur after surgery and vary by individual, so caution is necessary."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
},
|
||||
{
|
||||
"procedure": "UIU 가슴성형",
|
||||
"procedureEn": "UIU Breast Augmentation",
|
||||
"area": "",
|
||||
"url": "https://www.viewclinic.com/breast/main/",
|
||||
"ko": [
|
||||
"수술 후 통증을 줄이고 빠른 회복 가능"
|
||||
],
|
||||
"en": [
|
||||
"Pain after surgery can be reduced and rapid recovery is possible."
|
||||
],
|
||||
"ocr": false,
|
||||
"fetchedAt": "2026-09-07"
|
||||
}
|
||||
],
|
||||
"counts": {
|
||||
"pagesScanned": 110,
|
||||
"pagesWithNotes": 9,
|
||||
"pages": 9,
|
||||
"sentences": 52,
|
||||
"translated": 59,
|
||||
"cacheHits": 26,
|
||||
"enFailed": 2,
|
||||
"costUsd": 0.0023,
|
||||
"dropped": {
|
||||
"time": 7923,
|
||||
"length": 3895,
|
||||
"action": 490,
|
||||
"preop": 7,
|
||||
"dup": 28,
|
||||
"contact": 1,
|
||||
"promo": 66,
|
||||
"unfinished": 49,
|
||||
"fragment": 39,
|
||||
"table": 3,
|
||||
"broken": 3
|
||||
}
|
||||
},
|
||||
"enFailed": [
|
||||
{
|
||||
"ko": "수술 후 1~2주 정도 큰 부기가 있고 눈 주위 멍이나 큰 부기는 한 달 정도 지나면서 자연스러워지며 잔 붓기는 6개월 사이에 점차 감소합니다.",
|
||||
"en": "Significant swelling lasts about 1 to 2 weeks after surgery; bruising and major swelling around the eyes improve naturally after about 1 month, and residual swelling gradually decreases within 6 months.",
|
||||
"why": "numbers"
|
||||
},
|
||||
{
|
||||
"ko": "1개월 이후 원장님 경과 체크를 진행하며, 필요시 부족한 부위에 2차 지방이식이 가능합니다.",
|
||||
"en": "After 1 month, the doctor will check progress and a second fat graft is possible if needed.",
|
||||
"why": "numbers"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -18,14 +18,14 @@ const { title, description, jsonLd, ogImage = S.buildingImage?.src || '/favicon.
|
||||
const isEn = lang === 'en';
|
||||
// 머리말·꼬리말 문구. 법적 고지(지원 관계·부작용)는 번역하지 않는다. 아래 주석 참조.
|
||||
const T = isEn
|
||||
? { nav: [['/posts', 'Questions'], ['/videos', 'Doctors'], ['/newsroom', 'Newsroom'], ['/en/stay', 'Your Stay'], ['/about', 'About']], cta: 'Book a Consultation', supporters: 'SUPPORTERS', back: 'Back', top: 'Back to top', sample: 'This is a sample site, not yet public.' }
|
||||
: { nav: [['/posts', '상담 전 질문'], ['/videos', '의료진 영상'], ['/newsroom', '뉴스룸'], ['/stay', '주변 안내'], ['/visit', '방문 안내'], ['/about', '매체 소개']], cta: '상담 예약', supporters: '서포터즈', back: '이전 페이지', top: '맨 위로', sample: '샘플 사이트입니다. 정식 공개 전입니다.' };
|
||||
? { nav: [['/posts', 'Questions'], ['/videos', 'Doctors'], ['/newsroom', 'Newsroom'], ['/en/plan', 'Recovery Planner'], ['/about', 'About']], cta: 'Book a Consultation', supporters: 'SUPPORTERS', back: 'Back', top: 'Back to top', sample: 'This is a sample site, not yet public.' }
|
||||
: { nav: [['/posts', '상담 전 질문'], ['/videos', '의료진 영상'], ['/newsroom', '뉴스룸'], ['/visit', '방문 안내'], ['/plan', '회복 일정'], ['/about', '매체 소개']], cta: '상담 예약', supporters: '서포터즈', back: '이전 페이지', top: '맨 위로', sample: '샘플 사이트입니다. 정식 공개 전입니다.' };
|
||||
|
||||
// 언어 전환. 같은 내용의 짝이 있는 페이지만 서로 잇고, 없으면 그 언어의 입구로 보낸다.
|
||||
// 영문 페이지가 늘어나면 이 표에 줄만 추가한다.
|
||||
const PAIRS: Record<string, string> = { '/stay': '/en/stay', '/visit': '/en/stay' };
|
||||
const PAIRS: Record<string, string> = { '/plan': '/en/plan', '/visit': '/en/plan' };
|
||||
const KO_ENTRY = '/';
|
||||
const EN_ENTRY = '/en/stay';
|
||||
const EN_ENTRY = '/en/plan';
|
||||
const path = (Astro.url.pathname.replace(/\.html$/, '').replace(/\/index$/, '/').replace(/\/$/, '') || '/');
|
||||
const koPair = Object.entries(PAIRS).find(([, en]) => en === path)?.[0];
|
||||
const otherHref = isEn ? (koPair ?? KO_ENTRY) : (PAIRS[path] ?? EN_ENTRY);
|
||||
@@ -34,7 +34,7 @@ const otherExact = isEn ? Boolean(koPair) : Boolean(PAIRS[path]);
|
||||
// 영문 페이지의 예약 버튼은 병원의 외국인용 영문 사이트로 보낸다(factSheet.urlEn).
|
||||
// 한국어 예약 페이지로 보내면 영어로 온 사람이 한국어 화면을 만난다.
|
||||
const ctaHref = isEn
|
||||
? ((f as Record<string, any>).reservationUrlEn || (f as Record<string, any>).urlEn || reservationUrl || '/en/stay')
|
||||
? ((f as Record<string, any>).reservationUrlEn || (f as Record<string, any>).urlEn || reservationUrl || '/en/plan')
|
||||
: (reservationUrl || '/visit');
|
||||
// 의료광고 고지는 규정 대상이라 임의로 번역하지 않는다(의료법 56조·추천보증 심사지침).
|
||||
// 병원이 영문 문구를 확정해 site.json 의 sponsorNoticeEn / factSheet 의 sideEffectNoticeEn 에 넣기 전까지는
|
||||
|
||||
@@ -0,0 +1,177 @@
|
||||
// 회복기 스케줄러 계산 로직 (설계 v0.2 §13.3·§13.7·§13.8). 화면과 분리된 순수 함수만 둔다.
|
||||
// 입력: 시술 id, 수술일, 국적, 선호. 출력: 날짜별 외출 등급·식사·추천과 예약 링크. 서버 호출 없음.
|
||||
// 검증: node --experimental-strip-types scripts/gate/plan.test.mjs
|
||||
|
||||
export type Lang = 'ko' | 'en';
|
||||
export type L10n = Record<Lang, string>;
|
||||
export type Status = 'clinic' | 'provisional';
|
||||
export interface Valued { value: number | null; range?: [number, number]; status: Status; source?: string; note?: L10n }
|
||||
export interface LevelStep { fromDay: number; level: number; status: Status; source?: string; note?: L10n }
|
||||
export interface DietStep { fromDay: number; type: 'liquid' | 'soft' | 'mild' | 'normal'; status: Status; source?: string }
|
||||
export interface Procedure {
|
||||
id: string; label: L10n; group: L10n; readMore: string | null;
|
||||
preOpDays: Valued; hospitalNights: Valued; stitchRemovalDay: Valued; earliestDepartureDay: Valued;
|
||||
outingLevels: LevelStep[]; diet: DietStep[]; constraints: string[]; sources: string[];
|
||||
}
|
||||
export interface Place {
|
||||
id: string; name: L10n; category: string; minLevel: number; dietOk?: string[]; distanceKm: number; indoor: boolean;
|
||||
area: L10n; note: L10n; mapQuery: string | null; bookingQuery?: string; verify: boolean;
|
||||
source?: 'curated' | 'tourapi'; travelLabel?: string; image?: string; url?: string;
|
||||
}
|
||||
export interface Nationality { code: string; label: L10n; visaFreeDays: number | null; longHaul: boolean }
|
||||
|
||||
export interface PlanFestival { id: string; title: string; start: string; end: string }
|
||||
export interface PlanInput { procedure: Procedure; surgeryDate: string; nationality?: Nationality | null; prefs: string[]; festivals?: PlanFestival[] }
|
||||
export interface PlanDay { date: string; offset: number; level: number; diet: DietStep['type']; picks: Place[]; festivals: PlanFestival[]; isSurgery: boolean; isHospital: boolean; isStitch: boolean; isArrival: boolean; isDeparture: boolean }
|
||||
export interface Plan {
|
||||
arriveBy: string; surgeryDate: string; dischargeDate: string | null; stitchDate: string | null; earliestDeparture: string | null;
|
||||
stayNights: number | null; preOpDays: number; days: PlanDay[];
|
||||
}
|
||||
|
||||
const DAY = 86_400_000;
|
||||
export const addDays = (iso: string, n: number): string => {
|
||||
const d = new Date(`${iso}T00:00:00Z`);
|
||||
return new Date(d.getTime() + n * DAY).toISOString().slice(0, 10);
|
||||
};
|
||||
export const isIsoDate = (s: unknown): s is string => typeof s === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(s) && !Number.isNaN(Date.parse(`${s}T00:00:00Z`));
|
||||
|
||||
/** fromDay 오름차순 단계표에서 offset 에 해당하는 단계. 첫 단계 이전이면 첫 단계. */
|
||||
function stepAt<T extends { fromDay: number }>(steps: T[], offset: number): T {
|
||||
const sorted = [...steps].sort((a, b) => a.fromDay - b.fromDay);
|
||||
let cur = sorted[0];
|
||||
for (const s of sorted) if (offset >= s.fromDay) cur = s;
|
||||
return cur;
|
||||
}
|
||||
|
||||
/** 장거리 국적은 시차 회복으로 준비일에 1일을 더한다 (§13.3). */
|
||||
export function effectivePreOpDays(p: Procedure, nat?: Nationality | null): number {
|
||||
const base = p.preOpDays.value ?? 2;
|
||||
return base + (nat?.longHaul ? 1 : 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* 장소 점수. 선호 일치가 가장 크고, 등급이 딱 맞을수록, 가까울수록 높다.
|
||||
* 선호가 비어 있으면 카테고리 무관하게 거리와 등급만 본다.
|
||||
*/
|
||||
export function scorePlace(place: Place, level: number, diet: DietStep['type'], prefs: string[]): number {
|
||||
if (place.category === 'hotel') return -1;
|
||||
if (place.minLevel > level) return -1;
|
||||
if (place.category === 'food' && place.dietOk && !place.dietOk.includes(diet)) return -1;
|
||||
let s = 0;
|
||||
if (prefs.length === 0 || prefs.includes(place.category)) s += 3;
|
||||
if (place.source !== 'tourapi') s += 0.75; // 큐레이션(1순위)이 같은 조건이면 먼저 나온다
|
||||
if (place.category === 'essentials' || place.category === 'care') s += 1; // 회복에 직접 필요한 것은 기본 가점
|
||||
s += 2 - Math.min(2, level - place.minLevel); // 오늘 등급에 맞는 곳을 우선
|
||||
s += Math.max(0, 1.5 - place.distanceKm / 4); // 가까울수록 가점(최대 1.5)
|
||||
return s;
|
||||
}
|
||||
|
||||
/** 하루에 최대 3곳. 직전 2일에 나온 곳은 뒤로 미뤄 날마다 다른 곳이 나오게 한다. */
|
||||
export function pickForDay(places: Place[], level: number, diet: DietStep['type'], prefs: string[], recent: Set<string>, max = 3): Place[] {
|
||||
return places
|
||||
.map((p) => ({ p, s: scorePlace(p, level, diet, prefs) - (recent.has(p.id) ? 2.5 : 0) }))
|
||||
.filter((x) => x.s >= 0)
|
||||
.sort((a, b) => b.s - a.s || a.p.distanceKm - b.p.distanceKm)
|
||||
.slice(0, max)
|
||||
.map((x) => x.p);
|
||||
}
|
||||
|
||||
export function buildPlan(input: PlanInput, places: Place[]): Plan {
|
||||
const { procedure: p, surgeryDate, nationality, prefs, festivals = [] } = input;
|
||||
const preOp = effectivePreOpDays(p, nationality);
|
||||
const arriveBy = addDays(surgeryDate, -preOp);
|
||||
const nights = p.hospitalNights.value;
|
||||
const dischargeDate = nights === null ? null : addDays(surgeryDate, nights);
|
||||
const stitchDate = p.stitchRemovalDay.value === null ? null : addDays(surgeryDate, p.stitchRemovalDay.value);
|
||||
const dep = p.earliestDepartureDay.value;
|
||||
const earliestDeparture = dep === null ? null : addDays(surgeryDate, dep);
|
||||
const lastOffset = dep ?? Math.max(14, ...p.outingLevels.map((l) => l.fromDay));
|
||||
const days: PlanDay[] = [];
|
||||
const recent: string[] = [];
|
||||
for (let off = -preOp; off <= lastOffset; off++) {
|
||||
const date = addDays(surgeryDate, off);
|
||||
const isHospital = nights !== null && off >= 0 && off < nights;
|
||||
const pre = off < 0;
|
||||
const level = pre ? 2 : isHospital ? 0 : stepAt(p.outingLevels, off).level;
|
||||
const diet = pre ? 'normal' : stepAt(p.diet, off).type;
|
||||
const recentSet = new Set(recent.slice(-6));
|
||||
const picks = level === 0 || off === 0 ? [] : pickForDay(places, level, diet, prefs, recentSet);
|
||||
recent.push(...picks.map((x) => x.id));
|
||||
const dayFest = level >= 3 ? festivals.filter((f) => f.start <= date && f.end >= date).slice(0, 1) : []; // 행사는 자유 외출(L3) 날에만
|
||||
days.push({ date, offset: off, level, diet, picks, festivals: dayFest, isSurgery: off === 0, isHospital, isStitch: stitchDate === date, isArrival: off === -preOp, isDeparture: earliestDeparture === date });
|
||||
}
|
||||
return { arriveBy, surgeryDate, dischargeDate, stitchDate, earliestDeparture, stayNights: dep === null ? null : preOp + dep, preOpDays: preOp, days };
|
||||
}
|
||||
|
||||
// ---------- 예약 링크 (§13.7). 검색 결과 페이지 패턴만 쓴다. 제휴 ID 는 확정 후 aid 파라미터로 붙인다. ----------
|
||||
export function bookingUrl(query: string, checkin: string, checkout: string, lang: Lang, aid?: string): string {
|
||||
const u = new URL('https://www.booking.com/searchresults.html');
|
||||
u.searchParams.set('ss', query);
|
||||
u.searchParams.set('checkin', checkin);
|
||||
u.searchParams.set('checkout', checkout);
|
||||
u.searchParams.set('group_adults', '1');
|
||||
u.searchParams.set('no_rooms', '1');
|
||||
u.searchParams.set('lang', lang === 'ko' ? 'ko' : 'en-us');
|
||||
if (aid) u.searchParams.set('aid', aid);
|
||||
return u.toString();
|
||||
}
|
||||
export function googleFlightsUrl(arrive: string, depart: string, lang: Lang): string {
|
||||
const q = `Flights to ICN on ${arrive} returning ${depart}`;
|
||||
return `https://www.google.com/travel/flights?hl=${lang}&q=${encodeURIComponent(q)}`;
|
||||
}
|
||||
export function mapUrl(query: string): string {
|
||||
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(query)}`;
|
||||
}
|
||||
|
||||
// ---------- 공유 URL 해시 (서버 미전송) ----------
|
||||
export interface HashState { p?: string; d?: string; l?: Lang; n?: string; pref?: string[] }
|
||||
export function encodeHash(s: HashState): string {
|
||||
const q = new URLSearchParams();
|
||||
if (s.p) q.set('p', s.p);
|
||||
if (s.d) q.set('d', s.d);
|
||||
if (s.l) q.set('l', s.l);
|
||||
if (s.n) q.set('n', s.n);
|
||||
if (s.pref?.length) q.set('pref', s.pref.join(','));
|
||||
return q.toString();
|
||||
}
|
||||
export function decodeHash(hash: string): HashState {
|
||||
const q = new URLSearchParams(hash.replace(/^#/, ''));
|
||||
const l = q.get('l');
|
||||
return {
|
||||
p: q.get('p') ?? undefined,
|
||||
d: isIsoDate(q.get('d')) ? (q.get('d') as string) : undefined,
|
||||
l: l === 'ko' || l === 'en' ? l : undefined,
|
||||
n: q.get('n') ?? undefined,
|
||||
pref: (q.get('pref') ?? '').split(',').filter(Boolean),
|
||||
};
|
||||
}
|
||||
|
||||
// ---------- ICS (종일 일정 4개: 입국·수술·실밥·출국) ----------
|
||||
export function buildIcs(plan: Plan, titles: { arrive: string; surgery: string; stitch: string; departure: string }, calName: string): string {
|
||||
const ev = (date: string, title: string, uid: string) => [
|
||||
'BEGIN:VEVENT', `UID:${uid}@view-supporters`, `DTSTAMP:${new Date().toISOString().replace(/[-:]/g, '').slice(0, 15)}Z`,
|
||||
`DTSTART;VALUE=DATE:${date.replace(/-/g, '')}`, `DTEND;VALUE=DATE:${addDays(date, 1).replace(/-/g, '')}`, `SUMMARY:${title}`, 'END:VEVENT',
|
||||
];
|
||||
const lines = ['BEGIN:VCALENDAR', 'VERSION:2.0', 'PRODID:-//View Supporters//Recovery Planner//KO', `X-WR-CALNAME:${calName}`];
|
||||
lines.push(...ev(plan.arriveBy, titles.arrive, `arrive-${plan.arriveBy}`));
|
||||
lines.push(...ev(plan.surgeryDate, titles.surgery, `surgery-${plan.surgeryDate}`));
|
||||
if (plan.stitchDate) lines.push(...ev(plan.stitchDate, titles.stitch, `stitch-${plan.stitchDate}`));
|
||||
if (plan.earliestDeparture) lines.push(...ev(plan.earliestDeparture, titles.departure, `depart-${plan.earliestDeparture}`));
|
||||
lines.push('END:VCALENDAR');
|
||||
return lines.join('\r\n');
|
||||
}
|
||||
|
||||
/** 상담 신청에 붙여 보낼 요약문. */
|
||||
export function summaryText(plan: Plan, p: Procedure, lang: Lang, t: Record<string, string>): string {
|
||||
const pending = t.pending;
|
||||
const row = (k: string, v: string | null) => `${k}: ${v ?? pending}`;
|
||||
return [
|
||||
`${t.summaryTitle} (${p.label[lang]})`,
|
||||
row(t.arriveBy, plan.arriveBy),
|
||||
row(t.surgery, plan.surgeryDate),
|
||||
row(t.hospital, p.hospitalNights.value === null ? null : p.hospitalNights.value === 0 ? t.hospitalNone : t.hospitalNights.replace('{n}', String(p.hospitalNights.value))),
|
||||
row(t.stitch, plan.stitchDate),
|
||||
row(t.departure, plan.earliestDeparture),
|
||||
row(t.stayNights, plan.stayNights === null ? null : t.nights.replace('{n}', String(plan.stayNights))),
|
||||
].join('\n');
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
// 한국관광공사 TourAPI 사전 수집 데이터(src/data/medicalTourism*.json)를 회복 일정 플래너의 장소·축제 후보로 바꾼다 (설계 v0.2 §13.5, 2순위 소스).
|
||||
// 수집은 scripts/fetch_medical_tourism.py 가 병원 좌표 기준으로 미리 해 두고, 화면은 이 파일의 결과만 쓴다. 외부 호출 없음.
|
||||
// 식이 적합성은 TourAPI 가 주지 않으므로 판정하지 않는다: 음식점은 일반식 단계에서만 후보가 되고, 죽·스무디 같은 회복 초기 식사는 큐레이션(places.json)이 맡는다.
|
||||
import type { Place, L10n } from './plan';
|
||||
|
||||
export interface TourItem {
|
||||
id: string; title: string; address: string; image: string | null; tel: string | null; lat: number; lng: number;
|
||||
distanceM: number; travel: { mode: string; minutes: number; label: string } | null; overview: string; homepage: string;
|
||||
startDate?: string; endDate?: string; season?: string;
|
||||
}
|
||||
export interface TourData {
|
||||
places: Record<string, TourItem[]>;
|
||||
festivals: TourItem[];
|
||||
meta: { lang?: string; source: string; fetchedAt: string; origin?: { lat: number; lng: number; label: string } };
|
||||
}
|
||||
|
||||
/** TourAPI 유형 → 플래너 카테고리. wellness(사우나·스파)는 회복기 금지 항목이라 후보에서 뺀다. */
|
||||
const CATEGORY: Record<string, string | null> = { attraction: 'sightseeing', culture: 'sightseeing', shopping: 'shopping', restaurant: 'food', stay: 'hotel', wellness: null };
|
||||
|
||||
/** 거리로 외출 등급을 정한다: 600m 안 근거리(L1), 3km 안 반나절(L2), 그 밖은 자유 외출(L3). */
|
||||
export const levelByDistance = (m: number): number => (m <= 600 ? 1 : m <= 3000 ? 2 : 3);
|
||||
|
||||
const both = (s: string): L10n => ({ ko: s, en: s });
|
||||
/** 주소를 짧은 동네 표기로. 국문은 '구 도로명', 영문은 첫 쉼표 앞 도로명. */
|
||||
const areaLabel = (address: string, lang: 'ko' | 'en'): string => {
|
||||
const a = (address || '').trim();
|
||||
if (lang === 'en') return a.split(',').map((x) => x.trim()).filter((x) => x && !/^\d+$/.test(x))[0] ?? a;
|
||||
return a.replace(/^서울특별시\s*/, '').split(/\s+/).slice(0, 2).join(' ');
|
||||
};
|
||||
const firstSentence = (s: string, n = 140): string => {
|
||||
const t = (s || '').replace(/\d+\s*m?\s*NAVER\s*©\s*NAVER Corp\.?/gi, '').replace(/\s+/g, ' ').trim();
|
||||
if (t.length <= n) return t;
|
||||
const cut = t.slice(0, n);
|
||||
const stop = Math.max(cut.lastIndexOf('. '), cut.lastIndexOf('다. '), cut.lastIndexOf('。'));
|
||||
return (stop > 40 ? cut.slice(0, stop + 1) : cut).trim() + (stop > 40 ? '' : '…');
|
||||
};
|
||||
/** "K-그랜드 호스텔 강남 1(K-GRAND HOSTEL GANGNAM1)" → 예약 검색용 영문 이름이 괄호 안에 있으면 그것을 쓴다. */
|
||||
export const bookingName = (title: string): string => {
|
||||
const m = title.match(/\(([^)]*[A-Za-z][^)]*)\)\s*$/);
|
||||
return (m ? m[1] : title).trim();
|
||||
};
|
||||
|
||||
export function tourToPlaces(data: TourData, lang: 'ko' | 'en'): Place[] {
|
||||
const out: Place[] = [];
|
||||
for (const [type, items] of Object.entries(data.places ?? {})) {
|
||||
const category = CATEGORY[type];
|
||||
if (!category) continue;
|
||||
for (const it of items) {
|
||||
if (!it.lat || !it.lng) continue;
|
||||
const km = Math.round((it.distanceM / 1000) * 10) / 10;
|
||||
out.push({
|
||||
id: `tour-${type}-${it.id}`,
|
||||
name: both(it.title),
|
||||
category,
|
||||
minLevel: category === 'hotel' ? 0 : levelByDistance(it.distanceM),
|
||||
dietOk: category === 'food' ? ['normal'] : undefined,
|
||||
distanceKm: km,
|
||||
indoor: type === 'shopping' || type === 'culture' || type === 'restaurant' || type === 'stay',
|
||||
area: both(areaLabel(it.address, lang)),
|
||||
note: both(firstSentence(it.overview)),
|
||||
mapQuery: it.title,
|
||||
bookingQuery: category === 'hotel' ? bookingName(it.title) : undefined,
|
||||
verify: true,
|
||||
source: 'tourapi',
|
||||
travelLabel: it.travel?.label ?? undefined,
|
||||
image: it.image ?? undefined,
|
||||
url: it.homepage || undefined,
|
||||
});
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
export interface Festival { id: string; title: string; start: string; end: string; distanceKm: number; travelLabel?: string; blurb: string; image?: string; url?: string; address: string }
|
||||
const iso = (d?: string) => (d && d.length === 8 ? `${d.slice(0, 4)}-${d.slice(4, 6)}-${d.slice(6, 8)}` : '');
|
||||
|
||||
/** 체류 기간 [from, to] 와 겹치는 행사만, 가까운 순. */
|
||||
export function festivalsDuring(data: TourData, from: string, to: string, max = 6): Festival[] {
|
||||
return (data.festivals ?? [])
|
||||
.map((f) => ({ f, start: iso(f.startDate), end: iso(f.endDate) }))
|
||||
.filter((x) => x.start && x.end && x.start <= to && x.end >= from)
|
||||
.sort((a, b) => a.f.distanceM - b.f.distanceM)
|
||||
.slice(0, max)
|
||||
.map(({ f, start, end }) => ({
|
||||
id: `fest-${f.id}`, title: f.title, start, end, distanceKm: Math.round((f.distanceM / 1000) * 10) / 10,
|
||||
travelLabel: f.travel?.label ?? undefined, blurb: firstSentence(f.overview), image: f.image ?? undefined,
|
||||
url: f.homepage || undefined, address: f.address,
|
||||
}));
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
// 없는 주소. Vercel 이 dist/404.html 을 자동으로 쓴다. 옛 주소(/recovery, /stay)는 vercel.json 리다이렉트가 /plan 으로 먼저 보낸다.
|
||||
import Base from '../layouts/Base.astro';
|
||||
import { SITE_NAME } from '../lib';
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
const ld = { '@type': 'WebPage', '@id': `${site}/404#page`, name: '페이지를 찾을 수 없음', url: `${site}/404`, inLanguage: 'ko', isPartOf: { '@id': `${site}/#website` }, publisher: { '@type': 'Organization', name: SITE_NAME, url: site } };
|
||||
---
|
||||
<Base title="페이지를 찾을 수 없음" description="주소가 바뀌었거나 없는 페이지입니다. 홈, 회복 일정, 방문 안내로 이동할 수 있습니다." jsonLd={ld} noindex={true}>
|
||||
<section class="section dark" style="padding:5rem 0 4.5rem"><div class="wrap-wide">
|
||||
<div class="sec-head"><div class="eyebrow" style="color:var(--purple-300)">404</div><h1 class="serif" style="font-size:2rem;display:inline-block;background:linear-gradient(to right,var(--purple-300),var(--blue-300));-webkit-background-clip:text;background-clip:text;color:transparent">Page Not Found</h1><p class="sub">주소가 바뀌었거나 없는 페이지입니다. 아래에서 이어서 보실 수 있습니다.</p></div>
|
||||
<div class="grid">
|
||||
<a class="card" href="/" style="text-decoration:none"><div class="cat">Home</div><h3>홈</h3><p>병원을 알아보는 분들의 질문과 답</p></a>
|
||||
<a class="card" href="/plan" style="text-decoration:none"><div class="cat">Recovery Planner</div><h3>회복 일정</h3><p>수술일 기준 입국·출국 계산과 회복기 외출 계획. 영어 화면은 /en/plan</p></a>
|
||||
<a class="card" href="/visit" style="text-decoration:none"><div class="cat">Visit</div><h3>방문 안내</h3><p>예약, 가는 길, 주차, 도착 후 동선</p></a>
|
||||
</div>
|
||||
</div></section>
|
||||
</Base>
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
// Recovery planner, English page. Body lives in components/Planner.astro. Korean page is /plan.
|
||||
import Base from '../../layouts/Base.astro';
|
||||
import Planner from '../../components/Planner.astro';
|
||||
import { fact, SITE_NAME, clinicSchema, v } from '../../lib';
|
||||
const f = fact as Record<string, any>;
|
||||
const clinicEn = (fact as Record<string, any>).nameEn || (fact as Record<string, any>).shortNameEn || (fact as Record<string, any>).shortName || 'the clinic';
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
const ld = [
|
||||
{ '@type': 'WebPage', '@id': `${site}/en/plan#page`, name: `${clinicEn} Recovery Planner`, url: `${site}/en/plan`, inLanguage: 'en', isPartOf: { '@id': `${site}/#website` }, about: { '@id': `${fact.url}/#clinic` }, publisher: { '@type': 'Organization', name: SITE_NAME, url: site } },
|
||||
clinicSchema(site),
|
||||
];
|
||||
---
|
||||
<Base lang="en" title="Recovery Planner · Arrival, earliest departure and recovery outings" description={`Plan your stay around your surgery date at ${clinicEn} in Seoul: when to arrive, the earliest you can fly home, which recovery days you can go out and where, plus hotels near the clinic. Calculated in your browser, stored nowhere.`} jsonLd={ld} alternates={[{ lang: 'ko', href: '/plan' }, { lang: 'en', href: '/en/plan' }]}>
|
||||
<Planner lang="en" />
|
||||
</Base>
|
||||
@@ -1,440 +0,0 @@
|
||||
---
|
||||
// 외국인 환자용 체류 안내. 세 부분이다.
|
||||
// 1. Around the clinic — 도보·차 소요 시간으로 거른 주변 장소
|
||||
// 2. Festivals — 계절로 묶은 행사
|
||||
// 3. Suggested days — 시간표와 지도가 붙은 동선
|
||||
//
|
||||
// 데이터는 한국관광공사 TourAPI 영문(EngService2)에서 scripts/fetch_medical_tourism.py 가
|
||||
// 미리 수집한 src/data/medicalTourism.json 이다. 설명문은 detailCommon2 의 overview 다.
|
||||
//
|
||||
// 만들지 않는 것
|
||||
// - 평점·리뷰·영업시간: TourAPI 미제공. 싣지 않는다.
|
||||
// - 링크: 공식 홈페이지가 있을 때만 걸고, 없으면 검색으로 보낸다. 주소를 지어내지 않는다.
|
||||
// - 식이 적합성·회복 일수: 의학 판단이라 병원 확정값만 쓴다.
|
||||
// - 일정의 시각: 진료 종료 시각을 가정으로 못박아 화면에 밝힌다. 병원 일정이 아니다.
|
||||
import Base from '../../layouts/Base.astro';
|
||||
import { fact, site as S, SITE_NAME, clinicSchema, has } from '../../lib';
|
||||
import data from '../../data/medicalTourism.json';
|
||||
|
||||
const f = fact as Record<string, any>;
|
||||
const Sx = S as Record<string, any>;
|
||||
const clinic = f.shortNameEn || f.nameEn || f.shortName || 'the clinic';
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
const T = data as any;
|
||||
|
||||
type Place = {
|
||||
id: string; title: string; address: string; image: string | null; overview: string;
|
||||
homepage: string; lat: number | null; lng: number | null; distanceM: number | null;
|
||||
travel: { mode: string; minutes: number; label: string } | null;
|
||||
};
|
||||
|
||||
const GROUPS: Array<{ key: string; label: string; note: string }> = [
|
||||
{ key: 'restaurant', label: 'Food', note: 'Restaurants and cafés' },
|
||||
{ key: 'stay', label: 'Hotels', note: 'Places to sleep' },
|
||||
{ key: 'wellness', label: 'Rest', note: 'Spas and jjimjilbang' },
|
||||
{ key: 'attraction', label: 'Sights', note: 'Streets, parks, landmarks' },
|
||||
{ key: 'culture', label: 'Culture', note: 'Museums, theatres, halls' },
|
||||
{ key: 'shopping', label: 'Shopping', note: 'Stores and markets' },
|
||||
];
|
||||
|
||||
const SEASONS = [
|
||||
{ key: 'spring', label: 'Spring' }, { key: 'summer', label: 'Summer' },
|
||||
{ key: 'autumn', label: 'Autumn' }, { key: 'winter', label: 'Winter' },
|
||||
];
|
||||
const MONTHS = ['', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
||||
const nowSeason = ['winter', 'winter', 'spring', 'spring', 'spring', 'summer', 'summer', 'summer', 'autumn', 'autumn', 'autumn', 'winter'][new Date().getMonth()];
|
||||
|
||||
// 검색으로 보낸다. 없는 URL 을 만들지 않는다.
|
||||
const searchUrl = (q: string) => `https://www.google.com/search?q=${encodeURIComponent(q + ' Seoul')}`;
|
||||
// 칩은 누적 임계값으로 거른다. 카드에 이동수단과 도보 분을 실어 두면 스크립트가 판단한다.
|
||||
const dt = (d: string | null) => (d && d.length === 8 ? `${MONTHS[+d.slice(4, 6)]} ${+d.slice(6, 8)}` : '');
|
||||
// 사진이 없을 때 이름을 대신 넣는다. 빈 회색칸보다 낫고, 없는 사진을 지어내지도 않는다.
|
||||
const shortName = (t: string) => {
|
||||
const m = t.match(/\(([^)]+)\)\s*$/);
|
||||
return (m ? m[1] : t).replace(/\s*\[.*\]\s*/g, '').trim();
|
||||
};
|
||||
const firstSentence = (s: string, n = 150) => {
|
||||
if (!s) return '';
|
||||
const cut = s.slice(0, n);
|
||||
const stop = cut.lastIndexOf('. ');
|
||||
return (stop > 60 ? cut.slice(0, stop + 1) : cut) + (s.length > n ? '…' : '');
|
||||
};
|
||||
|
||||
/* ── 동선. 실제 데이터에서 만들고, 시각은 가정임을 화면에 밝힌다. ── */
|
||||
const oLat = T.meta.origin.lat, oLng = T.meta.origin.lng;
|
||||
const pick = (key: string, maxMin: number, n: number): Place[] =>
|
||||
((T.places[key] ?? []) as Place[])
|
||||
.filter((p) => p.travel && p.travel.mode === 'walk' && p.travel.minutes <= maxMin && p.lat)
|
||||
.slice(0, n);
|
||||
const pickAny = (key: string, n: number): Place[] => ((T.places[key] ?? []) as Place[]).filter((p) => p.lat).slice(0, n);
|
||||
|
||||
const hhmm = (m: number) => `${String(Math.floor(m / 60) % 24).padStart(2, '0')}:${String(m % 60).padStart(2, '0')}`;
|
||||
function buildRoute(startMin: number, stops: Array<{ p: Place | null; label: string; stay: number; note: string }>) {
|
||||
let t = startMin;
|
||||
const out: any[] = [];
|
||||
stops.forEach((s, i) => {
|
||||
const move = i === 0 ? 0 : (s.p?.travel?.minutes ?? 5);
|
||||
t += move;
|
||||
const from = t;
|
||||
t += s.stay;
|
||||
out.push({ ...s, moveMin: move, from: hhmm(from), to: hhmm(t), lat: s.p?.lat ?? oLat, lng: s.p?.lng ?? oLng });
|
||||
});
|
||||
return { stops: out, total: t - startMin, from: hhmm(startMin), to: hhmm(t) };
|
||||
}
|
||||
const clinicStop = (label: string, stay: number, note: string) => ({ p: null, label, stay, note });
|
||||
|
||||
const ROUTES = [
|
||||
{
|
||||
id: 'near', title: 'The day of a check-up', who: 'When you come back to the clinic often',
|
||||
blurb: 'Everything within a short walk. You do not need a taxi.',
|
||||
route: buildRoute(15 * 60, [
|
||||
clinicStop(clinic, 40, 'Your appointment ends here.'),
|
||||
...pick('restaurant', 10, 1).map((p) => ({ p, label: p.title, stay: 50, note: firstSentence(p.overview, 90) })),
|
||||
...pick('wellness', 12, 1).map((p) => ({ p, label: p.title, stay: 60, note: firstSentence(p.overview, 90) })),
|
||||
]),
|
||||
},
|
||||
{
|
||||
id: 'short', title: 'A short outing', who: 'When you can walk a little further',
|
||||
blurb: 'Still close, but out of the block.',
|
||||
route: buildRoute(13 * 60, [
|
||||
clinicStop(clinic, 20, 'Start from the clinic.'),
|
||||
...pickAny('shopping', 1).map((p) => ({ p, label: p.title, stay: 60, note: firstSentence(p.overview, 90) })),
|
||||
...pickAny('restaurant', 2).slice(1, 2).map((p) => ({ p, label: p.title, stay: 60, note: firstSentence(p.overview, 90) })),
|
||||
]),
|
||||
},
|
||||
{
|
||||
id: 'city', title: 'When you can travel', who: 'Later in your stay',
|
||||
blurb: 'Sights across the city. Expect to take a taxi or the subway.',
|
||||
route: buildRoute(10 * 60, [
|
||||
clinicStop(clinic, 10, 'Set off from the clinic.'),
|
||||
...pickAny('attraction', 2).map((p) => ({ p, label: p.title, stay: 70, note: firstSentence(p.overview, 90) })),
|
||||
...pickAny('culture', 1).map((p) => ({ p, label: p.title, stay: 70, note: firstSentence(p.overview, 90) })),
|
||||
]),
|
||||
},
|
||||
].filter((r) => r.route.stops.length > 1);
|
||||
|
||||
/* OpenStreetMap 타일을 좌표로 직접 깔아 지도를 만든다. 지도 라이브러리를 부르지 않는다.
|
||||
빈 회색 칸에 점만 찍으면 어디인지 알 수 없어서, 실제 거리·블록이 보이게 한다.
|
||||
타일은 OSM 정책상 출처를 반드시 표기한다. */
|
||||
const TILE = 256, MAPW = 680, MAPH = 340;
|
||||
const lngToPx = (lng: number, z: number) => ((lng + 180) / 360) * TILE * 2 ** z;
|
||||
const latToPx = (lat: number, z: number) => {
|
||||
const r = (lat * Math.PI) / 180;
|
||||
return ((1 - Math.log(Math.tan(r) + 1 / Math.cos(r)) / Math.PI) / 2) * TILE * 2 ** z;
|
||||
};
|
||||
|
||||
function miniMap(stops: any[]) {
|
||||
const lats = stops.map((s) => s.lat), lngs = stops.map((s) => s.lng);
|
||||
const [la0, la1] = [Math.min(...lats), Math.max(...lats)];
|
||||
const [ln0, ln1] = [Math.min(...lngs), Math.max(...lngs)];
|
||||
// 모든 지점이 여백 안에 들어오는 가장 확대된 배율을 고른다.
|
||||
let z = 17;
|
||||
for (; z > 10; z--) {
|
||||
const w = lngToPx(ln1, z) - lngToPx(ln0, z);
|
||||
const h = latToPx(la0, z) - latToPx(la1, z);
|
||||
if (w <= MAPW - 90 && h <= MAPH - 90) break;
|
||||
}
|
||||
const cx = (lngToPx(ln0, z) + lngToPx(ln1, z)) / 2;
|
||||
const cy = (latToPx(la0, z) + latToPx(la1, z)) / 2;
|
||||
const left = cx - MAPW / 2, top = cy - MAPH / 2;
|
||||
const tiles: Array<{ src: string; x: number; y: number }> = [];
|
||||
for (let tx = Math.floor(left / TILE); tx <= Math.floor((left + MAPW) / TILE); tx++) {
|
||||
for (let ty = Math.floor(top / TILE); ty <= Math.floor((top + MAPH) / TILE); ty++) {
|
||||
const n = 2 ** z;
|
||||
if (tx < 0 || ty < 0 || tx >= n || ty >= n) continue;
|
||||
tiles.push({ src: `https://tile.openstreetmap.org/${z}/${tx}/${ty}.png`, x: tx * TILE - left, y: ty * TILE - top });
|
||||
}
|
||||
}
|
||||
const pins = stops.map((s, i) => ({
|
||||
x: +(lngToPx(s.lng, z) - left).toFixed(1),
|
||||
y: +(latToPx(s.lat, z) - top).toFixed(1),
|
||||
n: i + 1, label: s.label,
|
||||
}));
|
||||
return { tiles, pins, z };
|
||||
}
|
||||
|
||||
const allPlaces: Array<Place & { cat: string }> = GROUPS.flatMap((g) =>
|
||||
((T.places[g.key] ?? []) as Place[]).map((p) => ({ ...p, cat: g.key })));
|
||||
|
||||
const ld = [
|
||||
{ '@type': 'WebPage', '@id': `${site}/en/stay#page`, name: `Your stay near ${clinic}`, url: `${site}/en/stay`, inLanguage: 'en', isPartOf: { '@id': `${site}/#website` }, about: { '@id': `${f.url}/#clinic` }, publisher: { '@type': 'Organization', name: SITE_NAME, url: site } },
|
||||
clinicSchema(site),
|
||||
];
|
||||
---
|
||||
<Base
|
||||
lang="en"
|
||||
title={`Your stay near ${clinic} — food, rest, sights and festivals`}
|
||||
description={`For international patients at ${clinic} in Gangnam, Seoul: where to eat and rest, what to see, which festivals are on, and how to shape your days. Distances and walking times from the clinic. Source: Korea Tourism Organization.`}
|
||||
jsonLd={ld}
|
||||
>
|
||||
<article class="wrap-wide stay">
|
||||
<header class="article-head">
|
||||
<div class="eyebrow">For international patients</div>
|
||||
<h1 class="serif">Your Stay in Seoul</h1>
|
||||
<p class="lede">
|
||||
<strong>Around {clinic}.</strong> Everything below is measured from the clinic at {f.address?.fullEn || f.address?.full}.
|
||||
Names, photographs and descriptions come from the Korea Tourism Organization.
|
||||
For the clinic's own hours and phone, see <a href="/clinic" hreflang="ko">Clinic information<span class="lang-tag">KO</span></a>.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<!-- 오늘 날씨. 빌드 시점이 아니라 브라우저에서 받는다. 정적 빌드에 넣으면 배포 시각의
|
||||
날씨가 굳는다. 값을 못 받으면 이 블록은 통째로 사라진다(틀린 날씨를 보이지 않는다).
|
||||
Open-Meteo 는 키가 필요 없고 CORS 를 허용한다. -->
|
||||
<aside id="weather" class="wx" hidden>
|
||||
<div class="wx-now">
|
||||
<span class="wx-temp"><span id="wx-t">–</span><span class="wx-unit">°C</span></span>
|
||||
<div>
|
||||
<div class="wx-cond" id="wx-c">Loading</div>
|
||||
<div class="wx-meta" id="wx-m"></div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="wx-note" id="wx-n"></p>
|
||||
</aside>
|
||||
|
||||
<!-- 섹션이 길어 스크롤이 부담스럽다. 머리말 아래 붙여 어디서든 건너뛰게 한다. -->
|
||||
<nav class="jump" aria-label="Jump to a section">
|
||||
{GROUPS.filter((g) => (T.places[g.key] ?? []).length).map((g) => (
|
||||
<a href={`#g-${g.key}`}>{g.label}<b>{(T.places[g.key] ?? []).length}</b></a>
|
||||
))}
|
||||
<a href="#festivals">Festivals<b>{T.festivals.length}</b></a>
|
||||
<a href="#days">Days<b>{ROUTES.length}</b></a>
|
||||
</nav>
|
||||
|
||||
<!-- ── 1. 주변 ── -->
|
||||
<section id="around">
|
||||
<div class="sec-head">
|
||||
<h2>Around the clinic</h2>
|
||||
<span class="upd">Updated {T.meta.fetchedAt.slice(0, 10)}</span>
|
||||
</div>
|
||||
<p class="sub">{T.filters.total} places, sorted by how long they take to reach on foot.</p>
|
||||
|
||||
<div class="chips" id="walkchips" role="group" aria-label="Filter by travel time">
|
||||
<button class="chip on" data-max="all">All <b>{T.filters.total}</b></button>
|
||||
<button class="chip" data-max="5">Within 5 min walk <b>{T.filters.walk5}</b></button>
|
||||
<button class="chip" data-max="15">Within 15 min walk <b>{T.filters.walk15}</b></button>
|
||||
<button class="chip" data-max="walk">Walking distance <b>{T.filters.walkAll}</b></button>
|
||||
<button class="chip" data-max="drive">By car <b>{T.filters.drive}</b></button>
|
||||
</div>
|
||||
|
||||
{GROUPS.map((g) => {
|
||||
const items = allPlaces.filter((p) => p.cat === g.key);
|
||||
if (!items.length) return null;
|
||||
return (
|
||||
<div class="grp" id={`g-${g.key}`} data-group={g.key}>
|
||||
<h3>{g.label} <small>{g.note}</small></h3>
|
||||
<div class="cards">
|
||||
{items.map((p) => (
|
||||
<article class="card" data-mode={p.travel?.mode ?? 'drive'} data-walk={p.travel?.mode === 'walk' ? p.travel.minutes : ''}>
|
||||
<div class="thumb">
|
||||
{p.image ? <img src={p.image} alt={`${p.title} — ${g.label.toLowerCase()} near ${clinic}`} loading="lazy" referrerpolicy="no-referrer" /> : <span class="nophoto">{shortName(p.title)}</span>}
|
||||
{p.travel && <span class="badge">{p.travel.label} <em>{p.distanceM! < 1000 ? `${p.distanceM} m` : `${(p.distanceM! / 1000).toFixed(1)} km`}</em></span>}
|
||||
</div>
|
||||
<div class="body">
|
||||
<h4>{p.title}</h4>
|
||||
<p class="desc">{firstSentence(p.overview) || 'No description provided by the tourism data.'}</p>
|
||||
<p class="addr">{p.address}</p>
|
||||
{p.homepage
|
||||
? <a class="go" href={p.homepage} rel="noopener nofollow">Official site ↗</a>
|
||||
: <a class="go" href={searchUrl(p.title.replace(/\s*\(.*\)\s*$/, ''))} rel="noopener nofollow">Open in search ↗</a>}
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<p class="src">Source · Korea Tourism Organization TourAPI. Walking time is estimated at 80 m per minute and is not a routed distance.</p>
|
||||
</section>
|
||||
|
||||
<!-- ── 2. 축제 ── -->
|
||||
<section id="festivals">
|
||||
<div class="sec-head"><h2>Festivals and events</h2></div>
|
||||
<p class="sub">{T.festivals.length} events within {T.meta.festivalRadiusKm} km, grouped by season. Right now it is <strong>{nowSeason}</strong>.</p>
|
||||
<div class="chips" role="group" aria-label="Filter by season">
|
||||
<button class="chip on" data-season="all">All <b>{T.festivals.length}</b></button>
|
||||
{SEASONS.map((s) => {
|
||||
const n = T.festivals.filter((e: any) => e.season === s.key).length;
|
||||
return n ? <button class="chip" data-season={s.key}>{s.label} <b>{n}</b></button> : null;
|
||||
})}
|
||||
</div>
|
||||
<div class="cards fest">
|
||||
{T.festivals.map((e: any) => (
|
||||
<article class="card" data-season={e.season}>
|
||||
<div class="thumb">
|
||||
{e.image ? <img src={e.image} alt={`${e.title} — festival near ${clinic}`} loading="lazy" referrerpolicy="no-referrer" /> : <span class="nophoto">{shortName(e.title)}</span>}
|
||||
<span class="badge mono">{MONTHS[e.month] ?? ''}</span>
|
||||
</div>
|
||||
<div class="body">
|
||||
<h4>{e.title}</h4>
|
||||
<p class="when">{dt(e.startDate)} – {dt(e.endDate)} · {e.travel ? e.travel.label : `${e.distanceKm} km`}</p>
|
||||
<p class="desc">{firstSentence(e.overview) || 'No description provided by the tourism data.'}</p>
|
||||
<p class="addr">{e.address}</p>
|
||||
<a class="go" href={searchUrl(e.title.replace(/\s*\(.*\)\s*$/, ''))} rel="noopener nofollow">Open in search ↗</a>
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
<p class="src">Source · Korea Tourism Organization TourAPI. Dates can change at the organiser's discretion.</p>
|
||||
</section>
|
||||
|
||||
<!-- ── 3. 동선 ── -->
|
||||
<section id="days">
|
||||
<div class="sec-head"><h2>Shaping your days</h2></div>
|
||||
<p class="sub">
|
||||
Three routes built from the places above. The clock times assume an appointment ending at the hour shown, and are an example, not your schedule.
|
||||
</p>
|
||||
{Sx.recoveryStagesEn
|
||||
? <p><strong>What {clinic} advises.</strong> {Sx.recoveryStagesEn}</p>
|
||||
: <p class="pending-note">Which of these you can do, and on which day, is a medical question. {clinic} has not yet published English guidance. Ask at your consultation.</p>}
|
||||
|
||||
{ROUTES.map((r) => {
|
||||
const pins = miniMap(r.route.stops);
|
||||
return (
|
||||
<div class="route">
|
||||
<div class="route-head">
|
||||
<div>
|
||||
<h3>{r.title}</h3>
|
||||
<p class="who">{r.who}</p>
|
||||
</div>
|
||||
<div class="clock">{r.route.from}–{r.route.to} · {Math.floor(r.route.total / 60)}h {r.route.total % 60}m</div>
|
||||
</div>
|
||||
<p class="blurb">{r.blurb}</p>
|
||||
<div class="map" role="img" aria-label={`Map of ${pins.pins.length} stops: ${pins.pins.map((p) => p.label).join(', ')}`}>
|
||||
<div class="map-tiles">
|
||||
{/* 타일은 장식이다. 지도의 뜻은 감싸는 요소의 aria-label 이 전한다.
|
||||
img 대신 배경으로 두어 스크린리더가 256개 조각을 읽지 않게 한다. */}
|
||||
{pins.tiles.map((t) => (
|
||||
<div class="tile" style={`left:${t.x}px;top:${t.y}px;background-image:url('${t.src}')`} />
|
||||
))}
|
||||
</div>
|
||||
<svg class="map-pins" viewBox={`0 0 ${MAPW} ${MAPH}`} aria-hidden="true">
|
||||
<polyline points={pins.pins.map((p) => `${p.x},${p.y}`).join(' ')} fill="none" stroke="#0A1128" stroke-width="3" stroke-dasharray="6 5" opacity="0.65" />
|
||||
{pins.pins.map((p) => (
|
||||
<g><circle cx={p.x} cy={p.y} r="13" fill="#0A1128" stroke="#fff" stroke-width="2.5" /><text x={p.x} y={p.y + 4.5} text-anchor="middle" font-size="12" font-weight="700" fill="#fff">{p.n}</text></g>
|
||||
))}
|
||||
</svg>
|
||||
<span class="map-credit">© OpenStreetMap contributors</span>
|
||||
</div>
|
||||
<ol class="timeline">
|
||||
{r.route.stops.map((s: any, i: number) => (
|
||||
<li>
|
||||
{i > 0 && <div class="move">↓ {s.moveMin} min</div>}
|
||||
<div class="stop">
|
||||
<span class="n">{i + 1}</span>
|
||||
<div>
|
||||
<div class="stop-t">{s.from}–{s.to}</div>
|
||||
<h4>{s.label}</h4>
|
||||
<p>{s.note}</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</section>
|
||||
|
||||
<section id="limits">
|
||||
<h2>What this page does not tell you</h2>
|
||||
<ul>
|
||||
<li>No ratings, review counts or opening hours. The tourism data does not carry them.</li>
|
||||
<li>No claim that any place suits your recovery. That is for {clinic} to say.</li>
|
||||
<li>English tourism listings around Gangnam are thin. Only {T.filters.walk5} places sit within a five minute walk, and {T.filters.drive} of {T.filters.total} need a car.</li>
|
||||
<li>We are not a travel agency, take no booking and no commission.</li>
|
||||
</ul>
|
||||
<p class="botnote">
|
||||
{has(f.urlEn) && <a class="btn primary" href={f.urlEn} rel="noopener" hreflang="en">Book a consultation in English</a>}
|
||||
</p>
|
||||
<p class="disclosure">{f.sideEffectNoticeEn || f.sideEffectNotice}</p>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<script is:inline define:vars={{ WX_LAT: T.meta.origin.lat, WX_LNG: T.meta.origin.lng }}>
|
||||
// 이동 시간 필터. 임계값은 누적이라 "15분 이내"가 5분 이내도 포함한다.
|
||||
// 걸러져 비게 된 그룹은 제목만 남지 않도록 통째로 숨긴다.
|
||||
(function () {
|
||||
var chips = document.querySelectorAll('#walkchips .chip');
|
||||
chips.forEach(function (c) {
|
||||
c.addEventListener('click', function () {
|
||||
chips.forEach(function (x) { x.classList.toggle('on', x === c); });
|
||||
var want = c.dataset.max;
|
||||
document.querySelectorAll('#around .card').forEach(function (card) {
|
||||
var mode = card.dataset.mode, w = parseInt(card.dataset.walk || '', 10);
|
||||
var show = want === 'all' ? true
|
||||
: want === 'walk' ? mode === 'walk'
|
||||
: want === 'drive' ? mode !== 'walk'
|
||||
: mode === 'walk' && w <= parseInt(want, 10);
|
||||
card.hidden = !show;
|
||||
});
|
||||
document.querySelectorAll('#around .grp').forEach(function (g) {
|
||||
g.hidden = ![].slice.call(g.querySelectorAll('.card')).some(function (x) { return !x.hidden; });
|
||||
});
|
||||
});
|
||||
});
|
||||
// 지금 화면에 있는 섹션의 버튼을 켠다. 섹션이 많아 어디쯤인지 알기 어렵다.
|
||||
var links = [].slice.call(document.querySelectorAll('.jump a'));
|
||||
var targets = links.map(function (a) { return document.querySelector(a.getAttribute('href')); });
|
||||
if ('IntersectionObserver' in window) {
|
||||
var seen = {};
|
||||
var io = new IntersectionObserver(function (entries) {
|
||||
entries.forEach(function (e) { seen[e.target.id] = e.isIntersecting ? e.intersectionRatio : 0; });
|
||||
var best = null, top = 0;
|
||||
targets.forEach(function (t) {
|
||||
if (t && (seen[t.id] || 0) > top) { top = seen[t.id]; best = t.id; }
|
||||
});
|
||||
links.forEach(function (a) { a.classList.toggle('on', best !== null && a.getAttribute('href') === '#' + best); });
|
||||
}, { rootMargin: '-150px 0px -55% 0px', threshold: [0, 0.15, 0.4, 0.75, 1] });
|
||||
targets.forEach(function (t) { if (t) io.observe(t); });
|
||||
}
|
||||
|
||||
// 오늘 날씨. Open-Meteo, 키 없음. 실패하면 블록을 숨긴 채 둔다.
|
||||
// 문구는 이 페이지의 목록에만 연결한다. 무엇을 해도 되는지는 의학 판단이라 말하지 않는다.
|
||||
(function () {
|
||||
var WMO = {
|
||||
0: 'Clear sky', 1: 'Mainly clear', 2: 'Partly cloudy', 3: 'Overcast',
|
||||
45: 'Fog', 48: 'Rime fog', 51: 'Light drizzle', 53: 'Drizzle', 55: 'Dense drizzle',
|
||||
56: 'Freezing drizzle', 57: 'Freezing drizzle', 61: 'Light rain', 63: 'Rain', 65: 'Heavy rain',
|
||||
66: 'Freezing rain', 67: 'Freezing rain', 71: 'Light snow', 73: 'Snow', 75: 'Heavy snow',
|
||||
77: 'Snow grains', 80: 'Light showers', 81: 'Showers', 82: 'Violent showers',
|
||||
85: 'Snow showers', 86: 'Snow showers', 95: 'Thunderstorm', 96: 'Thunderstorm with hail', 99: 'Thunderstorm with hail'
|
||||
};
|
||||
var WET = [51,53,55,56,57,61,63,65,66,67,71,73,75,77,80,81,82,85,86,95,96,99];
|
||||
var LAT = WX_LAT, LNG = WX_LNG;
|
||||
fetch('https://api.open-meteo.com/v1/forecast?latitude=' + LAT + '&longitude=' + LNG +
|
||||
'¤t=temperature_2m,apparent_temperature,weather_code,wind_speed_10m&timezone=auto')
|
||||
.then(function (r) { if (!r.ok) throw 0; return r.json(); })
|
||||
.then(function (j) {
|
||||
var c = j.current; if (!c || c.temperature_2m == null) throw 0;
|
||||
var code = c.weather_code;
|
||||
document.getElementById('wx-t').textContent = Math.round(c.temperature_2m);
|
||||
document.getElementById('wx-c').textContent = WMO[code] || 'Current conditions';
|
||||
document.getElementById('wx-m').textContent =
|
||||
'Feels like ' + Math.round(c.apparent_temperature) + '°C · wind ' +
|
||||
Math.round(c.wind_speed_10m) + ' km/h · observed ' + String(c.time).replace('T', ' ');
|
||||
document.getElementById('wx-n').textContent = WET.indexOf(code) >= 0
|
||||
? 'Wet outside. The Culture and Shopping listings below are indoors.'
|
||||
: (c.temperature_2m >= 30
|
||||
? 'Hot today. The Culture and Shopping listings below are indoors.'
|
||||
: (c.temperature_2m <= 0
|
||||
? 'Below freezing. The Culture and Shopping listings below are indoors.'
|
||||
: 'Dry at the moment. The walking times below are on foot from the clinic.'));
|
||||
document.getElementById('weather').hidden = false;
|
||||
})
|
||||
.catch(function () { /* 못 받으면 숨긴 채 둔다 */ });
|
||||
})();
|
||||
|
||||
var sc = document.querySelectorAll('#festivals .chip');
|
||||
sc.forEach(function (c) {
|
||||
c.addEventListener('click', function () {
|
||||
sc.forEach(function (x) { x.classList.toggle('on', x === c); });
|
||||
var want = c.dataset.season;
|
||||
document.querySelectorAll('#festivals .card').forEach(function (card) {
|
||||
card.hidden = !(want === 'all' || card.dataset.season === want);
|
||||
});
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</Base>
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
// 회복기 스케줄러 한국어 페이지. 본문은 components/Planner.astro. 영어 페이지는 /en/plan.
|
||||
import Base from '../layouts/Base.astro';
|
||||
import Planner from '../components/Planner.astro';
|
||||
import { fact, SITE_NAME, clinicSchema, v } from '../lib';
|
||||
const f = fact as Record<string, any>;
|
||||
const clinic = v(f.shortName, '병원');
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
const ld = [
|
||||
{ '@type': 'WebPage', '@id': `${site}/plan#page`, name: `${clinic} 회복 일정 플래너`, url: `${site}/plan`, inLanguage: 'ko', isPartOf: { '@id': `${site}/#website` }, about: { '@id': `${fact.url}/#clinic` }, publisher: { '@type': 'Organization', name: SITE_NAME, url: site } },
|
||||
clinicSchema(site),
|
||||
];
|
||||
---
|
||||
<Base title="회복 일정 · 입국일, 출국 가능일, 회복기 외출 계획" description={`${clinic} 수술일을 기준으로 입국 권장일, 출국 가능 최소일, 회복기 동안 외출할 수 있는 날과 갈 만한 곳, 병원 근처 숙소를 한 화면에서 정리합니다. 외국에서 오시는 분을 위한 일정표입니다.`} jsonLd={ld} alternates={[{ lang: 'ko', href: '/plan' }, { lang: 'en', href: '/en/plan' }]}>
|
||||
<Planner lang="ko" />
|
||||
</Base>
|
||||
@@ -11,8 +11,8 @@ export const GET: APIRoute = async ({ site }) => {
|
||||
{ loc: `${base}/posts`, lastmod: today },
|
||||
{ loc: `${base}/clinic`, lastmod: today },
|
||||
{ loc: `${base}/visit`, lastmod: today },
|
||||
{ loc: `${base}/stay`, lastmod: today },
|
||||
{ loc: `${base}/en/stay`, lastmod: today },
|
||||
{ loc: `${base}/plan`, lastmod: today },
|
||||
{ loc: `${base}/en/plan`, lastmod: today },
|
||||
{ loc: `${base}/newsroom`, lastmod: today },
|
||||
{ loc: `${base}/videos`, lastmod: today },
|
||||
{ loc: `${base}/about`, lastmod: today },
|
||||
|
||||
@@ -1,445 +0,0 @@
|
||||
---
|
||||
// 병원 주변 안내(한국어). /en/stay 의 한국어 짝이다. 데이터는 국문 서비스(KorService2)라
|
||||
// 영문보다 훨씬 많다(음식점 338건·숙박 43건 대 18건·4건).
|
||||
// 구조는 /en/stay 와 같다. 세 부분이다.
|
||||
// 1. 병원 주변 — 도보·차 소요 시간으로 거른 주변 장소
|
||||
// 2. Festivals — 계절로 묶은 행사
|
||||
// 3. Suggested days — 시간표와 지도가 붙은 동선
|
||||
//
|
||||
// 데이터는 한국관광공사 TourAPI 영문(EngService2)에서 scripts/fetch_medical_tourism.py 가
|
||||
// 미리 수집한 src/data/medicalTourism.json 이다. 설명문은 detailCommon2 의 overview 다.
|
||||
//
|
||||
// 만들지 않는 것
|
||||
// - 평점·리뷰·영업시간: TourAPI 미제공. 싣지 않는다.
|
||||
// - 링크: 공식 홈페이지가 있을 때만 걸고, 없으면 검색으로 보낸다. 주소를 지어내지 않는다.
|
||||
// - 식이 적합성·회복 일수: 의학 판단이라 병원 확정값만 쓴다.
|
||||
// - 일정의 시각: 진료 종료 시각을 가정으로 못박아 화면에 밝힌다. 병원 일정이 아니다.
|
||||
import Base from '../layouts/Base.astro';
|
||||
import { fact, site as S, SITE_NAME, clinicSchema, has, v, reservationUrl } from '../lib';
|
||||
import data from '../data/medicalTourismKo.json';
|
||||
|
||||
const f = fact as Record<string, any>;
|
||||
const Sx = S as Record<string, any>;
|
||||
const clinic = f.shortName || '병원';
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
const T = data as any;
|
||||
|
||||
type Place = {
|
||||
id: string; title: string; address: string; image: string | null; overview: string;
|
||||
homepage: string; lat: number | null; lng: number | null; distanceM: number | null;
|
||||
travel: { mode: string; minutes: number; label: string } | null;
|
||||
};
|
||||
|
||||
const GROUPS: Array<{ key: string; label: string; note: string }> = [
|
||||
{ key: 'restaurant', label: '식사', note: '음식점과 카페' },
|
||||
{ key: 'stay', label: '숙박', note: '묵을 곳' },
|
||||
{ key: 'wellness', label: '휴식', note: '스파와 찜질방' },
|
||||
{ key: 'attraction', label: '관광', note: '거리, 공원, 명소' },
|
||||
{ key: 'culture', label: '문화', note: '미술관, 공연장' },
|
||||
{ key: 'shopping', label: '쇼핑', note: '백화점과 시장' },
|
||||
];
|
||||
|
||||
const SEASONS = [
|
||||
{ key: 'spring', label: '봄' }, { key: 'summer', label: '여름' },
|
||||
{ key: 'autumn', label: '가을' }, { key: 'winter', label: '겨울' },
|
||||
];
|
||||
const MONTHS = ['', '1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'];
|
||||
const nowSeasonKey = ['winter', 'winter', 'spring', 'spring', 'spring', 'summer', 'summer', 'summer', 'autumn', 'autumn', 'autumn', 'winter'][new Date().getMonth()];
|
||||
const nowSeason = ({ spring: '봄', summer: '여름', autumn: '가을', winter: '겨울' } as Record<string, string>)[nowSeasonKey];
|
||||
|
||||
// 검색으로 보낸다. 없는 URL 을 만들지 않는다.
|
||||
// 없는 URL 을 만들지 않는다. 공식 홈페이지가 없으면 검색으로 보낸다.
|
||||
const searchUrl = (q: string) => `https://search.naver.com/search.naver?query=${encodeURIComponent(q)}`;
|
||||
// 칩은 누적 임계값으로 거른다. 카드에 이동수단과 도보 분을 실어 두면 스크립트가 판단한다.
|
||||
const dt = (d: string | null) => (d && d.length === 8 ? `${+d.slice(4, 6)}.${+d.slice(6, 8)}` : '');
|
||||
// 사진이 없을 때 이름을 대신 넣는다. 빈 회색칸보다 낫고, 없는 사진을 지어내지도 않는다.
|
||||
const shortName = (t: string) => {
|
||||
const m = t.match(/\(([^)]+)\)\s*$/);
|
||||
return (m ? m[1] : t).replace(/\s*\[.*\]\s*/g, '').trim();
|
||||
};
|
||||
// travel.label 은 데이터에 영문으로 들어 있다. 한국어 화면에서는 여기서 만든다.
|
||||
const travelLabel = (t: { mode: string; minutes: number } | null) =>
|
||||
!t ? '' : t.mode === 'walk' ? `도보 ${t.minutes}분` : `차로 ${t.minutes}분`;
|
||||
const firstSentence = (s: string, n = 150) => {
|
||||
if (!s) return '';
|
||||
const cut = s.slice(0, n);
|
||||
const stop = cut.lastIndexOf('. ');
|
||||
return (stop > 60 ? cut.slice(0, stop + 1) : cut) + (s.length > n ? '…' : '');
|
||||
};
|
||||
|
||||
/* ── 동선. 실제 데이터에서 만들고, 시각은 가정임을 화면에 밝힌다. ── */
|
||||
const oLat = T.meta.origin.lat, oLng = T.meta.origin.lng;
|
||||
const pick = (key: string, maxMin: number, n: number): Place[] =>
|
||||
((T.places[key] ?? []) as Place[])
|
||||
.filter((p) => p.travel && p.travel.mode === 'walk' && p.travel.minutes <= maxMin && p.lat)
|
||||
.slice(0, n);
|
||||
const pickAny = (key: string, n: number): Place[] => ((T.places[key] ?? []) as Place[]).filter((p) => p.lat).slice(0, n);
|
||||
|
||||
const hhmm = (m: number) => `${String(Math.floor(m / 60) % 24).padStart(2, '0')}:${String(m % 60).padStart(2, '0')}`;
|
||||
function buildRoute(startMin: number, stops: Array<{ p: Place | null; label: string; stay: number; note: string }>) {
|
||||
let t = startMin;
|
||||
const out: any[] = [];
|
||||
stops.forEach((s, i) => {
|
||||
const move = i === 0 ? 0 : (s.p?.travel?.minutes ?? 5);
|
||||
t += move;
|
||||
const from = t;
|
||||
t += s.stay;
|
||||
out.push({ ...s, moveMin: move, from: hhmm(from), to: hhmm(t), lat: s.p?.lat ?? oLat, lng: s.p?.lng ?? oLng });
|
||||
});
|
||||
return { stops: out, total: t - startMin, from: hhmm(startMin), to: hhmm(t) };
|
||||
}
|
||||
const clinicStop = (label: string, stay: number, note: string) => ({ p: null, label, stay, note });
|
||||
|
||||
const ROUTES = [
|
||||
{
|
||||
id: 'near', title: 'The day of a check-up', who: 'When you come back to the clinic often',
|
||||
blurb: 'Everything within a short walk. You do not need a taxi.',
|
||||
route: buildRoute(15 * 60, [
|
||||
clinicStop(clinic, 40, 'Your appointment ends here.'),
|
||||
...pick('restaurant', 10, 1).map((p) => ({ p, label: p.title, stay: 50, note: firstSentence(p.overview, 90) })),
|
||||
...pick('wellness', 12, 1).map((p) => ({ p, label: p.title, stay: 60, note: firstSentence(p.overview, 90) })),
|
||||
]),
|
||||
},
|
||||
{
|
||||
id: 'short', title: 'A short outing', who: 'When you can walk a little further',
|
||||
blurb: 'Still close, but out of the block.',
|
||||
route: buildRoute(13 * 60, [
|
||||
clinicStop(clinic, 20, 'Start from the clinic.'),
|
||||
...pickAny('shopping', 1).map((p) => ({ p, label: p.title, stay: 60, note: firstSentence(p.overview, 90) })),
|
||||
...pickAny('restaurant', 2).slice(1, 2).map((p) => ({ p, label: p.title, stay: 60, note: firstSentence(p.overview, 90) })),
|
||||
]),
|
||||
},
|
||||
{
|
||||
id: 'city', title: 'When you can travel', who: 'Later in your stay',
|
||||
blurb: 'Sights across the city. Expect to take a taxi or the subway.',
|
||||
route: buildRoute(10 * 60, [
|
||||
clinicStop(clinic, 10, 'Set off from the clinic.'),
|
||||
...pickAny('attraction', 2).map((p) => ({ p, label: p.title, stay: 70, note: firstSentence(p.overview, 90) })),
|
||||
...pickAny('culture', 1).map((p) => ({ p, label: p.title, stay: 70, note: firstSentence(p.overview, 90) })),
|
||||
]),
|
||||
},
|
||||
].filter((r) => r.route.stops.length > 1);
|
||||
|
||||
/* OpenStreetMap 타일을 좌표로 직접 깔아 지도를 만든다. 지도 라이브러리를 부르지 않는다.
|
||||
빈 회색 칸에 점만 찍으면 어디인지 알 수 없어서, 실제 거리·블록이 보이게 한다.
|
||||
타일은 OSM 정책상 출처를 반드시 표기한다. */
|
||||
const TILE = 256, MAPW = 680, MAPH = 340;
|
||||
const lngToPx = (lng: number, z: number) => ((lng + 180) / 360) * TILE * 2 ** z;
|
||||
const latToPx = (lat: number, z: number) => {
|
||||
const r = (lat * Math.PI) / 180;
|
||||
return ((1 - Math.log(Math.tan(r) + 1 / Math.cos(r)) / Math.PI) / 2) * TILE * 2 ** z;
|
||||
};
|
||||
|
||||
function miniMap(stops: any[]) {
|
||||
const lats = stops.map((s) => s.lat), lngs = stops.map((s) => s.lng);
|
||||
const [la0, la1] = [Math.min(...lats), Math.max(...lats)];
|
||||
const [ln0, ln1] = [Math.min(...lngs), Math.max(...lngs)];
|
||||
// 모든 지점이 여백 안에 들어오는 가장 확대된 배율을 고른다.
|
||||
let z = 17;
|
||||
for (; z > 10; z--) {
|
||||
const w = lngToPx(ln1, z) - lngToPx(ln0, z);
|
||||
const h = latToPx(la0, z) - latToPx(la1, z);
|
||||
if (w <= MAPW - 90 && h <= MAPH - 90) break;
|
||||
}
|
||||
const cx = (lngToPx(ln0, z) + lngToPx(ln1, z)) / 2;
|
||||
const cy = (latToPx(la0, z) + latToPx(la1, z)) / 2;
|
||||
const left = cx - MAPW / 2, top = cy - MAPH / 2;
|
||||
const tiles: Array<{ src: string; x: number; y: number }> = [];
|
||||
for (let tx = Math.floor(left / TILE); tx <= Math.floor((left + MAPW) / TILE); tx++) {
|
||||
for (let ty = Math.floor(top / TILE); ty <= Math.floor((top + MAPH) / TILE); ty++) {
|
||||
const n = 2 ** z;
|
||||
if (tx < 0 || ty < 0 || tx >= n || ty >= n) continue;
|
||||
tiles.push({ src: `https://tile.openstreetmap.org/${z}/${tx}/${ty}.png`, x: tx * TILE - left, y: ty * TILE - top });
|
||||
}
|
||||
}
|
||||
const pins = stops.map((s, i) => ({
|
||||
x: +(lngToPx(s.lng, z) - left).toFixed(1),
|
||||
y: +(latToPx(s.lat, z) - top).toFixed(1),
|
||||
n: i + 1, label: s.label,
|
||||
}));
|
||||
return { tiles, pins, z };
|
||||
}
|
||||
|
||||
const allPlaces: Array<Place & { cat: string }> = GROUPS.flatMap((g) =>
|
||||
((T.places[g.key] ?? []) as Place[]).map((p) => ({ ...p, cat: g.key })));
|
||||
|
||||
const ld = [
|
||||
{ '@type': 'WebPage', '@id': `${site}/stay#page`, name: `${clinic} 주변 안내`, url: `${site}/stay`, inLanguage: 'ko', isPartOf: { '@id': `${site}/#website` }, about: { '@id': `${f.url}/#clinic` }, publisher: { '@type': 'Organization', name: SITE_NAME, url: site } },
|
||||
clinicSchema(site),
|
||||
];
|
||||
---
|
||||
<Base
|
||||
title={`${clinic} 주변 안내 · 식사, 숙박, 휴식, 관광, 축제`}
|
||||
description={`${clinic} 주변에서 어디서 먹고 묵고 쉴 수 있는지, 무엇을 볼 수 있는지, 어떤 축제가 열리는지를 병원에서의 거리와 도보 시간으로 정리했습니다. 출처는 한국관광공사입니다.`}
|
||||
jsonLd={ld}
|
||||
>
|
||||
<article class="wrap-wide stay">
|
||||
<header class="article-head">
|
||||
<div class="eyebrow">병원 주변</div>
|
||||
<h1 class="serif">병원 주변 안내</h1>
|
||||
<p class="lede">
|
||||
<strong>{clinic} 주변입니다.</strong> 아래 거리와 시간은 모두 {v(f.address?.full)} 기준입니다.
|
||||
상호와 사진, 설명은 한국관광공사 자료입니다. 병원의 진료시간과 전화는 <a href="/clinic">병원 정보</a>에 있습니다.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<!-- 오늘 날씨. 빌드 시점이 아니라 브라우저에서 받는다. 정적 빌드에 넣으면 배포 시각의
|
||||
날씨가 굳는다. 값을 못 받으면 이 블록은 통째로 사라진다(틀린 날씨를 보이지 않는다).
|
||||
Open-Meteo 는 키가 필요 없고 CORS 를 허용한다. -->
|
||||
<aside id="weather" class="wx" hidden>
|
||||
<div class="wx-now">
|
||||
<span class="wx-temp"><span id="wx-t">–</span><span class="wx-unit">°C</span></span>
|
||||
<div>
|
||||
<div class="wx-cond" id="wx-c">불러오는 중</div>
|
||||
<div class="wx-meta" id="wx-m"></div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="wx-note" id="wx-n"></p>
|
||||
</aside>
|
||||
|
||||
<!-- 섹션이 길어 스크롤이 부담스럽다. 머리말 아래 붙여 어디서든 건너뛰게 한다. -->
|
||||
<nav class="jump" aria-label="섹션으로 이동">
|
||||
{GROUPS.filter((g) => (T.places[g.key] ?? []).length).map((g) => (
|
||||
<a href={`#g-${g.key}`}>{g.label}<b>{(T.places[g.key] ?? []).length}</b></a>
|
||||
))}
|
||||
<a href="#festivals">축제<b>{T.festivals.length}</b></a>
|
||||
<a href="#days">동선<b>{ROUTES.length}</b></a>
|
||||
</nav>
|
||||
|
||||
<!-- ── 1. 주변 ── -->
|
||||
<section id="around">
|
||||
<div class="sec-head">
|
||||
<h2>병원 주변</h2>
|
||||
<span class="upd">{T.meta.fetchedAt.slice(0, 10)} 갱신</span>
|
||||
</div>
|
||||
<p class="sub">{T.filters.total}곳입니다. 병원에서 걸어가는 시간 순으로 놓았습니다.</p>
|
||||
|
||||
<div class="chips" id="walkchips" role="group" aria-label="이동 시간으로 거르기">
|
||||
<button class="chip on" data-max="all">전체 <b>{T.filters.total}</b></button>
|
||||
<button class="chip" data-max="5">도보 5분 이내 <b>{T.filters.walk5}</b></button>
|
||||
<button class="chip" data-max="15">도보 15분 이내 <b>{T.filters.walk15}</b></button>
|
||||
<button class="chip" data-max="walk">걸어갈 수 있는 곳 <b>{T.filters.walkAll}</b></button>
|
||||
<button class="chip" data-max="drive">차로 가는 곳 <b>{T.filters.drive}</b></button>
|
||||
</div>
|
||||
|
||||
{GROUPS.map((g) => {
|
||||
const items = allPlaces.filter((p) => p.cat === g.key);
|
||||
if (!items.length) return null;
|
||||
return (
|
||||
<div class="grp" id={`g-${g.key}`} data-group={g.key}>
|
||||
<h3>{g.label} <small>{g.note}</small></h3>
|
||||
<div class="cards">
|
||||
{items.map((p) => (
|
||||
<article class="card" data-mode={p.travel?.mode ?? 'drive'} data-walk={p.travel?.mode === 'walk' ? p.travel.minutes : ''}>
|
||||
<div class="thumb">
|
||||
{p.image ? <img src={p.image} alt={`${p.title} — ${g.label.toLowerCase()} near ${clinic}`} loading="lazy" referrerpolicy="no-referrer" /> : <span class="nophoto">{shortName(p.title)}</span>}
|
||||
{p.travel && <span class="badge">{travelLabel(p.travel)} <em>{p.distanceM! < 1000 ? `${p.distanceM} m` : `${(p.distanceM! / 1000).toFixed(1)} km`}</em></span>}
|
||||
</div>
|
||||
<div class="body">
|
||||
<h4>{p.title}</h4>
|
||||
<p class="desc">{firstSentence(p.overview) || '관광 자료에 설명이 없습니다.'}</p>
|
||||
<p class="addr">{p.address}</p>
|
||||
{p.homepage
|
||||
? <a class="go" href={p.homepage} rel="noopener nofollow">공식 홈페이지 ↗</a>
|
||||
: <a class="go" href={searchUrl(p.title.replace(/\s*\(.*\)\s*$/, ''))} rel="noopener nofollow">검색으로 열기 ↗</a>}
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<p class="src">출처 · 한국관광공사 TourAPI. 도보 시간은 분당 80m로 어림한 값이며 실제 경로 거리가 아닙니다.</p>
|
||||
</section>
|
||||
|
||||
<!-- ── 2. 축제 ── -->
|
||||
<section id="festivals">
|
||||
<div class="sec-head"><h2>계절별 축제</h2></div>
|
||||
<p class="sub">{T.meta.festivalRadiusKm}km 안의 행사 {T.festivals.length}건을 계절로 묶었습니다. 지금은 <strong>{nowSeason}</strong>입니다.</p>
|
||||
<div class="chips" role="group" aria-label="계절로 거르기">
|
||||
<button class="chip on" data-season="all">전체 <b>{T.festivals.length}</b></button>
|
||||
{SEASONS.map((s) => {
|
||||
const n = T.festivals.filter((e: any) => e.season === s.key).length;
|
||||
return n ? <button class="chip" data-season={s.key}>{s.label} <b>{n}</b></button> : null;
|
||||
})}
|
||||
</div>
|
||||
<div class="cards fest">
|
||||
{T.festivals.map((e: any) => (
|
||||
<article class="card" data-season={e.season}>
|
||||
<div class="thumb">
|
||||
{e.image ? <img src={e.image} alt={`${e.title} — festival near ${clinic}`} loading="lazy" referrerpolicy="no-referrer" /> : <span class="nophoto">{shortName(e.title)}</span>}
|
||||
<span class="badge mono">{MONTHS[e.month] ?? ''}</span>
|
||||
</div>
|
||||
<div class="body">
|
||||
<h4>{e.title}</h4>
|
||||
<p class="when">{dt(e.startDate)} – {dt(e.endDate)} · {e.travel ? travelLabel(e.travel) : `${e.distanceKm}km`}</p>
|
||||
<p class="desc">{firstSentence(e.overview) || '관광 자료에 설명이 없습니다.'}</p>
|
||||
<p class="addr">{e.address}</p>
|
||||
<a class="go" href={searchUrl(e.title.replace(/\s*\(.*\)\s*$/, ''))} rel="noopener nofollow">검색으로 열기 ↗</a>
|
||||
</div>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
<p class="src">출처 · 한국관광공사 TourAPI. 일정은 주최 측 사정으로 바뀔 수 있습니다.</p>
|
||||
</section>
|
||||
|
||||
<!-- ── 3. 동선 ── -->
|
||||
<section id="days">
|
||||
<div class="sec-head"><h2>하루 동선</h2></div>
|
||||
<p class="sub">
|
||||
위 장소들로 짠 동선 세 가지입니다. 시각은 진료가 그 시각에 끝난다고 가정한 예시이며 실제 일정이 아닙니다.
|
||||
</p>
|
||||
{Sx.recoveryStagesKo
|
||||
? <p><strong>{clinic} 안내.</strong> {Sx.recoveryStagesKo}</p>
|
||||
: <p class="pending-note">어느 날 무엇을 해도 되는지는 의학 판단이라 {clinic}이 정합니다. 아직 확인 대기입니다. 상담 때 확인하세요.</p>}
|
||||
|
||||
{ROUTES.map((r) => {
|
||||
const pins = miniMap(r.route.stops);
|
||||
return (
|
||||
<div class="route">
|
||||
<div class="route-head">
|
||||
<div>
|
||||
<h3>{r.title}</h3>
|
||||
<p class="who">{r.who}</p>
|
||||
</div>
|
||||
<div class="clock">{r.route.from}–{r.route.to} · {Math.floor(r.route.total / 60)}h {r.route.total % 60}m</div>
|
||||
</div>
|
||||
<p class="blurb">{r.blurb}</p>
|
||||
<div class="map" role="img" aria-label={`동선 지도, 정차 ${pins.pins.length}곳: ${pins.pins.map((p) => p.label).join(', ')}`}>
|
||||
<div class="map-tiles">
|
||||
{/* 타일은 장식이다. 지도의 뜻은 감싸는 요소의 aria-label 이 전한다.
|
||||
img 대신 배경으로 두어 스크린리더가 256개 조각을 읽지 않게 한다. */}
|
||||
{pins.tiles.map((t) => (
|
||||
<div class="tile" style={`left:${t.x}px;top:${t.y}px;background-image:url('${t.src}')`} />
|
||||
))}
|
||||
</div>
|
||||
<svg class="map-pins" viewBox={`0 0 ${MAPW} ${MAPH}`} aria-hidden="true">
|
||||
<polyline points={pins.pins.map((p) => `${p.x},${p.y}`).join(' ')} fill="none" stroke="#0A1128" stroke-width="3" stroke-dasharray="6 5" opacity="0.65" />
|
||||
{pins.pins.map((p) => (
|
||||
<g><circle cx={p.x} cy={p.y} r="13" fill="#0A1128" stroke="#fff" stroke-width="2.5" /><text x={p.x} y={p.y + 4.5} text-anchor="middle" font-size="12" font-weight="700" fill="#fff">{p.n}</text></g>
|
||||
))}
|
||||
</svg>
|
||||
<span class="map-credit">© OpenStreetMap contributors</span>
|
||||
</div>
|
||||
<ol class="timeline">
|
||||
{r.route.stops.map((s: any, i: number) => (
|
||||
<li>
|
||||
{i > 0 && <div class="move">↓ {s.moveMin} min</div>}
|
||||
<div class="stop">
|
||||
<span class="n">{i + 1}</span>
|
||||
<div>
|
||||
<div class="stop-t">{s.from}–{s.to}</div>
|
||||
<h4>{s.label}</h4>
|
||||
<p>{s.note}</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</section>
|
||||
|
||||
<section id="limits">
|
||||
<h2>이 페이지가 답하지 못하는 것</h2>
|
||||
<ul>
|
||||
<li>평점·리뷰 수·영업시간은 없습니다. 관광 자료가 주지 않습니다.</li>
|
||||
<li>어떤 곳이 회복에 맞는지는 말하지 않습니다. {clinic}이 정할 일입니다.</li>
|
||||
<li>도보 5분 안에는 {T.filters.walk5}곳뿐이고, {T.filters.total}곳 중 {T.filters.drive}곳은 차로 가야 합니다.</li>
|
||||
<li>여행사가 아닙니다. 예약을 받지 않고 수수료도 받지 않습니다.</li>
|
||||
</ul>
|
||||
<p class="botnote">
|
||||
{has(reservationUrl) && <a class="btn primary" href={reservationUrl} rel="noopener">{clinic} 상담 예약</a>}
|
||||
</p>
|
||||
<p class="disclosure">{f.sideEffectNoticeEn || f.sideEffectNotice}</p>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
<script is:inline define:vars={{ WX_LAT: T.meta.origin.lat, WX_LNG: T.meta.origin.lng }}>
|
||||
// 이동 시간 필터. 임계값은 누적이라 "15분 이내"가 5분 이내도 포함한다.
|
||||
// 걸러져 비게 된 그룹은 제목만 남지 않도록 통째로 숨긴다.
|
||||
(function () {
|
||||
var chips = document.querySelectorAll('#walkchips .chip');
|
||||
chips.forEach(function (c) {
|
||||
c.addEventListener('click', function () {
|
||||
chips.forEach(function (x) { x.classList.toggle('on', x === c); });
|
||||
var want = c.dataset.max;
|
||||
document.querySelectorAll('#around .card').forEach(function (card) {
|
||||
var mode = card.dataset.mode, w = parseInt(card.dataset.walk || '', 10);
|
||||
var show = want === 'all' ? true
|
||||
: want === 'walk' ? mode === 'walk'
|
||||
: want === 'drive' ? mode !== 'walk'
|
||||
: mode === 'walk' && w <= parseInt(want, 10);
|
||||
card.hidden = !show;
|
||||
});
|
||||
document.querySelectorAll('#around .grp').forEach(function (g) {
|
||||
g.hidden = ![].slice.call(g.querySelectorAll('.card')).some(function (x) { return !x.hidden; });
|
||||
});
|
||||
});
|
||||
});
|
||||
// 지금 화면에 있는 섹션의 버튼을 켠다. 섹션이 많아 어디쯤인지 알기 어렵다.
|
||||
var links = [].slice.call(document.querySelectorAll('.jump a'));
|
||||
var targets = links.map(function (a) { return document.querySelector(a.getAttribute('href')); });
|
||||
if ('IntersectionObserver' in window) {
|
||||
var seen = {};
|
||||
var io = new IntersectionObserver(function (entries) {
|
||||
entries.forEach(function (e) { seen[e.target.id] = e.isIntersecting ? e.intersectionRatio : 0; });
|
||||
var best = null, top = 0;
|
||||
targets.forEach(function (t) {
|
||||
if (t && (seen[t.id] || 0) > top) { top = seen[t.id]; best = t.id; }
|
||||
});
|
||||
links.forEach(function (a) { a.classList.toggle('on', best !== null && a.getAttribute('href') === '#' + best); });
|
||||
}, { rootMargin: '-150px 0px -55% 0px', threshold: [0, 0.15, 0.4, 0.75, 1] });
|
||||
targets.forEach(function (t) { if (t) io.observe(t); });
|
||||
}
|
||||
|
||||
// 오늘 날씨. Open-Meteo, 키 없음. 실패하면 블록을 숨긴 채 둔다.
|
||||
// 문구는 이 페이지의 목록에만 연결한다. 무엇을 해도 되는지는 의학 판단이라 말하지 않는다.
|
||||
(function () {
|
||||
var WMO = {
|
||||
0: '맑음', 1: '대체로 맑음', 2: '구름 조금', 3: '흐림',
|
||||
45: '안개', 48: '서리 안개', 51: '약한 이슬비', 53: '이슬비', 55: '강한 이슬비',
|
||||
56: '언 이슬비', 57: '언 이슬비', 61: '약한 비', 63: '비', 65: '강한 비',
|
||||
66: '언 비', 67: '언 비', 71: '약한 눈', 73: '눈', 75: '강한 눈',
|
||||
77: '싸락눈', 80: '약한 소나기', 81: '소나기', 82: '강한 소나기',
|
||||
85: '진눈깨비', 86: '진눈깨비', 95: '뇌우', 96: '우박을 동반한 뇌우', 99: '우박을 동반한 뇌우'
|
||||
};
|
||||
var WET = [51,53,55,56,57,61,63,65,66,67,71,73,75,77,80,81,82,85,86,95,96,99];
|
||||
var LAT = WX_LAT, LNG = WX_LNG;
|
||||
fetch('https://api.open-meteo.com/v1/forecast?latitude=' + LAT + '&longitude=' + LNG +
|
||||
'¤t=temperature_2m,apparent_temperature,weather_code,wind_speed_10m&timezone=auto')
|
||||
.then(function (r) { if (!r.ok) throw 0; return r.json(); })
|
||||
.then(function (j) {
|
||||
var c = j.current; if (!c || c.temperature_2m == null) throw 0;
|
||||
var code = c.weather_code;
|
||||
document.getElementById('wx-t').textContent = Math.round(c.temperature_2m);
|
||||
document.getElementById('wx-c').textContent = WMO[code] || '현재 날씨';
|
||||
document.getElementById('wx-m').textContent =
|
||||
'체감 ' + Math.round(c.apparent_temperature) + '°C · 바람 ' +
|
||||
Math.round(c.wind_speed_10m) + ' km/h · ' + String(c.time).replace('T', ' ') + ' 관측';
|
||||
document.getElementById('wx-n').textContent = WET.indexOf(code) >= 0
|
||||
? '비가 옵니다. 아래 문화·쇼핑 항목은 실내입니다.'
|
||||
: (c.temperature_2m >= 30
|
||||
? '더운 날입니다. 아래 문화·쇼핑 항목은 실내입니다.'
|
||||
: (c.temperature_2m <= 0
|
||||
? '영하입니다. 아래 문화·쇼핑 항목은 실내입니다.'
|
||||
: '지금은 비가 오지 않습니다. 아래 시간은 병원에서 걸어가는 기준입니다.'));
|
||||
document.getElementById('weather').hidden = false;
|
||||
})
|
||||
.catch(function () { /* 못 받으면 숨긴 채 둔다 */ });
|
||||
})();
|
||||
|
||||
var sc = document.querySelectorAll('#festivals .chip');
|
||||
sc.forEach(function (c) {
|
||||
c.addEventListener('click', function () {
|
||||
sc.forEach(function (x) { x.classList.toggle('on', x === c); });
|
||||
var want = c.dataset.season;
|
||||
document.querySelectorAll('#festivals .card').forEach(function (card) {
|
||||
card.hidden = !(want === 'all' || card.dataset.season === want);
|
||||
});
|
||||
});
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</Base>
|
||||
@@ -42,7 +42,7 @@ const ld = [
|
||||
{!(S.visitReads ?? []).length && <li>검토를 마친 글부터 차례로 연결합니다.</li>}
|
||||
</ul>
|
||||
<h2>6. 해외에서 오시는 경우</h2>
|
||||
<p>수술 전후에 머무는 동안의 숙박·식사·회복·관광 정보를 영문으로 정리했습니다. <a href="/en/stay" hreflang="en">Your Stay in Seoul</a>.</p>
|
||||
<p>수술 전후에 머무는 동안의 숙박·식사·회복·관광 정보를 영문으로 정리했습니다. <a href="/en/plan" hreflang="en">Recovery Planner</a>.</p>
|
||||
|
||||
<p style="margin-top:2rem">{has(reservationUrl) && <a class="btn primary" href={reservationUrl} rel="noopener">{clinic} 상담 예약</a>}</p>
|
||||
<p class="disclosure">{fact.sideEffectNotice}</p>
|
||||
|
||||
@@ -387,6 +387,24 @@ td { color: var(--slate-700); }
|
||||
.stay .timeline h4 { margin: 0.1rem 0 0.2rem; font-size: 0.98rem; }
|
||||
.stay .timeline p { margin: 0; font-size: 0.86rem; color: var(--slate-600, #475569); }
|
||||
.stay .botnote { margin-top: 1.6rem; }
|
||||
/* 시술 후 관리 안내(병원 원문 인용). 동선 카드(.route)·정차(.stop) 룩을 그대로 쓰고 접이식 동작만 더한다. 새 색·크기 없음. */
|
||||
.stay details.recovery > summary.btn { list-style: none; cursor: pointer; }
|
||||
.stay details.recovery > summary.btn::-webkit-details-marker { display: none; }
|
||||
.stay details.recovery > summary.btn .hide { display: none; }
|
||||
.stay details.recovery[open] > summary.btn .show { display: none; }
|
||||
.stay details.recovery[open] > summary.btn .hide { display: inline; }
|
||||
.stay details.recovery[open] > summary.btn { margin-bottom: 1.1rem; }
|
||||
.stay details.recovery > .timeline { margin-top: 0.2rem; }
|
||||
.stay .recovery .timeline > li { border-top: 1px solid var(--line, #E2E8F0); padding: 0.7rem 0; }
|
||||
.stay .recovery .timeline > li:first-child { border-top: 0; padding-top: 0; }
|
||||
.stay .recovery summary { cursor: pointer; list-style: none; }
|
||||
.stay .recovery summary::-webkit-details-marker { display: none; }
|
||||
.stay .recovery summary .stop { display: flex; }
|
||||
.stay .recovery summary h4 { margin: 0.1rem 0 0; }
|
||||
.stay .recovery details[open] summary h4 { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--slate-200, #E2E8F0); }
|
||||
.stay .recovery details > ul { margin: 0.7rem 0 0.5rem 2.2rem; padding-left: 1.1rem; }
|
||||
.stay .recovery details > ul li { font-size: 0.9rem; color: var(--slate-700, #334155); margin-bottom: 0.35rem; }
|
||||
.stay .recovery details > p { margin: 0 0 0 2.2rem; font-size: 0.84rem; color: var(--slate-500, #64748B); }
|
||||
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
|
||||
|
||||
/* 섹션 점프. 머리말 아래에 붙어 스크롤을 따라온다. 헤더(68px) 아래에 걸리게 top 을 맞춘다. */
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
/* 회복기 스케줄러 (/plan, /en/plan). 섹션 리듬·카드·통계는 global.css 의 .section/.sec-head/.grid/.card/.stats/.stat 을 그대로 쓰고,
|
||||
여기에는 입력 컨트롤·타임라인·배지처럼 이 페이지에만 있는 요소만 둔다. 흰 배경 강조는 인디고, 연보라는 다크 전용. */
|
||||
:root { --indigo: #1D0024; }
|
||||
|
||||
/* 히어로 (다크, videos.astro 규격) */
|
||||
.plan-hero { padding: 3.5rem 0 3rem; }
|
||||
.plan-hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: 2.3rem; font-weight: 700; letter-spacing: 0; line-height: 1.15; display: inline-block; background: linear-gradient(to right, var(--purple-300), var(--blue-300)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
|
||||
.plan-hero .lede { color: rgba(255,255,255,0.82); font-size: 1.02rem; max-width: 760px; margin: 0.6rem 0 0; }
|
||||
.plan-hero .lede strong { color: #fff; }
|
||||
.lang-links a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem 0.45rem 0.55rem; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
|
||||
.lang-links a .ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.12); font-family: Inter, sans-serif; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--purple-200); }
|
||||
.lang-links a.on { background: linear-gradient(to right, var(--grad-start), var(--grad-end)); border-color: transparent; }
|
||||
.lang-links a.on .ico { background: rgba(255,255,255,0.2); color: #fff; }
|
||||
.lang-links a:hover { text-decoration: none; border-color: rgba(216,180,254,0.6); }
|
||||
.plan-hero .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
|
||||
|
||||
/* 입력 단계 카드 (틴트 섹션) */
|
||||
.steps-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 1.25rem; }
|
||||
.steps-grid .card.span { grid-column: 1 / -1; }
|
||||
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }
|
||||
.card .cat.step { display: inline-flex; align-items: center; gap: 0.45rem; }
|
||||
.card .cat.step .n { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px; background: linear-gradient(to right, var(--grad-start), var(--grad-end)); color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 0.8rem; font-weight: 700; }
|
||||
.card h3.serif { font-family: "Playfair Display", Georgia, serif; font-size: 1.12rem; }
|
||||
.card .sub2 { font-size: 0.88rem; color: var(--slate-600); margin: 0; flex: 0; }
|
||||
.card .hint { font-size: 0.83rem; color: var(--slate-500); margin: 0.4rem 0 0; flex: 0; }
|
||||
.field { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
|
||||
.field label { font-size: 0.82rem; font-weight: 600; color: var(--slate-600); }
|
||||
.field select, .field input[type="date"] { font: inherit; font-size: 1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; color: var(--indigo); max-width: 320px; }
|
||||
.lang-inline a { border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
|
||||
.lang-inline a.on { background: var(--primary-900); color: #fff; border-color: var(--primary-900); }
|
||||
|
||||
.proc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.55rem; }
|
||||
.proc-grid button { text-align: left; border: 1px solid var(--slate-200); background: #fff; border-radius: 14px; padding: 0.7rem 0.85rem; font: inherit; cursor: pointer; color: var(--indigo); display: grid; gap: 0.1rem; }
|
||||
.proc-grid button small { color: var(--slate-500); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: Inter, Pretendard, sans-serif; }
|
||||
.proc-grid button b { font-size: 0.95rem; font-weight: 700; }
|
||||
.proc-grid button.on { border-color: var(--accent); background: var(--st-good-bg); box-shadow: 0 0 0 2px rgba(108,92,231,0.25) inset; }
|
||||
|
||||
.pref-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
||||
.pref-row button { border: 1px solid var(--slate-200); background: #fff; color: var(--indigo); border-radius: 999px; padding: 0.5rem 1rem; font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
|
||||
.pref-row button.on { background: linear-gradient(to right, var(--grad-start), var(--grad-end)); color: #fff; border-color: transparent; }
|
||||
|
||||
.plan-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
|
||||
.btn.small { padding: 0.55rem 1rem; font-size: 0.88rem; }
|
||||
.btn.ghost { background: #fff; color: var(--indigo); border: 1px solid var(--slate-200); }
|
||||
button.btn { font: inherit; cursor: pointer; border: 0; }
|
||||
|
||||
/* 빈 상태 (다크) */
|
||||
.empty { text-align: center; padding: 2.4rem 1rem; border: 1px dashed rgba(255,255,255,0.25); border-radius: 16px; color: rgba(255,255,255,0.75); }
|
||||
.empty b { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 0.3rem; }
|
||||
|
||||
/* 배지 */
|
||||
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.55rem; border-radius: 999px; border: 1px solid transparent; vertical-align: middle; white-space: nowrap; }
|
||||
.tag.prov { background: var(--st-warning-bg); color: var(--st-warning-text); border-color: var(--st-warning-border); }
|
||||
.tag.clinic { background: var(--st-good-bg); color: var(--st-good-text); border-color: var(--st-good-border); }
|
||||
.tag.l0 { background: var(--st-critical-bg); color: var(--st-critical-text); border-color: var(--st-critical-border); }
|
||||
.tag.l1 { background: var(--st-warning-bg); color: var(--st-warning-text); border-color: var(--st-warning-border); }
|
||||
.tag.l2 { background: var(--st-info-bg); color: var(--st-info-text); border-color: var(--st-info-border); }
|
||||
.tag.l3 { background: var(--st-good-bg); color: var(--st-good-text); border-color: var(--st-good-border); }
|
||||
.tag.diet { background: var(--slate-100); color: var(--slate-700); }
|
||||
|
||||
/* 다크 섹션 핵심 날짜: 글래스 통계 카드 변형 */
|
||||
.stats.dates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.stats.dates .stat { display: flex; flex-direction: column; }
|
||||
.stats.dates .stat .label { order: -1; margin: 0 0 0.35rem; font-size: 0.8rem; color: rgba(255,255,255,0.72); font-weight: 600; letter-spacing: 0.02em; }
|
||||
.stats.dates .stat b { font-size: 1.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
|
||||
.stats.dates .stat b .wd { font-family: Pretendard, Inter, sans-serif; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.7); }
|
||||
.stats.dates .stat b .txt { font-family: Pretendard, Inter, sans-serif; font-size: 1.15rem; color: #fff; }
|
||||
.stats.dates .stat .desc { margin-top: 0.55rem; }
|
||||
.stats.dates .tag.clinic { background: rgba(175,144,255,0.18); color: var(--purple-200); border-color: rgba(216,180,254,0.45); }
|
||||
.section.dark .note { color: rgba(255,255,255,0.72); font-size: 0.88rem; margin: 1.2rem 0 0; max-width: 900px; }
|
||||
.section.dark .note a { color: var(--purple-300); }
|
||||
|
||||
/* 라이트 섹션 카드 내용 */
|
||||
.card ul.rules { margin: 0.2rem 0 0; padding-left: 1.15rem; font-size: 0.92rem; color: var(--slate-700); }
|
||||
.card ul.rules li { margin-bottom: 0.4rem; }
|
||||
.card.ok { background: var(--st-good-bg); border-color: var(--st-good-border); }
|
||||
.card.warn { background: var(--st-warning-bg); border-color: var(--st-warning-border); }
|
||||
.card.warn h3, .card.warn p { color: var(--st-warning-text); }
|
||||
.card.ok h3, .card.ok p { color: var(--st-good-text); }
|
||||
.card .fine { font-size: 0.8rem; color: var(--slate-500); margin-top: 0.3rem; flex: 0; }
|
||||
.card.warn .fine, .card.ok .fine { color: inherit; opacity: 0.85; }
|
||||
|
||||
/* 타임라인 (틴트 섹션 위 흰 카드) */
|
||||
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.85rem; color: var(--slate-600); margin: 0 0 1.25rem; }
|
||||
.legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
|
||||
.timeline { display: grid; gap: 1.1rem; }
|
||||
.day { display: grid; grid-template-columns: 160px 1fr; gap: 0.6rem 1.2rem; align-items: start; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--slate-100); background: #fff; box-shadow: var(--shadow); }
|
||||
.day.mark { border-color: var(--st-good-border); background: #FBFAFF; }
|
||||
.day .d { display: grid; gap: 0.1rem; }
|
||||
.day .d b { color: var(--primary-900); font-size: 1rem; font-family: "Playfair Display", Georgia, serif; font-weight: 700; }
|
||||
.day .d span { font-size: 0.78rem; color: var(--slate-500); }
|
||||
.day .d .ev { font-size: 0.78rem; font-weight: 700; color: var(--grad-start); }
|
||||
.day .body { display: grid; gap: 0.45rem; }
|
||||
.day .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
|
||||
.day .tags .desc { font-size: 0.85rem; color: var(--slate-600); }
|
||||
.day .picks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
|
||||
.day .picks a, .day .picks span.pick { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--slate-200); border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.85rem; color: var(--indigo); background: #fff; }
|
||||
.day .picks a:hover { border-color: var(--accent); text-decoration: none; }
|
||||
.day .picks small { color: var(--slate-500); font-size: 0.72rem; }
|
||||
.day .rest { font-size: 0.88rem; color: var(--slate-500); }
|
||||
@media (max-width: 640px) { .day { grid-template-columns: 1fr; } }
|
||||
|
||||
/* 체류 기간의 행사 카드 (TourAPI 이미지) */
|
||||
.fest-card { padding: 0; overflow: hidden; }
|
||||
.fest-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
|
||||
.fest-card .cat, .fest-card h3, .fest-card p { margin-left: 1.5rem; margin-right: 1.5rem; }
|
||||
.fest-card .cat { margin-top: 1.2rem; }
|
||||
.fest-card > p:last-child { margin-bottom: 1.3rem; }
|
||||
.day .picks a.fest { border-color: var(--st-good-border); background: var(--st-good-bg); }
|
||||
|
||||
/* 예약 (다크 섹션 위 흰 카드) */
|
||||
.hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
|
||||
.hotel-grid .card small { color: var(--slate-500); font-size: 0.78rem; }
|
||||
.hotel-grid .card .links { display: flex; gap: 0.7rem; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; }
|
||||
.book-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
|
||||
.book-row .card .plan-actions { margin-top: 0.4rem; }
|
||||
.section.dark .disclosure { color: rgba(255,255,255,0.6); border-top-color: rgba(255,255,255,0.12); }
|
||||
.section.dark .disclosure a, .section.dark .sources-list a { color: var(--purple-300); }
|
||||
.section.dark .sources-list { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0.3rem 0 0; }
|
||||
|
||||
.toast { position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%); background: var(--primary-900); color: #fff; padding: 0.6rem 1.1rem; border-radius: 999px; font-size: 0.9rem; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 20; }
|
||||
.toast.show { opacity: 1; }
|
||||
|
||||
/* 방문 안내 진입 CTA 카드 (웜 그라디언트는 CTA 카드 한 장에만) */
|
||||
.plan-entry { background: linear-gradient(to right, #fff3eb, #e4cfff, #f5f9ff); border-radius: 16px; padding: 1.3rem 1.5rem; box-shadow: var(--shadow); margin: 2rem 0; display: grid; gap: 0.4rem; }
|
||||
.plan-entry h2 { margin: 0; font-size: 1.1rem; color: var(--indigo); }
|
||||
.plan-entry p { margin: 0; color: var(--slate-700); font-size: 0.95rem; }
|
||||
.plan-entry .btn { justify-self: start; margin-top: 0.4rem; }
|
||||
|
||||
/* 태블릿 (≤900px): 히어로 통계 2열 */
|
||||
@media (max-width: 900px) { .plan-hero .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
|
||||
/* 모바일 (≤720px): 통계·날짜 카드 2열, 타임라인 날짜 머리 가로 배치, 히어로 여백 축소 */
|
||||
@media (max-width: 720px) {
|
||||
.plan-hero h1 { font-size: 1.9rem; }
|
||||
.plan-hero .lede { font-size: 0.95rem; }
|
||||
.plan-hero .stats, .stats.dates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
|
||||
.plan-hero .stat, .stats.dates .stat { padding: 1.2rem 1.2rem; }
|
||||
.plan-hero .stat b { font-size: 1.8rem; }
|
||||
.plan-hero .stat .label { font-size: 0.9rem; }
|
||||
.plan-hero .stat .desc { font-size: 0.78rem; }
|
||||
.stats.dates .stat b { font-size: 1.35rem; }
|
||||
.stats.dates .stat .desc { font-size: 0.78rem; }
|
||||
.field select, .field input[type="date"] { max-width: none; width: 100%; font-size: 16px; }
|
||||
.proc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.day { gap: 0.5rem; }
|
||||
.day .d { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
|
||||
.day .picks a, .day .picks span.pick { font-size: 0.82rem; padding: 0.3rem 0.65rem; }
|
||||
.book-row { grid-template-columns: 1fr; }
|
||||
.hotel-grid { grid-template-columns: 1fr; }
|
||||
.plan-result-pad { padding-bottom: 4.5rem; }
|
||||
}
|
||||
|
||||
/* 하단 고정 요약 바 (모바일에서 결과가 있을 때만) */
|
||||
.sticky-bar { display: none; }
|
||||
@media (max-width: 720px) {
|
||||
.sticky-bar { position: fixed; left: 0.8rem; right: 4.2rem; bottom: 0.9rem; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: var(--primary-900); color: #fff; border-radius: 999px; padding: 0.55rem 0.6rem 0.55rem 1rem; box-shadow: 0 10px 28px rgba(2,19,65,0.35); transition: opacity 0.2s, transform 0.2s; }
|
||||
.sticky-bar[hidden] { display: none; }
|
||||
.sticky-bar .s { display: grid; line-height: 1.2; min-width: 0; }
|
||||
.sticky-bar .s b { font-family: "Playfair Display", Georgia, serif; font-size: 0.95rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.sticky-bar .s small { font-size: 0.7rem; color: var(--purple-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.sticky-bar button { flex: none; border: 0; border-radius: 999px; background: linear-gradient(to right, var(--grad-start), #6C5CE7); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 700; padding: 0.5rem 0.9rem; cursor: pointer; }
|
||||
}
|
||||
|
||||
@media print {
|
||||
.site-header, .backbar-wrap, .totop, .site-footer, .sample-banner, .plan-input, .plan-actions, .toast, .lang-links, .sticky-bar { display: none !important; }
|
||||
.section { padding: 1rem 0 !important; }
|
||||
.section.dark, .section.tint { background: #fff !important; color: var(--primary-900); }
|
||||
.section.dark .sec-head h2, .plan-hero h1 { -webkit-text-fill-color: var(--primary-900); background: none; }
|
||||
.stat { background: #fff; border: 1px solid var(--slate-200); } .stat b { color: var(--primary-900); } .stat .label, .stat .desc { color: var(--slate-700); }
|
||||
.card, .day { box-shadow: none; break-inside: avoid; }
|
||||
}
|
||||
Reference in new issue
Block a user