-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
297 lines (284 loc) · 16.4 KB
/
index.html
File metadata and controls
297 lines (284 loc) · 16.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quitty - Keep your Mac clean and fast</title>
<meta name="description" content="Quitty is a lightweight, modern macOS utility that automatically terminates applications when their last window is closed.">
<link rel="stylesheet" href="index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
<nav class="navbar">
<div class="container">
<div class="logo">
<img src="icon_1024.png" alt="Quitty Logo">
<span data-i18n="nav_logo_text">Quitty</span>
</div>
<div class="nav-links">
<a href="#features" data-i18n="nav_features">特性</a>
<a href="#how-it-works" data-i18n="nav_how">原理</a>
<a href="https://github.com/chentao1006/quitty/releases" class="btn btn-primary" data-i18n="nav_download">立即下载</a>
<div class="nav-gh">
<a class="github-button" href="https://github.com/chentao1006/quitty" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star chentao1006/quitty on GitHub">Star</a>
</div>
<button id="lang-toggle" class="btn-lang">EN</button>
</div>
</div>
</nav>
<header class="hero">
<div class="container">
<div class="hero-content">
<div class="badge" data-i18n="hero_badge">macOS Tahoe Ready</div>
<h1 data-i18n="hero_title">让您的 Mac 保持<br>始终如新的清爽</h1>
<p class="subtitle" data-i18n="hero_subtitle">Quitty 是一款轻量级的 macOS 工具,它能在您关闭 App 的最后一个窗口时,优雅地为您退出该程序。告别杂乱的 Dock 栏,释放系统资源。</p>
<div class="hero-btns">
<a href="https://github.com/chentao1006/quitty/releases" class="btn btn-large btn-primary" data-i18n="hero_btn_download">下载 Quitty</a>
<a href="#features" class="btn btn-large btn-secondary" data-i18n="hero_btn_more">了解更多</a>
<div style="margin-top: 16px;">
<a href="https://github.com/chentao1006/quitty/releases/latest" target="_blank">
<img src="https://img.shields.io/badge/静隐-最新版本-blue?style=for-the-badge&logo=apple" alt="下载 静隐" />
</a>
</div>
</div>
</div>
<div class="hero-image">
<div class="app-mockup">
<img src="icon_1024.png" alt="Quitty App Icon" class="main-icon">
<div class="glass-plate"></div>
</div>
</div>
</div>
</header>
<section id="features" class="features">
<div class="container">
<div class="section-header">
<h2 data-i18n="features_title">简洁,但不简单</h2>
<p data-i18n="features_subtitle">专注于核心体验,为您打理每一个细节</p>
</div>
<div class="feature-grid">
<div class="feature-card">
<div class="icon">🚀</div>
<h3 data-i18n="f1_title">自动退出</h3>
<p data-i18n="f1_desc">关闭最后一个窗口即自动终止应用,无需手动 CMD+Q,保持 Dock 栏整洁。</p>
</div>
<div class="feature-card">
<div class="icon">🛡️</div>
<h3 data-i18n="f2_title">智能过滤</h3>
<p data-i18n="f2_desc">支持包含/排除模式。您可以让特定应用始终运行,或只针对某些应用启用自动退出。</p>
</div>
<div class="feature-card">
<div class="icon">⚡</div>
<h3 data-i18n="f3_title">极致性能</h3>
<p data-i18n="f3_desc">基于原生 Accessibility API (AXObserver) 构建,完美兼容最新的 macOS Tahoe。</p>
</div>
<div class="feature-card">
<div class="icon">🔄</div>
<h3 data-i18n="f4_title">iCloud 同步</h3>
<p data-i18n="f4_desc">通过 iCloud 在多台 Mac 之间自动同步您的设置和已学习的自学习规则。</p>
</div>
<div class="feature-card">
<div class="icon">🧠</div>
<h3 data-i18n="f5_title">自我学习</h3>
<p data-i18n="f5_desc">根据您的反馈自动调整退出逻辑。误退上报后,系统会自动学习并避免此类情况再次发生。</p>
</div>
</div>
</div>
</section>
<section id="how-it-works" class="how-it-works">
<div class="container">
<div class="content-wrapper">
<div class="text">
<h2 data-i18n="how_title">它是如何工作的?</h2>
<p data-i18n="how_subtitle">Quitty 采用非侵入式设计。它通过监控系统级别的窗口事件,在检测到应用最后一个窗口关闭时,会进行二次确认并安全地执行退出指令。</p>
<ul class="steps">
<li><span class="num">1</span> <text data-i18n="s1">监控窗口关闭通知</text></li>
<li><span class="num">2</span> <text data-i18n="s2">智能检查剩余窗口(排除抽屉和表单)</text></li>
<li><span class="num">3</span> <text data-i18n="s3">倒计时延迟退出(可调 0-5s)</text></li>
</ul>
</div>
<div class="graphic">
<div class="status-indicator">
<div class="dot active"></div>
<div class="pulse"></div>
</div>
</div>
</div>
</div>
</section>
<!-- 免责声明声明 -->
<section class="disclaimer">
<style>
.disclaimer {
padding: 1.5em 0;
margin-bottom: 0.5em;
border-top: 1px solid #ffe58f;
background: #fffbe6;
color: #664d03;
transition: background 0.3s, color 0.3s;
}
.disclaimer a { color: #b8860b; text-decoration: underline; }
@media (prefers-color-scheme: dark) {
.disclaimer {
background: #23210a;
color: #ffe58f;
border-top: 1px solid #b8860b;
}
.disclaimer a { color: #ffe58f; }
}
</style>
<div class="container">
<div id="disclaimer-zh">
<strong>注意事项:</strong>由于 macOS 的安全机制限制,以及各个应用可能采用了不同的窗口管理和技术实现,Quitty(静隐)无法保证对所有应用都能完全实现自动退出功能。我们始终遵循保守原则,尽量避免误退出正在使用的应用,但仍无法做到 100% 避免误操作。如遇到无法退出或误退出的情况,欢迎提交 issue(<a href="https://github.com/chentao1006/quitty/issues" target="_blank">点击这里提交</a>),我会在有空时尽力修复。感谢您的理解与支持!
</div>
<div id="disclaimer-en" style="display:none">
<strong>Notes:</strong> Due to macOS security mechanisms and the fact that each app may use its own window management and technical implementation, Quitty cannot guarantee to fully quit every application in all scenarios. We always follow a conservative principle to avoid quitting apps that are still in use, but 100% accuracy cannot be guaranteed. If you encounter apps that cannot be quit or are quit incorrectly, please submit an issue (<a href="https://github.com/chentao1006/quitty/issues" target="_blank">submit here</a>) and I will try to investigate when possible. Thank you for your understanding and support!
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="footer-top">
<div class="footer-brand">
<img src="icon_1024.png" alt="Quitty Logo">
<h3 data-i18n="nav_logo_text">Quitty</h3>
</div>
<p data-i18n="footer_tagline">开源、透明、高效的 macOS 实用工具。</p>
</div>
<div class="footer-bottom">
<p data-i18n="footer_copy">© 2026 Quitty / 静隐. All rights reserved.</p>
<div class="social-links">
<div class="nav-gh">
<a class="github-button" href="https://github.com/chentao1006/quitty" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-show-count="true" aria-label="Star chentao1006/quitty on GitHub">Star</a>
</div>
</div>
</div>
</div>
</footer>
<script>
const i18n = {
zh: {
page_title: "静隐 - 开启清爽的 macOS 体验",
nav_logo_text: "静隐",
nav_features: "特性",
nav_how: "原理",
nav_download: "立即下载",
hero_badge: "macOS Tahoe 兼容",
hero_title: "静隐 让您的 Mac<br>始终如新的清爽",
hero_subtitle: "静隐 是一款轻量级的 macOS 工具,它能在您关闭 App 的最后一个窗口时,优雅地为您退出该程序。告别杂乱的 Dock 栏,释放系统资源。",
hero_btn_download: "下载 静隐",
hero_btn_more: "了解更多",
features_title: "简洁,但不简单",
features_subtitle: "专注于核心体验,为您打理每一个细节",
f1_title: "自动退出",
f1_desc: "关闭最后一个窗口即自动终止应用,无需手动 CMD+Q,保持 Dock 栏整洁。",
f2_title: "智能过滤",
f2_desc: "支持包含/排除模式。您可以让特定应用始终运行,或只针对某些应用启用自动退出。",
f3_title: "极致性能",
f3_desc: "基于原生 Accessibility API (AXObserver) 构建,完美兼容最新的 macOS Tahoe。",
f4_title: "iCloud 同步",
f4_desc: "通过 iCloud 在多台 Mac 之间自动同步您的设置和已学习的退出规则。",
f5_title: "自我学习",
f5_desc: "根据您的反馈自动调整退出逻辑。误退上报后,系统会自动学习并避免此类情况再次发生。",
how_title: "它是如何工作的?",
how_subtitle: "静隐 采用非侵入式设计。它通过监控系统级别的窗口事件,在检测到应用最后一个窗口关闭时,会进行二次确认并安全地执行退出指令。",
s1: "监控窗口关闭通知",
s2: "智能检查剩余窗口(排除抽屉和表单)",
s3: "倒计时延迟退出(可调 0-5s)",
footer_tagline: "开源、透明、高效的 macOS 窗口管理辅助工具。",
footer_copy: "© 2026 静隐. 让您的 macOS 体验更纯粹。"
},
en: {
page_title: "Quitty - Keep your Mac clean and fast",
nav_logo_text: "Quitty",
nav_features: "Features",
nav_how: "Philosophy",
nav_download: "Download",
hero_badge: "macOS Tahoe Native",
hero_title: "Keep your Mac<br>Always Fresh",
hero_subtitle: "Quitty automates application termination when the last window disappears. Keep your Dock clean and system resources optimized.",
hero_btn_download: "Download Now",
hero_btn_more: "Learn More",
features_title: "Powerfully Simple",
features_subtitle: "Focused on essentials, designed for high performance.",
f1_title: "Auto-Termination",
f1_desc: "Quits applications as soon as the last window is closed. No more manual CMD+Q.",
f2_title: "Intelligent Filtering",
f2_desc: "Include or Exclude modes. Protect your IDEs while cleaning up everything else.",
f3_title: "Tahoe Ready",
f3_desc: "Built using raw Accessibility APIs for maximum speed and compatibility with macOS 16.",
f4_title: "iCloud Sync",
f4_desc: "Seamlessly sync your custom app rules and settings across all your Macs via iCloud.",
f5_title: "Self-Learning",
f5_desc: "Quitty evolves based on your feedback, intelligently avoiding false-quits for your unique apps.",
how_title: "How it works?",
how_subtitle: "Quitty monitors system-wide window events non-intrusively. It confirms the window count before safely terminating the app.",
s1: "Monitor window close events",
s2: "Smart verification of remaining windows",
s3: "Scheduled termination with optional grace period",
footer_tagline: "Open-source, transparent, and efficient macOS utility.",
footer_copy: "© 2026 Quitty. Enhance your macOS experience."
}
};
let currentLang = localStorage.getItem('lang');
if (!currentLang) {
currentLang = navigator.language.startsWith('zh') ? 'zh' : 'en';
}
function updateUI() {
document.querySelectorAll('[data-i18n]').forEach(el => {
const key = el.getAttribute('data-i18n');
if (i18n[currentLang][key]) {
el.innerHTML = i18n[currentLang][key];
}
});
document.title = i18n[currentLang].page_title;
document.getElementById('lang-toggle').innerText = currentLang === 'zh' ? 'EN' : '中文';
document.documentElement.lang = currentLang === 'zh' ? 'zh-CN' : 'en';
// 切换免责声明
if (currentLang === 'zh') {
document.getElementById('disclaimer-zh').style.display = '';
document.getElementById('disclaimer-en').style.display = 'none';
} else {
document.getElementById('disclaimer-zh').style.display = 'none';
document.getElementById('disclaimer-en').style.display = '';
}
}
document.getElementById('lang-toggle').addEventListener('click', () => {
currentLang = currentLang === 'zh' ? 'en' : 'zh';
localStorage.setItem('lang', currentLang);
updateUI();
});
// Initial setup
updateUI();
// Intersection Observer for scroll animations
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('reveal');
}
});
}, observerOptions);
document.querySelectorAll('.feature-card, .text, .graphic').forEach(el => {
el.classList.add('reveal-init');
observer.observe(el);
});
// Smooth scroll
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
const target = document.querySelector(this.getAttribute('href'));
if (target) {
e.preventDefault();
target.scrollIntoView({ behavior: 'smooth' });
}
});
});
</script>
</body>
</html>