feat: 모프로의원 허브 영문 홈에도 원장 인터뷰 섹션을 넣는다

- 영문 홈 Clinic Facts 아래 Interview 섹션: 인터뷰 영상과 인터뷰 글·공식 블로그·인스타그램 카드, 한국어 콘텐츠는 제목에 '(in Korean)'
- VideoLite 가 lang='en' 이면 재생 버튼 설명·썸네일 대체 문구·게시일 표기를 영어로 낸다(한국어 화면 변화 없음)
- 영문 값은 clinic.json interview 의 *En(Claude 번역 초안)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 5.5 committed 2026-10-19 15:59:37 +09:00
1 parent 29f798f3c7
commit 21340e767e
2 files changed
+69 -15

No files matched your search

+50 -10
View File
@@ -12,7 +12,7 @@
2. 회복 일정 캘린더 파일 정보(PRODID·UID)에 남은 다른 병원 이름을 INFINITH·모프로로 바꾼다
3. clinic.json excludeImages 에 해당하는 파일을 public/img 전체에서 지운다(워커는 img/clinic 만 지운다)
3b. 영문 화면의 한글 노출을 정리한다(영문 사이트 이름·대표자·빈 값 문구, 팩트 시트 영문 값, 사진 없는 장소 이름 칸)
3c. 홈에 'Interview' 섹션(원장 인터뷰 영상·인터뷰 글·공식 블로그·인스타그램)을 넣는다(clinic.json interview)
3c. 한국어·영문 홈에 'Interview' 섹션(원장 인터뷰 영상·인터뷰 글·공식 블로그·인스타그램)을 넣는다(clinic.json interview)
3d. 푸터에 채널 아이콘 줄(유튜브·인스타그램·블로그·카카오톡·플레이스·강남언니·바비톡)을 넣는다(clinic.json footerChannels)
4. vercel.json 사이트 주소를 정식 주소로 넣고, 공유 이미지(og.jpg)를 '서포터즈' 없는 상단 문구로 다시 그린다
5. src 에 화면용 '서포터즈'가 남아 있으면 실패로 끝낸다
@@ -165,7 +165,36 @@ VIDEOLITE_REPLACEMENTS = [
("const { id, title, speaker, published, note, compact = false } = Astro.props;",
"const { id, title, speaker, published, note, compact = false, channel } = Astro.props;"),
("{handle}{note ?", "{channel ?? handle}{note ?"),
# 영문 홈에서 쓸 수 있게 lang='en' 이면 재생 버튼 설명·썸네일 대체 문구·게시일 표기를 영어로 낸다
("channel?: string }", "channel?: string; lang?: string }"),
("compact = false, channel }", "compact = false, channel, lang }"),
("aria-label={`영상 재생: ${title}`}", "aria-label={lang === 'en' ? `Play video: ${title}` : `영상 재생: ${title}`}"),
("alt={`유튜브 영상 썸네일: ${title}`}", "alt={lang === 'en' ? `YouTube video thumbnail: ${title}` : `유튜브 영상 썸네일: ${title}`}"),
("{published ? `${published} 게시 · ` : ''}", "{published ? (lang === 'en' ? `Published ${published} · ` : `${published} 게시 · `) : ''}"),
]
# 영문 홈 Interview 섹션: Clinic Facts 아래, Principles 위. 값은 clinic.json interview 의 *En
INTERVIEW_EN_ANCHOR = " <section class=\"section dark\"><div class=\"wrap-wide\">\n <div class=\"sec-head\"><div class=\"eyebrow\" style=\"color:var(--purple-300)\">Principles</div>"
INTERVIEW_EN_SECTION = """ <section class="section light"><div class="wrap-wide">
<div class="sec-head"><div class="eyebrow">Interview</div><h2>Meet The Doctor</h2><p class="sub">Interviews with Dr. Kunhak Moon and the clinic's official channels.</p></div>
<div class="interview-grid">
{interview.video && <div class="interview-video"><VideoLite id={interview.video.id} title={interview.video.titleEn} published={interview.video.published} channel={interview.video.channelEn} lang="en" /></div>}
{interview.links.map((l) => (
<article class="card">
<div class="cat">{l.catEn}</div>
<h3><a href={l.url} rel="noopener" target="_blank">{l.titleEn}</a></h3>
<p>{l.descEn}</p>
<div class="foot">{l.footEn}</div>
</article>
))}
</div>
<style>
.interview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
.interview-video { grid-row: span 3; align-self: start; }
.interview-video :global(figure) { margin: 0; }
@media (max-width: 860px) { .interview-grid { grid-template-columns: 1fr; } .interview-video { grid-row: auto; } }
</style>
</div></section>
"""
def patch_home_interview():
@@ -178,17 +207,28 @@ def patch_home_interview():
for old, new in VIDEOLITE_REPLACEMENTS:
text = text.replace(old, new)
open(vp, "w", encoding="utf-8").write(text)
changed = 0
ip = os.path.join(SITE, "src/pages/index.astro")
text = open(ip, encoding="utf-8").read()
if "data/interview.json" in text:
return 0
if INTERVIEW_ANCHOR not in text:
sys.exit("index.astro 에서 Inside 섹션을 찾지 못해 Interview 섹션을 넣지 못함")
text = text.replace("import Gallery from '../components/Gallery.astro';",
"import Gallery from '../components/Gallery.astro';\nimport interview from '../data/interview.json';", 1)
text = text.replace(INTERVIEW_ANCHOR, INTERVIEW_SECTION + INTERVIEW_ANCHOR, 1)
open(ip, "w", encoding="utf-8").write(text)
return 1
if "data/interview.json" not in text:
if INTERVIEW_ANCHOR not in text:
sys.exit("index.astro 에서 Inside 섹션을 찾지 못해 Interview 섹션을 넣지 못함")
text = text.replace("import Gallery from '../components/Gallery.astro';",
"import Gallery from '../components/Gallery.astro';\nimport interview from '../data/interview.json';", 1)
text = text.replace(INTERVIEW_ANCHOR, INTERVIEW_SECTION + INTERVIEW_ANCHOR, 1)
open(ip, "w", encoding="utf-8").write(text)
changed += 1
ep = os.path.join(SITE, "src/pages/en/index.astro")
text = open(ep, encoding="utf-8").read()
if "data/interview.json" not in text:
if INTERVIEW_EN_ANCHOR not in text:
sys.exit("en/index.astro 에서 Principles 섹션을 찾지 못해 Interview 섹션을 넣지 못함")
text = text.replace("import VisitMap from '../../components/VisitMap.astro';",
"import VisitMap from '../../components/VisitMap.astro';\nimport VideoLite from '../../components/VideoLite.astro';\nimport interview from '../../data/interview.json';", 1)
text = text.replace(INTERVIEW_EN_ANCHOR, INTERVIEW_EN_SECTION + INTERVIEW_EN_ANCHOR, 1)
open(ep, "w", encoding="utf-8").write(text)
changed += 1
return changed
# 푸터 채널 아이콘 (haewon 지시 2026-10-19). 유튜브·강남언니 글자 링크는 아이콘 줄로 옮기고 홈페이지 링크만 남긴다