-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecorder.html
More file actions
195 lines (185 loc) · 8.04 KB
/
Copy pathrecorder.html
File metadata and controls
195 lines (185 loc) · 8.04 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
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<title>Screen Recorder</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
</head>
<body>
<div class="app-container">
<div class="sidebar">
<div class="logo-container">
<div class="logo">
<svg class="logo-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-width="2"/>
<circle cx="12" cy="12" r="4" fill="currentColor"/>
</svg>
<span>Screen Recorder</span>
</div>
<div class="top-actions">
<button id="historyBtn" class="history-toggle" aria-label="View history" data-tooltip="Recording history">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M12 8v4l3 3"/>
<circle cx="12" cy="12" r="10"/>
</svg>
</button>
<button id="themeToggle" class="theme-toggle" aria-label="Toggle theme" data-tooltip="Toggle dark mode">
<svg class="sun-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<circle cx="12" cy="12" r="5"/>
<line x1="12" y1="1" x2="12" y2="3"/>
<line x1="12" y1="21" x2="12" y2="23"/>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>
<line x1="1" y1="12" x2="3" y2="12"/>
<line x1="21" y1="12" x2="23" y2="12"/>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>
</svg>
<svg class="moon-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>
</svg>
</button>
</div>
</div>
<div class="settings-panel">
<div class="settings-header">
<h3>Recording Settings</h3>
</div>
<div class="settings-content">
<div class="setting-group">
<label for="resolution">Resolution</label>
<div class="select-wrapper">
<select id="resolution" class="setting-select">
<option value="3840x2160">4K (3840x2160)</option>
<option value="2560x1440">2K (2560x1440)</option>
<option value="1920x1080" selected>Full HD (1920x1080)</option>
<option value="1280x720">HD (1280x720)</option>
<option value="854x480">480p (854x480)</option>
<option value="640x360">360p (640x360)</option>
</select>
</div>
</div>
<div class="setting-group">
<label for="codec">Video Codec</label>
<div class="select-wrapper">
<select id="codec" class="setting-select">
<option value="video/webm">WebM</option>
</select>
</div>
</div>
<div class="setting-group">
<label for="delay">Start Delay</label>
<div class="select-wrapper">
<select id="delay" class="setting-select">
<option value="0">No Delay</option>
<option value="3">3 Seconds</option>
<option value="5">5 Seconds</option>
<option value="10">10 Seconds</option>
</select>
</div>
</div>
<button id="saveSettingsBtn" class="btn-secondary save-settings-btn" data-tooltip="Save current settings">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"/>
<polyline points="17 21 17 13 7 13 7 21"/>
</svg>
Save Settings
</button>
</div>
</div>
<div id="historyOverlay" class="history-overlay">
<div class="history-modal">
<div class="history-modal-header">
<h3>Recording History</h3>
<div class="history-actions">
<button id="clearHistoryBtn" class="btn-secondary clear-history-btn" title="Clear all recordings">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M3 6h18"/>
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>
</svg>
Clear All
</button>
<button id="closeHistoryBtn" class="close-history-btn" aria-label="Close history">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
</div>
<div id="recordingsList" class="recordings-list">
<!-- Recordings will be inserted here dynamically -->
</div>
</div>
</div>
</div>
<div class="main-content">
<div class="minimal-header">
<div class="minimal-toggle">
<button id="backBtn" class="back-arrow">
<svg class="arrow-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M19 12H5"/>
<path class="arrow-head" d="M12 19l-7-7 7-7"/>
</svg>
</button>
<span class="minimal-label">Minimal Mode</span>
</div>
</div>
<div class="top-bar">
<div class="status-timer-pill">
<div class="timer-section">
<svg class="timer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<circle cx="12" cy="12" r="10"/>
<polyline points="12 6 12 12 16 14"/>
</svg>
<span id="recordingTimer">00:00:00</span>
</div>
<div class="status-section">
<span id="statusIndicator" class="status-dot"></span>
<span id="statusText">Ready</span>
</div>
</div>
</div>
<div class="preview-container">
<div class="video-aspect-container">
<video id="preview" autoplay muted></video>
</div>
<div class="player-container" style="display: none;">
<div class="video-aspect-container">
<video id="player" controls>
Your browser doesn't support video playback.
</video>
</div>
</div>
</div>
<div class="control-panel">
<div class="control-buttons">
<button id="startBtn" class="btn-primary" data-tooltip="Start screen recording">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<circle cx="12" cy="12" r="10"/>
<circle cx="12" cy="12" r="3" fill="currentColor"/>
</svg>
Start Recording
</button>
<button id="stopBtn" class="btn-danger" disabled data-tooltip="Stop current recording">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<rect x="6" y="6" width="12" height="12"/>
</svg>
Stop
</button>
<button id="downloadBtn" class="btn-secondary" disabled data-tooltip="Save recording to file">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="7 10 12 15 17 10"/>
<line x1="12" y1="15" x2="12" y2="3"/>
</svg>
Save Recording
</button>
</div>
</div>
</div>
</div>
<script src="recorder.js"></script>
</body>
</html>