diff --git a/res/template/file_viewer_svelte.html b/res/template/file_viewer_svelte.html
index 4b8fc65..bc1039f 100644
--- a/res/template/file_viewer_svelte.html
+++ b/res/template/file_viewer_svelte.html
@@ -25,6 +25,7 @@
diff --git a/res/template/home.html b/res/template/home.html
index 0175356..955430f 100644
--- a/res/template/home.html
+++ b/res/template/home.html
@@ -88,8 +88,8 @@
window.api_endpoint = '{{.APIEndpoint}}';
window.user = {{.User}};
-
-
+
+
{{template "page_top" .}}
diff --git a/svelte/src/file_viewer/AdLeaderboard.svelte b/svelte/src/file_viewer/AdLeaderboard.svelte
new file mode 100644
index 0000000..ab104d7
--- /dev/null
+++ b/svelte/src/file_viewer/AdLeaderboard.svelte
@@ -0,0 +1,150 @@
+
+
+
+
+
+ {#if ad_type === "ads.plus"}
+
+ {/if}
+
+
+
+ {#if ad_type === "publisherrest_1"}
+
+ {:else if ad_type === "publisherrest_2"}
+
+ {:else if ad_type === "publisherrest_3"}
+
+ {:else if ad_type === "brave"}
+
+
+
+ {:else if ad_type === "ads.plus"}
+
+
+
+
+ {:else if ad_type === "pixfuture"}
+
+
+
+
+ {/if}
+
+
+
diff --git a/svelte/src/file_viewer/AdSkyscraper.svelte b/svelte/src/file_viewer/AdSkyscraper.svelte
new file mode 100644
index 0000000..58bf262
--- /dev/null
+++ b/svelte/src/file_viewer/AdSkyscraper.svelte
@@ -0,0 +1,117 @@
+
+
+
+ {#if ad_type === "ads.plus"}
+
+ {/if}
+
+
+{#if visible}
+
+
+ close Close ad
+
+
+ {#if ad_type === "a-ads"}
+
+ {:else if ad_type === "ads.plus"}
+
+
+ {:else if ad_type === "pixfuture"}
+
+
+
+
+ {/if}
+
+
+{/if}
+
+
diff --git a/svelte/src/file_viewer/EditWindow.svelte b/svelte/src/file_viewer/EditWindow.svelte
new file mode 100644
index 0000000..9c2234f
--- /dev/null
+++ b/svelte/src/file_viewer/EditWindow.svelte
@@ -0,0 +1,89 @@
+
+
+
+ {#if result_text !== ""}
+
+ {result_text}
+
+ {/if}
+
+
Rename
+
+
Delete
+
+ When you delete a file it cannot be recovered.
+ Nobody will be able to download it and the link will
+ stop working. The file will also disappear from any
+ lists it's contained in.
+
+
+
+ delete Delete this file
+
+
+
+
+
diff --git a/svelte/src/file_viewer/EmbedWindow.svelte b/svelte/src/file_viewer/EmbedWindow.svelte
new file mode 100644
index 0000000..01c5fc3
--- /dev/null
+++ b/svelte/src/file_viewer/EmbedWindow.svelte
@@ -0,0 +1,75 @@
+
+
+
+
+ You can embed pixeldrain's file viewer in your own web pages. We
+ have created a special HTML code which renders a minimalistic
+ version of the file viewer where the title bar is a bit thinner and
+ the toolbar is collapsed by default.
+
+
+ Unless it was uploaded using a pixeldrain Pro account the embedded
+ file will also show advertisements.
+
+
Code
+
+
+
+ content_copy
+ {#if copy_status === "success"}
+ Copied!
+ {:else if copy_status === "error"}
+ Error!
+ {:else}
+ Copy HTML
+ {/if}
+
+
+ visibility Show example
+
+
Example
+
+
diff --git a/svelte/src/file_viewer/FileStats.svelte b/svelte/src/file_viewer/FileStats.svelte
new file mode 100644
index 0000000..9668b78
--- /dev/null
+++ b/svelte/src/file_viewer/FileStats.svelte
@@ -0,0 +1,99 @@
+
+
+
+ {#if error_msg !== ""}
+ {error_msg}
+ {:else}
+
Views
+
{formatThousands(views)}
+
Downloads
+
{formatThousands(downloads)}
+
Size
+
{formatDataVolume(size, 3)}
+ {/if}
+
+
+
diff --git a/svelte/src/file_viewer/FileViewer.svelte b/svelte/src/file_viewer/FileViewer.svelte
index 20be2cd..7cec361 100644
--- a/svelte/src/file_viewer/FileViewer.svelte
+++ b/svelte/src/file_viewer/FileViewer.svelte
@@ -1,12 +1,18 @@
+
+{#if visible}
+
+{/if}
+
+
diff --git a/svelte/src/file_viewer/ReportWindow.svelte b/svelte/src/file_viewer/ReportWindow.svelte
new file mode 100644
index 0000000..11c60b2
--- /dev/null
+++ b/svelte/src/file_viewer/ReportWindow.svelte
@@ -0,0 +1,163 @@
+
+
+
+
+ If you think this file violates pixeldrain's
+ content policy you can
+ report it for moderation with this form. You cannot report
+ copyright abuse with this form, send a formal DMCA notification
+ to the
+ abuse e-mail address
+ instead.
+
+
+
+
+
diff --git a/svelte/src/home_page/HomePage.svelte b/svelte/src/home_page/HomePage.svelte
index bd81eb2..ee0aee2 100644
--- a/svelte/src/home_page/HomePage.svelte
+++ b/svelte/src/home_page/HomePage.svelte
@@ -400,7 +400,8 @@ const keydown = (e) => {
on:beforeunload={leave_confirmation} />
- {#if window.user.username !== ""}
+
+ {#if window.user.username !== "" && window.user.storage_space_used/window.user.subscription.storage_space > 0.5}