video-compressor/provider-template.html

83 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Easily compress video files to {{size}}MB so you can upload them to {{provider}}, online for free">
<title>Compress videos to {{size}}MB for uploading to {{provider}}</title>
<script defer src="/assets/scripts/ffmpeg/package/dist/umd/ffmpeg.js"></script>
<script defer type="module" src="/assets/scripts/main.js"></script>
<script>
var FILE_SIZE = {{size}};
var FILE_SIZE_UNIT = "mb";
</script>
<link rel="canonical" href="https://compact.video/providers/{{slug}}/">
<link rel="shortcut icon" href="/assets/images/icon.png">
<link rel="apple-touch-icon" href="/assets/images/icon.png">
<link rel="stylesheet" href="/assets/styles/main.css">
<link rel="stylesheet" href="/assets/styles/ui.css">
<link rel="stylesheet" href="/assets/styles/file-picker-section.css">
<link rel="stylesheet" href="/assets/styles/loading-section.css">
<link rel="stylesheet" href="/assets/styles/result-section.css">
</head>
<body>
<h1><span class="gradient-text">compact</span>.video</h1>
<h2 style="margin-top: 3rem;">Compress your video to {{size}}MB for uploading to {{provider}}</h2>
<section id="file-picker-section">
<label id="file-drop-area" tabindex="0">
<span>Drag and drop a file here!</span>
<input id="file-input" type="file" accept="video/*" tabindex="-1">
</label>
<div id="file-input-spacing" style="margin-top: -1rem">
<button class="simple">.</button>
</div>
<video id="uploaded-video" controls autoplay></video>
<button id="remove-file" class="simple">Remove video</button>
<button id="compress" class="primary">Compress</button>
<hr>
<p>
To save storage space on their servers, {{provider}} only
allows uploading videos that are less than {{size}}MB in size.
This online tool will allow you to compress your video
file such that it hits exactly this file size, so you
can upload it to {{provider}}.
</p>
<a href="/"><button class="simple">Back to home</button></a>
</section>
<section id="loading-section" style="opacity: 0; display: none;">
<h3 id="loading-title">Please wait...</h3>
<p id="loading-description">Your video is being compressed. This may take a while.</p>
<div id="progress-container">
<div id="progress-indicator"></div>
</div>
<p id="progress-percentage">0%</p>
<p><label><input id="notify-checkbox" type="checkbox"> Notify on finish</label></p>
<button id="cancel" class="simple">Cancel</button>
</section>
<section id="result-section" style="opacity: 0; display: none;">
<h4 id="result-title">Your video has been compressed!</h4>
<p>Result size: <span id="result-size"></span></p>
<video id="compressed-video" controls autoplay></video><br>
<button id="download" class="primary">Download</button><br>
<button id="share" class="secondary">Share video</button><br>
<button id="back" class="simple">Go back</button>
</section>
</body>
</html>