Files
o2o-weather/frontend/public/embed/quiet.html
T
skkim dc8201e5f5 feat: 다른 사이트에 붙이는 날씨각 위젯 — 누구나 붙이는 카드(/embed/card, 기본형·상세형, 배경 3종)와 사용 방법 페이지(/widget, 스크립트·iframe 코드)
- 카드: 군산각 카드를 옮겨 그림, 토끼 로딩, 실패하면 '날씨각에서 날씨 보기' 링크, 8초 제한, nginx 대체 화면, '자세히 보기' 버튼만 링크
- 크기: 폭은 자리에 맞춰 자동, 높이는 폭에 따라 비율대로(기본형 245~320px, 상세형 400~520px)
- 부하: 지역별 카드 데이터 5분 저장, 저장분이 비면 지역마다 한 요청만 새로 만듦, 노출 수는 Redis 에 쌓았다가 관리자 조회 때 DB(widget_view_daily)로 옮김
- 사용 방법 페이지: 지역(앱 지역은 바꾸지 않음)·모양·배경 고르기, 미리보기, 코드 복사. 들어오는 길은 문의 창 버튼(토스에서는 숨김)과 검색
- GA: 위젯_안내_보기, 위젯_옵션_고름, 위젯_코드_복사
- 문서: docs/위젯_운영.md, 백엔드 테스트 실행법(CLAUDE.md)
2026-11-26 13:03:29 +09:00

16 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex">
<title>날씨각</title>
<meta name="color-scheme" content="light">
<!-- 백엔드가 안 될 때 nginx 가 /embed/card 대신 주는 화면 (nginx.conf 의 @embed_quiet). 백엔드의 조용한 화면(embed_service.render_quiet)과 같은 모양, 배경은 sky -->
<style>html,body{margin:0;height:100%}body{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:16px}a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:#fff;color:#28304a;font:700 14px/1.3 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;text-decoration:none;white-space:nowrap;box-shadow:0 4px 12px rgba(40,48,74,.12)}a:hover{color:#1d4f96;text-decoration:underline}.wx-q-sky::before{content:"";position:fixed;inset:0;z-index:-1;border-radius:28px;background:linear-gradient(#9fd3ff,#cfe9ff 55%,#f1f8ff)}</style>
</head>
<body class="wx-q-sky">
<a href="https://weather.o2o.kr/?utm_source=widget&amp;utm_medium=embed&amp;utm_campaign=unknown" target="_blank" rel="noopener">날씨각에서 날씨 보기 ›</a>
</body>
</html>