-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
169 lines (169 loc) · 4.91 KB
/
index.html
File metadata and controls
169 lines (169 loc) · 4.91 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Video Transcription App</title>
<style>
body {
margin: 0;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.container {
display: grid;
grid-template-columns: 300px 1fr;
gap: 20px;
height: calc(100vh - 40px);
}
.video-list {
background: #f5f5f5;
padding: 20px;
border-radius: 8px;
display: flex;
flex-direction: column;
}
.import-btn {
background: #4CAF50;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
margin-bottom: 10px;
font-size: 14px;
}
.import-btn:hover {
background: #45a049;
}
.status-container {
margin-bottom: 20px;
}
.status-message {
background: #e8f5e9;
padding: 10px;
border-radius: 4px;
margin-bottom: 10px;
font-size: 14px;
color: #2e7d32;
}
.progress-bar {
width: 100%;
height: 4px;
background: #ddd;
border-radius: 2px;
overflow: hidden;
display: none;
}
.progress-bar.active {
display: block;
}
.progress-bar-fill {
height: 100%;
background: #4CAF50;
width: 0%;
transition: width 0.3s ease;
}
.video-item {
padding: 15px;
background: white;
margin-bottom: 8px;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.video-item:hover {
background: #e9e9e9;
transform: translateX(2px);
}
.video-name {
font-weight: 500;
margin-bottom: 5px;
}
.video-info {
font-size: 12px;
color: #666;
display: flex;
flex-direction: column;
gap: 2px;
}
.main-content {
background: #f5f5f5;
padding: 20px;
border-radius: 8px;
display: flex;
flex-direction: column;
gap: 20px;
}
.media-container {
display: none;
flex-direction: column;
gap: 20px;
}
.media-container.active {
display: flex;
}
.video-container {
width: 100%;
background: #000;
border-radius: 8px;
overflow: hidden;
}
video {
width: 100%;
max-height: 400px;
}
.audio-container {
width: 100%;
background: #fff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
audio {
width: 100%;
}
.open-location-btn {
background: #2196F3;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
align-self: flex-start;
}
.open-location-btn:hover {
background: #1976D2;
}
</style>
</head>
<body>
<div class="container">
<div class="video-list">
<button id="importBtn" class="import-btn">Import New Video</button>
<div class="status-container">
<div id="statusMessage" class="status-message">Ready to process videos</div>
<div id="progressBar" class="progress-bar">
<div id="progressBarFill" class="progress-bar-fill"></div>
</div>
</div>
<div id="videoListContainer">
<!-- Video items will be added here dynamically -->
</div>
</div>
<div class="main-content">
<div id="mediaContainer" class="media-container">
<div class="video-container">
<video id="videoPlayer" controls></video>
</div>
<div class="audio-container">
<audio id="audioPlayer" controls></audio>
</div>
<button id="openLocationBtn" class="open-location-btn">Open Audio File Location</button>
</div>
</div>
</div>
<script src="dist/renderer.js"></script>
</body>
</html>