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:
Haewon KamandClaude Fable 5.1 committed 2026-09-07 08:40:10 +09:00
1 parent 1dd1384fbf
commit 03ed725481
184 files changed
+18068

No files matched your search

+90
View File
@@ -0,0 +1,90 @@
---
import { getCollection, render } from 'astro:content';
import Base from '../../layouts/Base.astro';
import Summary from '../../components/Summary.astro';
import VideoLite from '../../components/VideoLite.astro';
import RelatedVideos from '../../components/RelatedVideos.astro';
import Gallery from '../../components/Gallery.astro';
import Faq from '../../components/Faq.astro';
import ReviewBox from '../../components/ReviewBox.astro';
import Sources from '../../components/Sources.astro';
import Disclosure from '../../components/Disclosure.astro';
import FactBlock from '../../components/FactBlock.astro';
import { CATEGORY_LABELS, clinicSchema, personSchema, physicianSchema, physician, supporter, fact } from '../../lib';
export async function getStaticPaths() {
const posts = await getCollection('posts');
return posts.map((post) => ({ params: { id: post.id }, props: { post } }));
}
const { post } = Astro.props;
const d = post.data;
const { Content } = await render(post);
const site = Astro.site!.toString().replace(/\/$/, '');
const url = `${site}/posts/${post.id}`;
const videos = d.videos.length ? d.videos : d.video ? [d.video] : [];
const [mainVideo, ...moreVideos] = videos;
const reviewer = d.reviewer ? physician(d.reviewer) : null;
const article: Record<string, any> = {
'@type': ['Article', 'MedicalWebPage'],
'@id': `${url}#article`,
headline: d.title,
description: d.description,
inLanguage: 'ko',
url,
mainEntityOfPage: url,
datePublished: d.datePublished,
dateModified: d.dateModified,
author: { '@id': `${site}/authors/${d.author}#person` },
publisher: { '@type': 'Organization', name: '뷰 서포터즈', url: site },
about: { '@id': `${fact.url}/#clinic` },
image: [d.hero?.src, ...d.gallery.map((g) => g.src)].filter(Boolean).map((s) => `${site}${s}`),
};
if (!article.image.length) article.image = [`${site}/img/clinic/building-clean.jpg`];
// 감수가 실제로 끝난 글에만 reviewedBy를 넣는다. 감수 예정 상태에서 넣으면 허위 표기다.
if (reviewer && d.reviewStatus === 'reviewed') article.reviewedBy = { '@id': `${reviewer.url}#physician` };
if (videos.length) article.video = videos.map((v) => ({ '@type': 'VideoObject', name: v.title, embedUrl: `https://www.youtube-nocookie.com/embed/${v.id}`, url: `https://www.youtube.com/watch?v=${v.id}`, thumbnailUrl: `https://i.ytimg.com/vi/${v.id}/hqdefault.jpg`, uploadDate: v.published ?? d.datePublished, description: v.title, publisher: { '@type': 'Organization', name: '뷰성형외과 VIEW Plastic Surgery (YouTube)' } }));
const graph: any[] = [article, personSchema(d.author, site), clinicSchema(site)];
if (d.reviewer) graph.push(physicianSchema(d.reviewer));
if (d.faq.length) graph.push({ '@type': 'FAQPage', '@id': `${url}#faq`, mainEntity: d.faq.map((f) => ({ '@type': 'Question', name: f.q, acceptedAnswer: { '@type': 'Answer', text: f.a } })) });
---
<Base title={d.title} description={d.description} jsonLd={graph} type="article" ogImage={d.hero?.src}>
<article class="wrap" style="padding-bottom:4rem">
<header class="article-head">
<div class="eyebrow">{d.category} · {CATEGORY_LABELS[d.category]} · QB {d.qbIds.join(', ')}</div>
<h1>{d.title}</h1>
<div class="meta">
<span>작성 {supporter(d.author).name}</span>
{reviewer && <span>감수 {reviewer.name} {reviewer.title.split(' · ')[0]}{d.reviewStatus === 'reviewed' ? '' : ' (예정)'}</span>}
<span>발행 {d.datePublished}</span>
<span>갱신 {d.dateModified}</span>
</div>
</header>
<Summary items={d.summary} />
{d.hero && (
<figure class="figure">
<img src={d.hero.src} alt={d.hero.alt} loading="eager" />
<figcaption>{d.hero.caption}</figcaption>
</figure>
)}
{mainVideo && <VideoLite {...mainVideo} />}
{reviewer && (
<div class="doctor-strip">
{reviewer.image && <img src={reviewer.image} alt={`${reviewer.name} ${reviewer.title}`} />}
<div>
<div class="name">{reviewer.name} <span style="font-weight:500;color:var(--slate-600)">{reviewer.title}</span></div>
<p class="creds">{reviewer.credentials.slice(0, 3).join(' · ')} <a href={reviewer.url} rel="noopener">프로필</a></p>
</div>
</div>
)}
<Content />
<Gallery items={d.gallery} />
<RelatedVideos items={moreVideos} title="이어서 볼 원장 영상" />
<Faq items={d.faq} />
<ReviewBox author={d.author} reviewer={d.reviewer} status={d.reviewStatus} dateModified={d.dateModified} />
<Sources items={d.sources} />
<FactBlock compact />
<Disclosure />
</article>
</Base>
+20
View File
@@ -0,0 +1,20 @@
---
import { getCollection } from 'astro:content';
import Base from '../../layouts/Base.astro';
import PostCard from '../../components/PostCard.astro';
import { CATEGORY_LABELS, SITE_NAME } from '../../lib';
const posts = (await getCollection('posts')).sort((a, b) => b.data.dateModified.localeCompare(a.data.dateModified));
const cats = Object.keys(CATEGORY_LABELS);
const site = Astro.site!.toString().replace(/\/$/, '');
const ld = { '@type': 'CollectionPage', '@id': `${site}/posts#page`, name: '전체 글', url: `${site}/posts`, inLanguage: 'ko', publisher: { '@type': 'Organization', name: SITE_NAME, url: site }, hasPart: posts.map((p) => ({ '@type': 'Article', headline: p.data.title, url: `${site}/posts/${p.id}`, dateModified: p.data.dateModified })) };
---
<Base title="전체 글" description="뷰성형외과에 대해 사람들이 묻는 질문에 서포터즈가 먼저 답한 글 목록. 카테고리별로 정리했습니다." jsonLd={ld}>
<div class="wrap-wide" style="padding-bottom:4rem">
<header class="article-head"><div class="eyebrow">Archive</div><h1 class="serif">All Answers</h1><p style="color:var(--slate-600);margin-top:0.6rem">전체 글. 질문 하나가 글 하나이고, 질문은 INFINITH 환자 질문 뱅크 120문항에서 골랐습니다.</p></header>
{cats.map((c) => {
const list = posts.filter((p) => p.data.category === c);
if (!list.length) return null;
return (<section><div class="section-title" style="margin-top:2.4rem"><h2>{c}. {CATEGORY_LABELS[c]}</h2><span style="color:var(--slate-500);font-size:0.9rem">{list.length}편</span></div><div class="grid">{list.map((p) => <PostCard post={p} />)}</div></section>);
})}
</div>
</Base>