Files
o2o-site-AEO/solution/shared/src/data/templates.json
T
minaChoiandClaude Opus 5.5 c6908629f3 [feat] solution: 템플릿 정의를 templates.json 한 파일로 — 업종 없는 id · 레이아웃 basic/paper 정리
템플릿 정보가 빌더·렌더러·백엔드에 따로 적혀 어긋나 있었다 — 백엔드 기본값이 없는 id 를
가리켰고, 음식점 강조색 오타, 섹션 간격이 빌더와 서버에서 달랐다.

- shared/src/data/templates.json: 템플릿 4개(simple·magazine·retro·paper)와 업종별 허용·기본
- shared/lib/catalog.ts · backend/common/template_catalog.py: 같은 JSON 을 읽는다, 모르는 id 는 에러
- 저장·미리보기·발행에서 모르는 id 를 거절한다(site_service · site.py 422 · build_service 실패)
- site: 레이아웃 등록표(basic·paper) + LayoutProvider, Shell→Frame, HomePage→SectionList
- 연결 안 된 레이아웃 5개, 배치 고르기(variant), 서체 선택, 빌더 canvas/DevShowcase 삭제
- 빌더: 템플릿을 바꾸면 이전 템플릿이 켠 섹션을 끄고 안내 문구를 띄운다
- postgres-init/migrations/0023: stay-retro → retro, 병원 허용 밖은 NULL(운영 미적용)
- Dockerfile·worker: 백엔드 이미지에 shared/src/data 복사
- docs: TEMPLATES.md 신설(세 폴더 역할·템플릿 추가·렌더링 순서), DATA_MODEL·ARCHITECTURE 등 갱신

shared·site·frontend tsc 통과, site vitest 통과, 백엔드 DB 없는 테스트 41 passed(DB 테스트 미실행)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 15:57:35 +09:00

652 lines
18 KiB
JSON

