-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
187 lines (162 loc) · 4.16 KB
/
options.html
File metadata and controls
187 lines (162 loc) · 4.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TechDetect Settings</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #1a1b2e;
color: #e2e8f0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
display: flex;
justify-content: center;
padding: 40px 20px;
min-height: 100vh;
}
.settings-card {
background: #222440;
border: 1px solid #2d2f45;
border-radius: 16px;
padding: 32px;
width: 100%;
max-width: 480px;
height: fit-content;
}
.header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.header h1 {
font-size: 22px;
font-weight: 700;
background: linear-gradient(135deg, #6C5CE7, #a29bfe);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.subtitle {
color: #718096;
font-size: 13px;
margin-bottom: 28px;
line-height: 1.5;
}
label {
display: block;
font-size: 12px;
font-weight: 600;
color: #a0aec0;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 8px;
}
input[type="text"] {
width: 100%;
padding: 12px 14px;
background: #1a1b2e;
border: 1px solid #2d2f45;
border-radius: 10px;
color: #e2e8f0;
font-size: 14px;
font-family: "SF Mono", "Fira Code", monospace;
outline: none;
transition: border-color 0.2s;
}
input[type="text"]:focus {
border-color: #6C5CE7;
}
input[type="text"]::placeholder {
color: #4a5568;
}
.btn-row {
display: flex;
gap: 10px;
margin-top: 20px;
}
.btn {
padding: 10px 24px;
border: none;
border-radius: 10px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.btn-save {
background: #6C5CE7;
color: #fff;
flex: 1;
}
.btn-save:hover {
background: #5b4bd5;
transform: translateY(-1px);
}
.btn-clear {
background: #2d2f45;
color: #e2e8f0;
}
.btn-clear:hover {
background: #3d3f55;
}
.toast {
margin-top: 16px;
padding: 10px 14px;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
display: none;
}
.toast.success {
display: block;
background: rgba(0, 184, 148, 0.15);
color: #00cec9;
border: 1px solid rgba(0, 184, 148, 0.3);
}
.toast.error {
display: block;
background: rgba(214, 48, 49, 0.15);
color: #ff6b6b;
border: 1px solid rgba(214, 48, 49, 0.3);
}
.info-box {
margin-top: 24px;
padding: 14px;
background: rgba(108, 92, 231, 0.08);
border: 1px solid rgba(108, 92, 231, 0.2);
border-radius: 10px;
font-size: 12px;
color: #a0aec0;
line-height: 1.6;
}
.info-box strong {
color: #a29bfe;
}
</style>
</head>
<body>
<div class="settings-card">
<div class="header">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none">
<rect x="2" y="2" width="20" height="20" rx="4" fill="#6C5CE7"/>
<path d="M7 12l3 3 7-7" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<h1>TechDetect Settings</h1>
</div>
<p class="subtitle">Configure your API key to start detecting website technologies.</p>
<label for="apiKey">API Key</label>
<input type="text" id="apiKey" placeholder="Enter your API key..." autocomplete="off" spellcheck="false">
<div class="btn-row">
<button id="saveBtn" class="btn btn-save">Save Key</button>
<button id="clearBtn" class="btn btn-clear">Clear</button>
</div>
<div id="toast" class="toast"></div>
<div class="info-box">
<strong>How to get an API key:</strong><br>
Subscribe to the TechDetect API on RapidAPI to get your key, then paste it above.
</div>
</div>
<script src="options.js"></script>
</body>
</html>