-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsettings.html
More file actions
109 lines (107 loc) · 2.59 KB
/
Copy pathsettings.html
File metadata and controls
109 lines (107 loc) · 2.59 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
<!DOCTYPE html>
<html>
<head>
<title>Settings</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
margin: 0;
padding: 20px;
background-color: #ffffff;
}
.settings-container {
margin: 0 auto;
padding: 20px;
}
.settings-header {
margin-bottom: 30px;
}
.settings-title {
font-size: 20px;
font-weight: 500;
color: #333;
margin: 0;
}
.settings-section {
margin-bottom: 30px;
}
.section-title {
font-size: 16px;
font-weight: 500;
color: #666;
margin-bottom: 15px;
}
.setting-item {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.setting-label {
flex: 1;
font-size: 14px;
color: #333;
}
.setting-control {
margin-left: 20px;
flex: 2;
}
input[type="text"] {
padding: 8px 12px;
border: 1px solid #e0e0e0;
border-radius: 4px;
font-size: 14px;
width: 100%;
box-sizing: border-box;
}
input[type="text"]:focus {
outline: none;
border-color: #007aff;
}
.save-button {
background-color: #007aff;
color: white;
border: none;
padding: 10px 16px;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
width: 100%;
margin-top: 20px;
}
.save-button:hover {
background-color: #0056b3;
}
.api-key-description {
font-size: 12px;
color: #999;
margin-top: 4px;
}
</style>
</head>
<body>
<div class="settings-container">
<div class="settings-header">
<h1 class="settings-title">Settings</h1>
</div>
<div class="settings-section">
<div class="setting-item">
<label class="setting-label">OpenAI API Key</label>
<div class="setting-control">
<input
type="text"
id="openaiKey"
placeholder="Enter your OpenAI API key"
/>
<div class="api-key-description">
Your API key is stored locally and never sent to any server except
OpenAI's API.
</div>
</div>
</div>
</div>
<button class="save-button" id="saveButton">Save</button>
</div>
<script src="src/settings.js"></script>
</body>
</html>