{
"templates": {
"simple": {
"name": "심플",
"tag": "깔끔한 기본",
"description": "흰 바탕에 고딕. 읽기 쉽고 어디에도 어울립니다. 무엇을 고를지 모르겠으면 이것.",
"layout": "basic",
"colors": {
"primary": "#18181b",
"secondary": "#52525b",
"bg": "#ffffff",
"card": "#fafafa",
"text": "#09090b",
"accent": "#2563eb"
},
"look": {
"fontHeading": "'Pretendard Variable', 'Noto Sans KR', system-ui, sans-serif",
"fontBody": "'Pretendard Variable', 'Noto Sans KR', system-ui, sans-serif",
"radius": "0.75rem",
"borderWidth": "1px",
"shadow": "0 1px 2px rgb(0 0 0 / 0.06)",
"headingTracking": "-0.02em",
"headingWeight": "700",
"sectionSpace": "3.5rem"
},
"addSections": []
},
"magazine": {
"name": "매거진",
"tag": "잡지 편집",
"description": "명조 제목에 각진 모서리, 그림자 없이 선으로만. 사진과 글이 많을 때 품이 납니다.",
"layout": "basic",
"colors": {
"primary": "#111111",
"secondary": "#57534e",
"bg": "#ffffff",
"card": "#f7f6f4",
"text": "#111111",
"accent": "#2563eb"
},
"look": {
"fontHeading": "'Noto Serif KR', 'Batang', 'Times New Roman', serif",
"fontBody": "'Pretendard Variable', 'Noto Sans KR', system-ui, sans-serif",
"radius": "0px",
"borderWidth": "1px",
"shadow": "none",
"headingTracking": "-0.03em",
"headingWeight": "700",
"sectionSpace": "5rem"
},
"addSections": []
},
"retro": {
"name": "레트로",
"tag": "레트로 감성",
"description": "갱지 바탕에 간판체. 도넛판·일력·승차권이 함께 들어옵니다.",
"layout": "basic",
"colors": {
"primary": "#1b1a15",
"secondary": "#4c4739",
"bg": "#e4dac0",
"card": "#efe7d3",
"text": "#1b1a15",
"accent": "#bf2f1b"
},
"look": {
"fontHeading": "'Gugi', 'Noto Sans KR', sans-serif",
"fontBody": "'Gowun Batang', 'Noto Serif KR', serif",
"radius": "0px",
"borderWidth": "2px",
"shadow": "4px 4px 0 rgb(27 26 21 / 0.16)",
"headingTracking": "0em",
"headingWeight": "400",
"sectionSpace": "4rem",
"texture": "repeating-linear-gradient(0deg,rgba(27,26,21,.028) 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,rgba(27,26,21,.02) 0 1px,transparent 1px 4px)"
},
"addSections": [
"event",
"video",
"festival",
"itinerary",
"story"
]
},
"paper": {
"name": "고택",
"tag": "고택 지면",
"description": "크림빛 종이에 가는 명조. 그림자도 장식도 없이 정갈한 인상을 줍니다.",
"layout": "paper",
"colors": {
"primary": "#1f1d19",
"secondary": "#726c61",
"bg": "#fdfcfa",
"card": "#f2efe8",
"text": "#1f1d19",
"accent": "#1f1d19"
},
"look": {
"fontHeading": "'Noto Serif KR', 'AppleMyungjo', 'Nanum Myeongjo', serif",
"fontBody": "'Pretendard Variable', 'Noto Sans KR', system-ui, sans-serif",
"radius": "0px",
"borderWidth": "1px",
"shadow": "none",
"headingTracking": "0.03em",
"headingWeight": "400",
"sectionSpace": "4.5rem"
},
"addSections": []
}
},
"industries": {
"stay": {
"name": "숙박",
"subName": "펜션 · 스테이",
"description": "감성 스테이, 풀빌라, 독채 펜션, 게스트하우스",
"channels": [
{
"id": "stay_platforms",
"name": "야놀자 · 여기어때",
"checked": true
},
{
"id": "naver_place",
"name": "네이버 플레이스",
"checked": true
},
{
"id": "instagram",
"name": "인스타그램",
"checked": true
}
],
"defaultTemplate": "retro",
"templates": [
"retro",
"simple",
"magazine",
"paper"
],
"sections": [
{
"id": "hero",
"type": "hero",
"name": "히어로",
"locked": true,
"enabled": true,
"description": "상단 메인 비주얼과 대표 문구"
},
{
"id": "intro",
"type": "intro",
"name": "소개",
"locked": false,
"enabled": true,
"description": "스테이의 철학과 공간 스토리"
},
{
"id": "rooms",
"type": "rooms",
"name": "객실 안내",
"locked": false,
"enabled": true,
"description": "객실 타입, 구조, 비치 물품"
},
{
"id": "event",
"type": "event",
"name": "소식",
"locked": false,
"enabled": true,
"description": "지금 하는 행사 · 공지"
},
{
"id": "info",
"type": "info",
"name": "기본 정보",
"locked": true,
"enabled": true,
"description": "체크인, 주차, 시설 핵심 정보"
},
{
"id": "booking",
"type": "booking",
"name": "예약 안내",
"locked": false,
"enabled": true,
"description": "요금 · 예약 창구 안내"
},
{
"id": "video",
"type": "video",
"name": "영상",
"locked": false,
"enabled": true,
"description": "유튜브 주소 하나면 됩니다"
},
{
"id": "photos",
"type": "photos",
"name": "사진 갤러리",
"locked": false,
"enabled": true,
"description": "감성 인테리어와 외부 풍경"
},
{
"id": "map",
"type": "map",
"name": "오시는 길",
"locked": true,
"enabled": true,
"description": "위치 안내 및 대중교통 경로"
},
{
"id": "festival",
"type": "festival",
"name": "계절별 축제",
"locked": false,
"enabled": true,
"description": "주변에서 열리는 축제 — 계절로 묶어 보여줍니다"
},
{
"id": "local",
"type": "local",
"name": "지역 정보",
"locked": false,
"enabled": true,
"description": "주변 관광지 및 맛집 추천"
},
{
"id": "itinerary",
"type": "itinerary",
"name": "추천 일정",
"locked": false,
"enabled": true,
"description": "숙소에서 출발하는 하루 코스"
},
{
"id": "story",
"type": "story",
"name": "지역 이야기",
"locked": false,
"enabled": true,
"description": "가요·인물·연표·엽서·퀴즈를 탭으로"
},
{
"id": "faq",
"type": "faq",
"name": "자주 묻는 질문",
"locked": false,
"enabled": true,
"description": "고객들이 자주 묻는 질문과 답변"
},
{
"id": "weather",
"type": "weather",
"name": "날씨",
"locked": false,
"enabled": true,
"description": "현재 기온과 사업장 주변 날씨"
},
{
"id": "social",
"type": "social",
"name": "SNS 게시글",
"locked": false,
"enabled": false,
"description": "승인해 함께 발행한 소식 · 홈페이지 맨 아래"
}
]
},
"cafe": {
"name": "카페",
"subName": "대형카페 · 로스터리",
"description": "스페셜티 로스터리, 베이커리 카페, 오션·마운틴 뷰 대형 카페",
"channels": [
{
"id": "naver_place",
"name": "네이버 플레이스",
"checked": true
},
{
"id": "instagram",
"name": "인스타그램",
"checked": true
},
{
"id": "kakao_map",
"name": "카카오맵",
"checked": true
}
],
"defaultTemplate": "simple",
"templates": [
"simple",
"magazine",
"retro",
"paper"
],
"sections": [
{
"id": "hero",
"type": "hero",
"name": "히어로",
"locked": true,
"enabled": true,
"description": "시그니처 비주얼과 카페 슬로건"
},
{
"id": "intro",
"type": "intro",
"name": "소개",
"locked": false,
"enabled": true,
"description": "로스팅 철학과 공간 스토리"
},
{
"id": "menu",
"type": "menu",
"name": "시그니처 메뉴",
"locked": false,
"enabled": true,
"description": "대표 원두, 음료, 시그니처 디저트"
},
{
"id": "info",
"type": "info",
"name": "기본 정보",
"locked": true,
"enabled": true,
"description": "영업시간, 좌석수, 편의시설 정보"
},
{
"id": "space",
"type": "space",
"name": "공간 · 좌석 안내",
"locked": false,
"enabled": true,
"description": "1/2층 공간 구성 및 야외 테라스석"
},
{
"id": "photos",
"type": "photos",
"name": "사진 갤러리",
"locked": false,
"enabled": true,
"description": "인테리어, 커피, 베이커리 비주얼"
},
{
"id": "inquiry",
"type": "inquiry",
"name": "대관 및 단체 문의",
"locked": false,
"enabled": true,
"description": "촬영 대관 및 단체 예약 접수"
},
{
"id": "map",
"type": "map",
"name": "오시는 길",
"locked": true,
"enabled": true,
"description": "드라이브 코스 및 주차 진입로 안내"
},
{
"id": "weather",
"type": "weather",
"name": "날씨",
"locked": false,
"enabled": true,
"description": "현재 기온과 매장 주변 날씨"
},
{
"id": "local",
"type": "local",
"name": "주변 나들이",
"locked": false,
"enabled": true,
"description": "양평 드라이브 코스 및 명소"
},
{
"id": "faq",
"type": "faq",
"name": "자주 묻는 질문",
"locked": false,
"enabled": true,
"description": "반려견 동반, 주차, 케어키즈존 안내"
},
{
"id": "social",
"type": "social",
"name": "SNS 게시글",
"locked": false,
"enabled": false,
"description": "승인해 함께 발행한 소식 · 홈페이지 맨 아래"
}
]
},
"restaurant": {
"name": "음식점",
"subName": "식당 · 주점",
"description": "한식 다이닝, 일식 오마카세, 이탈리안 비스트로, 고기집",
"channels": [
{
"id": "naver_place",
"name": "네이버 플레이스",
"checked": true
},
{
"id": "catchtable",
"name": "캐치테이블",
"checked": true
},
{
"id": "instagram",
"name": "인스타그램",
"checked": true
}
],
"defaultTemplate": "simple",
"templates": [
"simple",
"magazine",
"retro",
"paper"
],
"sections": [
{
"id": "hero",
"type": "hero",
"name": "히어로",
"locked": true,
"enabled": true,
"description": "대표 요리 비주얼 및 다이닝 소개"
},
{
"id": "intro",
"type": "intro",
"name": "소개",
"locked": false,
"enabled": true,
"description": "셰프의 조리 철학과 식재료 원산지 이야기"
},
{
"id": "menu",
"type": "menu",
"name": "코스 및 메뉴",
"locked": false,
"enabled": true,
"description": "점심/저녁 코스, 단품 요리, 주류 페어링"
},
{
"id": "info",
"type": "info",
"name": "기본 정보",
"locked": true,
"enabled": true,
"description": "영업시간, 휴무일, 주차, 예약 안내"
},
{
"id": "booking",
"type": "booking",
"name": "예약 · 포장 안내",
"locked": false,
"enabled": true,
"description": "캐치테이블 실시간 룸 예약 및 포장"
},
{
"id": "photos",
"type": "photos",
"name": "사진 갤러리",
"locked": false,
"enabled": true,
"description": "플레이팅, 룸 인테리어, 정갈한 상차림"
},
{
"id": "inquiry",
"type": "inquiry",
"name": "단체 행사 문의",
"locked": false,
"enabled": true,
"description": "상견례, 돌잔치, 기업 대관 문의"
},
{
"id": "map",
"type": "map",
"name": "오시는 길",
"locked": true,
"enabled": true,
"description": "지하철역 출구 및 발렛부스 위치"
},
{
"id": "weather",
"type": "weather",
"name": "날씨",
"locked": false,
"enabled": true,
"description": "현재 기온과 매장 주변 날씨"
},
{
"id": "local",
"type": "local",
"name": "주변 안내",
"locked": false,
"enabled": true,
"description": "청담 명품거리 및 갤러리 안내"
},
{
"id": "faq",
"type": "faq",
"name": "자주 묻는 질문",
"locked": false,
"enabled": true,
"description": "콜키지 정책, 알러지 케어, 주차 안내"
},
{
"id": "social",
"type": "social",
"name": "SNS 게시글",
"locked": false,
"enabled": false,
"description": "승인해 함께 발행한 소식 · 홈페이지 맨 아래"
}
]
},
"clinic": {
"name": "피부과 · 성형외과",
"subName": "의원 · 클리닉",
"description": "피부과, 성형외과, 미용 클리닉",
"channels": [
{
"id": "naver_place",
"name": "네이버 플레이스",
"checked": true
},
{
"id": "kakao_channel",
"name": "카카오톡 채널",
"checked": true
},
{
"id": "instagram",
"name": "인스타그램",
"checked": true
}
],
"defaultTemplate": "simple",
"templates": [
"simple",
"magazine"
],
"sections": [
{
"id": "hero",
"type": "hero",
"name": "히어로",
"locked": true,
"enabled": true,
"description": "병원 대표 이미지와 진료 분야"
},
{
"id": "intro",
"type": "intro",
"name": "병원 소개",
"locked": false,
"enabled": true,
"description": "진료 철학과 의료진 소개"
},
{
"id": "programs",
"type": "programs",
"name": "시술 안내",
"locked": false,
"enabled": true,
"description": "시술명, 소요 시간, 비용"
},
{
"id": "info",
"type": "info",
"name": "기본 정보",
"locked": true,
"enabled": true,
"description": "진료시간, 휴진일, 예약, 주차"
},
{
"id": "exhibition",
"type": "exhibition",
"name": "진료 안내",
"locked": false,
"enabled": true,
"description": "상담 절차와 보험 적용 안내"
},
{
"id": "photos",
"type": "photos",
"name": "사진 갤러리",
"locked": false,
"enabled": true,
"description": "진료실, 상담실, 대기 공간"
},
{
"id": "inquiry",
"type": "inquiry",
"name": "상담 문의",
"locked": false,
"enabled": true,
"description": "방문·전화 상담 접수"
},
{
"id": "map",
"type": "map",
"name": "오시는 길",
"locked": true,
"enabled": true,
"description": "역에서 오는 길과 주차장"
},
{
"id": "weather",
"type": "weather",
"name": "날씨",
"locked": false,
"enabled": false,
"description": "현재 기온과 주변 날씨"
},
{
"id": "local",
"type": "local",
"name": "주변 정보",
"locked": false,
"enabled": false,
"description": "주변 편의시설"
},
{
"id": "faq",
"type": "faq",
"name": "자주 묻는 질문",
"locked": false,
"enabled": true,
"description": "예약 변경, 회복 기간, 주의사항"
},
{
"id": "social",
"type": "social",
"name": "SNS 게시글",
"locked": false,
"enabled": false,
"description": "승인해 함께 발행한 소식 · 홈페이지 맨 아래"
}
]
}
}
}