Rename providers to platforms
This commit is contained in:
parent
b19d3278fe
commit
b8b0266a49
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
public/assets/scripts/ffmpeg/
|
public/assets/scripts/ffmpeg/
|
||||||
public/assets/scripts/core/
|
public/assets/scripts/core/
|
||||||
public/providers
|
public/platforms
|
||||||
|
|
||||||
|
|||||||
13
build.sh
13
build.sh
@ -1,18 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Generate provider pages
|
# Generate platform pages
|
||||||
|
|
||||||
declare -a providers=(Discord Gmail "Yahoo Mail" Messenger Signal WhatsApp)
|
declare -a platforms=(Discord Gmail "Yahoo Mail" Messenger Signal WhatsApp)
|
||||||
declare -a slugs=(discord gmail yahoo-mail messenger signal whatsapp)
|
declare -a slugs=(discord gmail yahoo-mail messenger signal whatsapp)
|
||||||
declare -a sizes=(10 25 25 100 100 180)
|
declare -a sizes=(10 25 25 100 100 180)
|
||||||
|
|
||||||
for i in "${!providers[@]}"
|
for i in "${!platforms[@]}"
|
||||||
do
|
do
|
||||||
mkdir -p "public/providers/${slugs[$i]}"
|
mkdir -p "public/platforms/${slugs[$i]}"
|
||||||
cp provider-template.html "public/providers/${slugs[$i]}/index.html"
|
cp platform-template.html "public/platforms/${slugs[$i]}/index.html"
|
||||||
sed -i -e "s/{{provider}}/${providers[$i]}/g" -e "s/{{size}}/${sizes[$i]}/g" -e "s/{{slug}}/${slugs[$i]}/g" "public/providers/${slugs[$i]}/index.html"
|
sed -i -e "s/{{platform}}/${platforms[$i]}/g" -e "s/{{size}}/${sizes[$i]}/g" -e "s/{{slug}}/${slugs[$i]}/g" "public/platforms/${slugs[$i]}/index.html"
|
||||||
done
|
done
|
||||||
exit
|
|
||||||
|
|
||||||
# Download ffmpeg libraries
|
# Download ffmpeg libraries
|
||||||
|
|
||||||
|
|||||||
@ -3,15 +3,15 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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">
|
<meta name="description" content="Easily compress video files to {{size}}MB so you can upload them to {{platform}}, online for free">
|
||||||
<title>Compress videos to {{size}}MB for uploading to {{provider}}</title>
|
<title>Compress videos to {{size}}MB for uploading to {{platform}}</title>
|
||||||
<script defer src="/assets/scripts/ffmpeg/package/dist/umd/ffmpeg.js"></script>
|
<script defer src="/assets/scripts/ffmpeg/package/dist/umd/ffmpeg.js"></script>
|
||||||
<script defer type="module" src="/assets/scripts/main.js"></script>
|
<script defer type="module" src="/assets/scripts/main.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var FILE_SIZE = {{size}};
|
var FILE_SIZE = {{size}};
|
||||||
var FILE_SIZE_UNIT = "mb";
|
var FILE_SIZE_UNIT = "mb";
|
||||||
</script>
|
</script>
|
||||||
<link rel="canonical" href="https://compact.video/providers/{{slug}}/">
|
<link rel="canonical" href="https://compact.video/platforms/{{slug}}/">
|
||||||
<link rel="shortcut icon" href="/assets/images/icon.png">
|
<link rel="shortcut icon" href="/assets/images/icon.png">
|
||||||
<link rel="apple-touch-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/main.css">
|
||||||
@ -22,7 +22,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1><span class="gradient-text">compact</span>.video</h1>
|
<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>
|
<h2 style="margin-top: 3rem;">Compress your video to {{size}}MB for uploading to {{platform}}</h2>
|
||||||
|
|
||||||
<section id="file-picker-section">
|
<section id="file-picker-section">
|
||||||
<label id="file-drop-area" tabindex="0">
|
<label id="file-drop-area" tabindex="0">
|
||||||
@ -41,11 +41,11 @@
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
To save storage space on their servers, {{provider}} only
|
To save storage space on their servers, {{platform}} only
|
||||||
allows uploading videos that are less than {{size}}MB in size.
|
allows uploading videos that are less than {{size}}MB in size.
|
||||||
This online tool will allow you to compress your video
|
This online tool will allow you to compress your video
|
||||||
file such that it hits exactly this file size, so you
|
file such that it hits exactly this file size, so you
|
||||||
can upload it to {{provider}}.
|
can upload it to {{platform}}.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a href="/"><button class="simple">Back to home</button></a>
|
<a href="/"><button class="simple">Back to home</button></a>
|
||||||
@ -1,8 +1,8 @@
|
|||||||
https://compact.video/
|
https://compact.video/
|
||||||
https://compact.video/providers/discord/
|
https://compact.video/platforms/discord/
|
||||||
https://compact.video/providers/gmail/
|
https://compact.video/platforms/gmail/
|
||||||
https://compact.video/providers/yahoo-mail/
|
https://compact.video/platforms/yahoo-mail/
|
||||||
https://compact.video/providers/messenger/
|
https://compact.video/platforms/messenger/
|
||||||
https://compact.video/providers/signal/
|
https://compact.video/platforms/signal/
|
||||||
https://compact.video/providers/whatsapp/
|
https://compact.video/platforms/whatsapp/
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user