forked from iSegaro/Gemini-Translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.html
116 lines (113 loc) · 2.76 KB
/
options.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
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Options - Gemini Translate</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
background-color: #f9fafb;
color: #111827;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
h1 {
font-size: 24px;
font-weight: 600;
margin-bottom: 20px;
color: #1a1a1a;
}
.container {
background: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 24px;
width: 100%;
max-width: 400px;
}
label {
font-size: 14px;
font-weight: 500;
color: #374151;
margin-bottom: 8px;
display: block;
}
input {
width: 100%;
padding: 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
color: #111827;
margin-bottom: 16px;
box-sizing: border-box;
}
input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
button {
background-color: #3b82f6;
color: #ffffff;
border: none;
border-radius: 6px;
padding: 10px 16px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
width: 100%;
transition: background-color 0.2s;
}
button:hover {
background-color: #2563eb;
}
#status {
font-size: 14px;
color: #10b981;
margin-top: 12px;
text-align: center;
}
#status.error {
color: #ef4444;
}
.header {
text-align: center;
margin-bottom: 24px;
}
.header h1 {
font-size: 28px;
font-weight: 600;
color: #1a1a1a;
margin: 0;
}
#NameVersion {
font-size: 14px;
color: #6b7280;
margin-top: 4px;
margin-bottom: 0;
}
</style>
<script src="options.js" defer></script>
</head>
<body>
<div class="header">
<h1>Gemini Translate</h1>
<p id="NameVersion"></p>
</div>
<div class="container">
<h2>API Settings</h2>
<label for="apiKey">Enter your API Key:</label>
<input type="text" id="apiKey" placeholder="Paste your API key here" />
<button id="saveApiKey">Save API Key</button>
<p id="status"></p>
</div>
</body>
</html>