-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
115 lines (105 loc) · 4.76 KB
/
options.html
File metadata and controls
115 lines (105 loc) · 4.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GenAI Browser Tool - Settings</title>
<link rel="stylesheet" href="options.css">
</head>
<body>
<div class="settings-container">
<!-- Header -->
<header class="settings-header">
<div class="header-content">
<div class="logo-section">
<div class="logo-icon">🤖</div>
<div class="title-section">
<h1>GenAI Browser Tool Settings</h1>
<p class="version">Version 3.0.0</p>
</div>
</div>
</div>
</header>
<!-- Welcome Section -->
<section class="welcome-section" id="welcome-section" style="display: none;">
<h2>Welcome to GenAI Browser Tool!</h2>
<p>Let's get you set up. Choose your preferred AI provider below.</p>
<button id="get-started">Get Started</button>
</section>
<!-- Main Content -->
<main class="settings-main">
<!-- Navigation -->
<nav class="settings-nav">
<div class="nav-group">
<h3>Configuration</h3>
<button class="nav-item active" data-section="ai-providers">AI Providers</button>
<button class="nav-item" data-section="features">Features</button>
</div>
<div class="nav-group">
<h3>Data</h3>
<button class="nav-item" data-section="privacy">Privacy</button>
</div>
</nav>
<!-- Content Sections -->
<div class="settings-content">
<!-- AI Providers Section -->
<section class="settings-section active" id="ai-providers-section">
<div class="section-header">
<h2>AI Providers</h2>
<p>Configure your preferred AI providers and API keys.</p>
</div>
<div class="setting-group">
<h3>Primary AI Provider</h3>
<div class="provider-options">
<label><input type="radio" name="primary-provider" value="chrome-ai"> Chrome Built-in AI</label>
<label><input type="radio" name="primary-provider" value="openai"> OpenAI</label>
<!-- Add other providers as needed -->
</div>
</div>
<div class="setting-group">
<h3>API Keys</h3>
<div class="setting-item">
<label for="openai-key">OpenAI API Key</label>
<input type="password" id="openai-key" placeholder="Enter your OpenAI API key">
</div>
</div>
</section>
<!-- Features Section -->
<section class="settings-section" id="features-section">
<div class="section-header">
<h2>Features</h2>
<p>Enable and configure extension features.</p>
</div>
<div class="setting-group">
<div class="setting-item">
<label><input type="checkbox" id="smart-bookmarks"> Enable Smart Bookmarks</label>
</div>
<div class="setting-item">
<label><input type="checkbox" id="context-menus"> Enable Context Menus</label>
</div>
<div class="setting-item">
<label><input type="checkbox" id="auto-analysis"> Enable Auto Page Analysis</label>
</div>
</div>
</section>
<!-- Privacy Section -->
<section class="settings-section" id="privacy-section">
<div class="section-header">
<h2>Privacy & Security</h2>
<p>Manage your data and privacy settings.</p>
</div>
<div class="setting-group">
<button id="reset-settings" class="danger-button">Reset All Settings</button>
</div>
</section>
</div>
</main>
<!-- Save Indicator -->
<div class="save-indicator" id="save-indicator">
<span class="icon">✅</span>
<span class="text">Settings saved</span>
</div>
</div>
<script type="module" src="options.js"></script>
</body>
</html>