Update feature table with new transfer limits

This commit is contained in:
2022-02-28 16:35:51 +01:00
parent 0c25e3e474
commit 7adc2f6d16
6 changed files with 52 additions and 24 deletions

19
res/include/md/limits.md Normal file
View File

@@ -0,0 +1,19 @@
# Limits
We need to limit the features of pixeldrain to avoid abuse and encourage you to
get a subscription. Here's an overview of all limits which are currently in
place on pixeldrain.
| | Anonymous | Registered | Pro | Prepaid |
|-----------------------|--------------|-----------------|---------------|---------------------|
| Download speed | 2 MiB/s | 2 MiB/s | Unlimited | Unlimited |
| File storage | Unlimited | 500 GB | 1 TB | Unlimited (€4 / TB) |
| File expiry | 30 days | 30 days | 90 days | Unlimited |
| File size | 10 GB | 10 GB | 20 GB | 20 GB |
| File downloads | 1000 / day | Unlimited | Unlimited | Unlimited |
| Free data transfer | 100 GB / day | Unlimited | Unlimited | Unlimited |
| Premium data transfer | No | 10 GB / month | 1 TB / month | Unlimited (€2 / TB) |
| Video streaming | No | Within data cap | Yes | Yes |
| Ad-free file viewing | No | No | Yes | Yes |
| Kickback fees | No | No | No | Yes |
| File viewer branding | No | No | From €8/month | Yes |

View File

@@ -150,7 +150,7 @@ section {
width: 100%;
height: auto;
padding: 0;
text-align: left;
text-align: initial;
clear: both;
}
@@ -318,7 +318,7 @@ tr > td, tr > th {padding: 0.2em 0.5em;}
}
pre {
margin: 16px;
padding: 10px;
border-bottom: 1px var(--layer_2_color_border) solid;
overflow-x: auto;
}

View File

@@ -13,9 +13,9 @@ export let file = {
{#if file.show_ads && file.size > 1e8}
<!-- If the file is larger than 100 MB we show a warning about the transfer speed -->
<TextBlock width="650px" center={true}>
Your download speed is currently limited to 4 MiB/s. Downloading this
Your download speed is currently limited to 2 MiB/s. Downloading this
file for free will take at least
{formatDuration((file.size/4194304)*1000)} (under ideal conditions).
{formatDuration((file.size/2097152)*1000)} (under ideal conditions).
You can
<a href="https://www.patreon.com/join/pixeldrain/checkout?rid=5291427&cadence=12">
upgrade to Pro

View File

@@ -87,9 +87,9 @@ const code = async file => {
<div bind:this={container} class="container">
{#if text_type === "markdown"}
<div bind:this={md_container}>
<section bind:this={md_container} class="md">
Loading...
</div>
</section>
{:else if text_type === "text"}
<pre bind:this={text_pre}>
Loading...
@@ -110,13 +110,19 @@ const code = async file => {
width: 100%;
font-size: 0.9em;
line-height: 1.5em;
padding: 5px 5px 5px 20px;
overflow-y: auto;
overflow-x: hidden;
}
.container > pre {
margin: 0;
padding: 10px;
white-space: pre-wrap;
overflow: hidden;
border: none;
}
.container > .md {
display: block;
padding: 10px;
margin: auto;
}
</style>

View File

@@ -45,12 +45,14 @@ onMount(() => {
Data transfer limit
</div>
<div class="feat_normal">
Rate limiting mode will be enabled when a file has 3
times more downloads than views
Up to 1000 files or 50 GB data transfer per day. Rate limiting mode
will be enabled if a file has 5 times more downloads than views, and
you will be asked to complete a CAPTCHA
</div>
<div class="feat_pro">
Transfer limit of <span class="text_highlight">1 terabyte</span>. If
the transfer limit is exceeded advertisements will be enabled again
Transfer limit of <span class="text_highlight">1 terabyte</span> per
month. If the transfer limit is exceeded the restrictions of the
free plan will apply
<br/>
<button class="round" on:click={direct_linking.toggle}>
<i class="icon">info</i>
@@ -58,6 +60,19 @@ onMount(() => {
</button>
</div>
</div>
<div>
<div class="feat_label">
Download speed
</div>
<div class="feat_normal">
Up to 2 MiB/s, may be slower during busy periods
</div>
<div class="feat_pro">
<span class="text_highlight">High priority</span>
bandwidth for files you download and files on your
account
</div>
</div>
<div>
<div class="feat_label">
Adver&shy;tise&shy;ments
@@ -94,19 +109,6 @@ onMount(() => {
<span class="text_highlight">1 terabyte</span>
</div>
</div>
<div>
<div class="feat_label">
Download speed
</div>
<div class="feat_normal">
Up to 4 MiB/s, may be slower during busy periods
</div>
<div class="feat_pro">
<span class="text_highlight">High priority</span>
bandwidth for files you download and files on your
account
</div>
</div>
<div>
<div class="feat_label">
Online file previews

View File

@@ -159,6 +159,7 @@ func New(
{GET, "brave" /* */, wc.serveMarkdown("brave.md", handlerOpts{})},
{GET, "acknowledgements" /**/, wc.serveMarkdown("acknowledgements.md", handlerOpts{})},
{GET, "business" /* */, wc.serveMarkdown("business.md", handlerOpts{})},
{GET, "limits" /* */, wc.serveMarkdown("limits.md", handlerOpts{})},
{GET, "apps" /* */, wc.serveTemplate("apps", handlerOpts{})},
{GET, "directory_upload" /**/, wc.serveTemplate("directory_upload", handlerOpts{})},