feat: 뷰성형외과 서포터즈 샘플 사이트 v3 + 설계 v0.1 + 공식 사이트 대비 AEO 감사
- supporters/: Astro 사이트 소스 (pages·components·posts·factSheet/authors/videos 데이터, 뉴스룸 916건 빌더, 발행 게이트 check.mjs, vercel.json) - supporters/docs/: v1~v3 스크린샷 기록 - docs/INFINITH_Viewclinic_Supporters_Site_Design_v0.1.md: 서포터즈 사이트 설계 문서 - docs/NEXT_SESSION_SUPPORTERS_AUTOBUILD.md: 다음 세션 자동 빌드 프롬프트 - docs/reports/Viewclinic_Supporters_vs_Official_AEO_Audit.xlsx + scripts/build_supporters_audit_xlsx.py: 서포터즈 vs 공식 사이트 AEO/GEO 감사 비교 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
1dd1384fbf
commit
03ed725481
184 files changed
+18068
No files matched your search
@@ -0,0 +1,6 @@
|
||||
---
|
||||
import { fact } from '../lib';
|
||||
---
|
||||
<p class="disclosure">
|
||||
대가 관계 고지: 뷰 서포터즈 활동은 {fact.shortName}의 지원을 받습니다. 이 글은 광고 목적의 치료 경험담을 담지 않으며, 전후 사진을 싣지 않습니다. {fact.sideEffectNotice}
|
||||
</p>
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
import { fact } from '../lib';
|
||||
interface Props { compact?: boolean }
|
||||
const { compact = false } = Astro.props;
|
||||
---
|
||||
<aside class="fact-block" aria-label="병원 기본 정보">
|
||||
<h2>{fact.shortName} 기본 정보</h2>
|
||||
<dl>
|
||||
<dt>정식 명칭</dt><dd>{fact.name}</dd>
|
||||
<dt>주소</dt><dd>{fact.address.full}</dd>
|
||||
<dt>전화</dt><dd><a href={`tel:${fact.phone.replace(/-/g, '')}`}>{fact.phone}</a></dd>
|
||||
<dt>진료시간</dt><dd>{fact.hours.rows.map((r) => r.open ? `${r.days} ${r.open}~${r.close}` : `${r.days} ${r.note}`).join(' · ')}</dd>
|
||||
<dt>가는 길</dt><dd>{fact.transit}</dd>
|
||||
{!compact && <><dt>개원</dt><dd>{fact.founded}년</dd><dt>규모</dt><dd>{fact.building.summary}</dd></>}
|
||||
</dl>
|
||||
<p style="margin:0.8rem 0 0;font-size:0.8rem;color:var(--slate-500)">진료시간 출처: <a href={fact.hours.source} rel="noopener">{fact.hours.sourceLabel}</a>. 주소·전화는 <a href={fact.address.source} rel="noopener">공식 홈페이지 표기</a>를 따릅니다.</p>
|
||||
</aside>
|
||||
@@ -0,0 +1,15 @@
|
||||
---
|
||||
interface Props { items: { q: string; a: string }[] }
|
||||
const { items } = Astro.props;
|
||||
---
|
||||
{items.length > 0 && (
|
||||
<section class="faq" aria-label="자주 묻는 질문">
|
||||
<h2>자주 묻는 질문</h2>
|
||||
{items.map((f) => (
|
||||
<details>
|
||||
<summary>{f.q}</summary>
|
||||
<p>{f.a}</p>
|
||||
</details>
|
||||
))}
|
||||
</section>
|
||||
)}
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
interface Props { items: { src: string; alt: string; caption: string }[]; cols?: 2 | 3 }
|
||||
const { items, cols = 2 } = Astro.props;
|
||||
---
|
||||
{items.length > 0 && (
|
||||
<div class={`gallery cols-${cols}`}>
|
||||
{items.map((g) => (
|
||||
<figure class="figure">
|
||||
<img src={g.src} alt={g.alt} loading="lazy" />
|
||||
<figcaption>{g.caption}</figcaption>
|
||||
</figure>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
import { CATEGORY_LABELS, supporter } from '../lib';
|
||||
interface Props { post: any }
|
||||
const { post } = Astro.props;
|
||||
const d = post.data;
|
||||
const v0 = d.videos?.[0] ?? d.video;
|
||||
const thumb = d.thumbnail ?? d.hero?.src ?? (v0 ? `https://i.ytimg.com/vi/${v0.id}/hqdefault.jpg` : '/img/clinic/building-clean.jpg');
|
||||
const thumbAlt = d.hero?.alt ?? (v0 ? `유튜브 영상 썸네일: ${v0.title}` : '뷰성형외과 빌딩 외관');
|
||||
---
|
||||
<article class="card has-thumb">
|
||||
<a class="thumb" href={`/posts/${post.id}`}><img src={thumb} alt={thumbAlt} loading="lazy" /></a>
|
||||
<div class="body">
|
||||
<div class="cat">{d.category} · {CATEGORY_LABELS[d.category]}</div>
|
||||
<h3><a href={`/posts/${post.id}`}>{d.title}</a></h3>
|
||||
<p>{d.summary[0]}</p>
|
||||
<div class="foot">{supporter(d.author).name} · {d.dateModified} 갱신</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
import VideoLite from './VideoLite.astro';
|
||||
interface Props { items: { id: string; title: string; speaker?: string; published?: string; note?: string }[]; title?: string }
|
||||
const { items, title = '관련 영상' } = Astro.props;
|
||||
---
|
||||
{items.length > 0 && (
|
||||
<section>
|
||||
<h2>{title}</h2>
|
||||
<div class="video-grid">{items.map((v) => <VideoLite {...v} compact />)}</div>
|
||||
</section>
|
||||
)}
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
import { supporter, physician } from '../lib';
|
||||
interface Props { author: string; reviewer?: string; status: 'reviewed' | 'pending'; dateModified: string }
|
||||
const { author, reviewer, status, dateModified } = Astro.props;
|
||||
const a = supporter(author);
|
||||
const p = reviewer ? physician(reviewer) : null;
|
||||
---
|
||||
<section class="review-box" aria-label="작성·감수 정보">
|
||||
{p?.image ? <img src={p.image} alt={`${p.name} ${p.title}`} width="56" height="56" /> : <div class="avatar">{a.name.slice(0, 1)}</div>}
|
||||
<div>
|
||||
<div><strong>작성</strong> <a href={`/authors/${author}`}>{a.name}</a> · {a.role}</div>
|
||||
{p && (
|
||||
<div><strong>의학 감수</strong> {p.name} {p.title}
|
||||
<span class={`badge ${status}`}>{status === 'reviewed' ? `감수 완료 ${dateModified}` : '감수 예정 (샘플)'}</span>
|
||||
</div>
|
||||
)}
|
||||
<div style="color:var(--slate-500);margin-top:0.3rem">서포터즈는 의학적 판단을 하지 않습니다. 시술 여부와 방법은 반드시 전문의 상담으로 결정하세요.</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
interface Props { items: { label: string; url: string; accessed: string }[] }
|
||||
const { items } = Astro.props;
|
||||
---
|
||||
{items.length > 0 && (
|
||||
<section class="sources">
|
||||
<h2>참고한 자료</h2>
|
||||
<ul>{items.map((s) => <li><a href={s.url} rel="noopener">{s.label}</a> <span style="color:var(--slate-500)">({s.accessed} 확인)</span></li>)}</ul>
|
||||
</section>
|
||||
)}
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
// 직접 답변 블록. 기업은행 블로그의 "세 줄 요약"에서 가져온 구조. 답변엔진이 잘라 쓰는 단락이다.
|
||||
interface Props { items: string[] }
|
||||
const { items } = Astro.props;
|
||||
---
|
||||
<section class="summary" aria-label="세 줄 요약">
|
||||
<h2>세 줄 요약</h2>
|
||||
<ol>{items.map((t) => <li>{t}</li>)}</ol>
|
||||
</section>
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
interface Props { id: string; title: string; channel: string; speaker?: string; published?: string }
|
||||
const { id, title, channel, speaker, published } = Astro.props;
|
||||
---
|
||||
<h2>원본 영상</h2>
|
||||
<div class="video">
|
||||
<iframe loading="lazy" src={`https://www.youtube-nocookie.com/embed/${id}`} title={title} allow="accelerometer; encrypted-media; picture-in-picture" allowfullscreen></iframe>
|
||||
</div>
|
||||
<p class="video-note">{channel} · {title}{speaker ? ` · 출연 ${speaker}` : ''}{published ? ` · ${published} 게시` : ''}. 이 글은 영상 발화를 서포터즈가 글로 재구성한 것이며, 영상 설명란 텍스트를 복사하지 않았습니다.</p>
|
||||
@@ -0,0 +1,25 @@
|
||||
---
|
||||
// 유튜브 라이트 임베드: 썸네일(i.ytimg.com) + 재생 버튼. 클릭 시 iframe으로 교체. 헤드리스·저속 환경에서도 시각적으로 보인다.
|
||||
interface Props { id: string; title: string; speaker?: string; published?: string; note?: string; compact?: boolean }
|
||||
const { id, title, speaker, published, note, compact = false } = Astro.props;
|
||||
---
|
||||
<figure class={`yt ${compact ? 'compact' : ''}`}>
|
||||
<button class="yt-btn" type="button" data-yt={id} aria-label={`영상 재생: ${title}`}>
|
||||
<img src={`https://i.ytimg.com/vi/${id}/hqdefault.jpg`} alt={`유튜브 영상 썸네일: ${title}`} loading="lazy" width="480" height="360" />
|
||||
<span class="play" aria-hidden="true"><svg width="26" height="26" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg></span>
|
||||
</button>
|
||||
<figcaption>
|
||||
<strong>{title}</strong>
|
||||
<span>{speaker ? `${speaker} · ` : ''}{published ? `${published} 게시 · ` : ''}유튜브 @ViewclinicKR{note ? ` · ${note}` : ''}</span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<script>
|
||||
document.querySelectorAll<HTMLButtonElement>('.yt-btn').forEach((btn) => {
|
||||
btn.addEventListener('click', () => {
|
||||
const id = btn.dataset.yt!;
|
||||
const wrap = document.createElement('div'); wrap.className = 'yt-frame';
|
||||
wrap.innerHTML = `<iframe src="https://www.youtube-nocookie.com/embed/${id}?autoplay=1&rel=0" title="YouTube video" allow="accelerometer; autoplay; encrypted-media; picture-in-picture" allowfullscreen></iframe>`;
|
||||
btn.replaceWith(wrap);
|
||||
}, { once: true });
|
||||
});
|
||||
</script>
|
||||
Reference in new issue
Block a user