preview/index.html: - Fix scrollbar CSS: scoped webkit pseudo-elements + standards-track fallback, removed deprecated overflow:overlay - Keyboard navigation: arrows cycle focus between Theme/Template/Client selects, up/down select within focused dropdown, d/m toggle viewport - Dev/static mode detection: delayed static warning only when WebSocket absent, WebSocket errors only on disconnect (not on initial fail) - iframe sandbox: removed static sandbox attr, applied dynamically only in dev mode (file: protocol rejects sandboxed srcdoc) - Loading fix: removed double-toggle between init and render(); added 5s safety timeout - Transform clean: returns HTML as-is; CSS stripping moved to server-side - Dev disclaimer: blue info banner shown on WebSocket connect tools/server/inliner.mjs: - Added stripGmail() / stripOutlook() — server-side CSS property stripping for email client simulation tools/server/server.mjs: - Fixed WebSocket upgrade: use app.listen() instead of createServer(app).listen() - Juice post-processing now generates three rendered.js variants (modern/gmail/outlook) - Initial startup runs juice-only pass (avoids duplicate Go compilation) docs/ (all 6 languages — en, zh-CN, zh-TW, ja, ko, ru): - Image size limits: max 50KiB, recommended 10-20KiB - Dev disclaimer: simulation cannot 100% reproduce every client - Changed 'accurate' to 'relatively accurate' across all static-mode warnings - Converted all plain blockquotes to GitHub admonitions ([!WARNING] / [!NOTE])
61 lines
2.1 KiB
Markdown
61 lines
2.1 KiB
Markdown
# Gitea 메일 템플릿
|
|
|
|
[Gitea](https://about.gitea.com) 인스턴스를 위한 메일 템플릿 컬렉션.
|
|
|
|
> **110 파일 — 10 스타일, 각 11종류**
|
|
|
|
---
|
|
|
|
## 스타일 갤러리
|
|
|
|
| 미리보기 | 스타일 | 대상 | 특징 |
|
|
|---|---|---|---|
|
|
|  | **Horizon** | 엔터프라이즈 | Blue accent, slate, centred cards |
|
|
|  | **Terminal** | 개발자 | Dark mode, monospace, green CLI |
|
|
|  | **Ember** | 커뮤니티 | Warm amber, rounded, inclusive |
|
|
|  | **Bloom** | 크리에이티브 | Frosted glass, soft blue light |
|
|
|  | **Heritage** | 교육/연구 | Navy and gold, serif, classic |
|
|
|  | **Neon** | 게임/Web3 | Cyberpunk neon, pink and cyan |
|
|
|  | **Mono** | 디자인/편집 | Swiss brutalist, black-white-red |
|
|
|  | **Terra** | 지속가능성 | Warm earth tones, organic textures |
|
|
|  | **Ink** | 출판/뉴스 | Editorial print, navy and gold |
|
|
|  | **Aurora** | 프리미엄SaaS | Ethereal gradients, purple and teal |
|
|
|
|
> 이미지는 [라이브 프리뷰](../preview/index.html)에서 캡처한 600px 너비 스크린샷입니다. 캡처 방법은 [images/README.md](images/README.md)를 참조하세요.
|
|
|
|
[**라이브 프리뷰**](../preview/index.html)
|
|
|
|
---
|
|
|
|
## 설치
|
|
|
|
```bash
|
|
cp -r themes/horizon/mail/* /var/lib/gitea/custom/templates/mail/
|
|
systemctl restart gitea
|
|
```
|
|
|
|
## 프리뷰
|
|
|
|
**정적 모드:**
|
|
```bash
|
|
cd tools && go run . preview all
|
|
```
|
|
그런 다음 `preview/index.html` 열기.
|
|
|
|
**개발 서버 (실시간 리로드 + Juice CSS 인라인 + 클라이언트 시뮬레이션):**
|
|
```bash
|
|
cd tools && go run . dev # Node.js 필요
|
|
# → http://localhost:3456
|
|
```
|
|
|
|
> [!NOTE]
|
|
> Dev 시뮬레이션은 각 이메일 클라이언트의 렌더링을 완전히 재현할 수 없습니다 — 참고용입니다. 실제 클라이언트에서 반드시 확인하세요.
|
|
|
|
## 호환성
|
|
|
|
- **Gitea 1.21+**, 100% 호환, 내장 함수만 사용
|
|
|
|
## 라이선스
|
|
|
|
MIT — [LICENSE](../LICENSE).
|