226 lines
6.3 KiB
HTML
226 lines
6.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
<title>Video Editor</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 20px;
|
|
background-color: #43138bb9;
|
|
color: white;
|
|
font-family: Arial, sans-serif;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
#video-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: rgba(93, 63, 189, 0.1);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
#recorded-video {
|
|
max-width: 80vw;
|
|
max-height: 70vh;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
#timeline {
|
|
width: 80vw;
|
|
height: 50px;
|
|
background: #5d3fbd;
|
|
margin: 20px 0;
|
|
position: relative;
|
|
cursor: pointer;
|
|
border-radius: 25px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#trim-start, #trim-end {
|
|
position: absolute;
|
|
height: 100%;
|
|
width: 10px;
|
|
background: rgba(159, 140, 189, 0.767);
|
|
cursor: pointer;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
|
|
#controls {
|
|
margin-top: 20px;
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn,
|
|
button {
|
|
background-color: #5d3fbd;
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 24px;
|
|
border-radius: 25px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn:hover,
|
|
button:hover {
|
|
background-color: #4d2fa7;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn:disabled,
|
|
button:disabled {
|
|
background-color: #999;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
z-index: 1000;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 10px;
|
|
width: 90%;
|
|
max-width: 500px;
|
|
color: #333;
|
|
position: relative;
|
|
}
|
|
|
|
/* Updated button container styles */
|
|
.modal-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Button styles */
|
|
.modal-buttons .btn {
|
|
background-color: #5d3fbd;
|
|
color: white;
|
|
padding: 12px 24px;
|
|
border: none;
|
|
border-radius: 25px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.modal-buttons .btn:hover {
|
|
background-color: #4d2fa7;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Textarea and input styles */
|
|
.modal textarea,
|
|
.modal input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 10px;
|
|
background: #eee;
|
|
border-radius: 5px;
|
|
margin: 10px 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar-fill {
|
|
height: 100%;
|
|
background: #5d3fbd;
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div id="video-container">
|
|
<video id="recorded-video" controls></video>
|
|
<div id="timeline">
|
|
<div id="trim-start"></div>
|
|
<div id="trim-end"></div>
|
|
</div>
|
|
<div id="controls">
|
|
<button class="btn" id="download-btn">
|
|
<i class="fas fa-download"></i>
|
|
Download
|
|
</button>
|
|
<button class="btn" id="trim-btn">
|
|
<i class="fas fa-cut"></i>
|
|
Trim Video
|
|
</button>
|
|
<button class="btn upload-btn-youtube" id="upload-youtube">
|
|
<i class="fab fa-youtube"></i>
|
|
Upload to YouTube
|
|
</button>
|
|
<button class="btn upload-btn-vimeo" id="upload-vimeo">
|
|
<i class="fab fa-vimeo-v"></i>
|
|
Upload to Vimeo
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Embed Code Modal -->
|
|
<div id="embed-modal" class="modal">
|
|
<div class="modal-content" id="embed-btn">
|
|
<i class="fas fa-code"></i>
|
|
<h2>Embed Code</h2>
|
|
<p>Copy and paste this code to embed the video on your website:</p>
|
|
<textarea id="embed-code" rows="4" readonly></textarea>
|
|
<div class="modal-buttons">
|
|
<button class="btn" id="copy-embed">Copy Code</button>
|
|
<button class="btn" id="close-embed-modal">Close</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Font Awesome for icons -->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js"></script>
|
|
<script src="https://apis.google.com/js/api.js"></script>
|
|
<script src="video.js"></script>
|
|
<script src="video-upload.js"></script>
|
|
</body>
|
|
</html> |