-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.html
111 lines (96 loc) · 3.49 KB
/
start.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pasteAI - Text Optimizer</title>
<script type="module" src="/src/start.ts" defer></script>
<style>
:root {
/* System-dependent colors */
color-scheme: light dark;
--bg-color: #ffffff;
--text-color: #333333;
--steps-bg: #f5f5f5;
--button-bg: #4a90e2;
--button-text: white;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #1a1a1a;
--text-color: #e0e0e0;
--steps-bg: #2d2d2d;
--button-bg: #5a9ee6;
--button-text: white;
}
}
body {
background-color: var(--bg-color);
color: var(--text-color);
font-family: system-ui, -apple-system, sans-serif;
line-height: 1.6;
}
.container {
padding: 2rem;
max-width: 800px;
margin: 0 auto;
}
.button {
padding: 10px 20px;
margin: 10px 8px;
cursor: pointer;
background-color: var(--button-bg);
color: var(--button-text);
border: none;
border-radius: 6px;
transition: opacity 0.2s;
}
.button:hover {
opacity: 0.9;
}
.steps {
background: var(--steps-bg);
padding: 1.5rem;
border-radius: 8px;
margin: 1.5rem 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="container">
<h1>✨ Welcome to pasteAI Text Optimizer</h1>
<div class="info-section">
<h2>🔄 How It Works</h2>
<p>This app automatically optimizes and improves your text using AI when you perform a simple double-copy
operation:</p>
<div class="steps">
<ol>
<li>✂️ Select your text and copy it (Ctrl+C or ⌘+C)</li>
<li>⚡ Immediately copy again within 1 second</li>
<li>⚡ Copy one more time so a total of 3 times)</li>
<li>🎉 The AI-improved version of your text will automatically be placed in your clipboard!</li>
</ol>
</div>
<h2>⚙️ Important Setup</h2>
<p>You can use some free tokens from our server. After this, you'll need to either
purchase more tokens from <a href="https://pasteai.app" target="_blank">pasteai.app</a> or provide
your own OpenAI API key from <a href="https://platform.openai.com/api-keys" target="_blank">OpenAI's
website</a>.
</p>
<p><strong>💡 Quick Tip:</strong> The app runs silently in the background. All main functions are available
through
the tray icon in your system tray/menu bar.</p>
</div>
<div class="actions">
<button id="openSettings" class="button">⚙️ Open Settings</button>
<button id="closeWindow" class="button">❌ Close This Window</button>
</div>
<div class="checkbox-container">
<label>
<input type="checkbox" id="doNotShowAgain">
Do not show this window again </label>
</div>
</div>
</body>
</html>