More styling fixes, and fix the file not found page

This commit is contained in:
2019-07-28 22:34:15 +02:00
parent 2241421761
commit 5aaf121a17
10 changed files with 106 additions and 60 deletions

View File

@@ -6,18 +6,22 @@
</head>
<body>
<div id='body' class="body">
<div id="body" class="body">
{{template "menu" .}}
<br/>
<h1>This page does not exist!</h1>
If you came here by a link from this very same website you can tell
me about it on <a href="https://twitter.com/Fornax96">twitter</a>.
<br/><br/>
Either way, there's nothing to see here, so you'll have to
<a href='/'>head over to the home page</a>.
<br/>
<br/>
Bye!
<p>
If you came here by a link from this very same website you can
tell me about it on
<a href="https://twitter.com/Fornax96">twitter</a>.
</p>
<p>
Either way, there's nothing to see here, so you'll have to
<a href='/'>head over to the home page</a>.
</p>
<p>
Bye!
</p>
{{template "footer"}}
</div>
{{template "analytics"}}

View File

@@ -1,7 +1,7 @@
{{define "500"}}<!DOCTYPE html>
<html>
<head>
{{template "meta_tags" "Internal Server Error"}}
{{template "meta_tags" "500, Internal Server Error"}}
{{template "user_style" .}}
</head>
@@ -10,15 +10,15 @@
{{template "menu" .}}
<br/>
<h1>You broke pixeldrain</h1>
Great job.
<br/><br/>
But not to worry, the engineering team has been pulled out of bed to
have a look at the issue. You can try again in a few minutes (maybe
hours, who knows?), or go back to the <a href='/'>home page</a> and
start over.
<br/>
<br/>
Bye!
<p>
Great job.
</p>
<p>
Just kidding, something went wrong on the pixeldrain server and
it's my fault. I'll soon be notified of the problem and will
take a look at it. You can try again in a few minutes (or
hours), or go back to the <a href='/'>home page</a> and start over.
</p>
{{template "footer"}}
</div>
{{template "analytics"}}

View File

@@ -1,19 +1,61 @@
{{define "file_not_found"}}<!DOCTYPE html>
<html>
<head>
{{template "meta_tags" "File Not Found"}}
{{template "meta_tags" "404, File Not Found"}}
{{template "user_style" .}}
</head>
<body>
<div id="body">
{{template "menu"}}
<h1>File not Found</h1>
I'm sorry, but this file does not exist!<br/>
It may have expired, or taken down by the owner.<br/>
You can <a href='/'>Visit the homepage to upload your own files</a>.
<br/><br/>
It was fun having you, bye for now!
<div id="body" class="body">
{{template "menu" .}}
<br/>
<h1>404, File Not Found!</h1>
<p>
This file does not exist, or it has been removed. Possible
reasons for this are:
</p>
<ul>
<li>The file has not been viewed for 100 days and has expired</li>
<li>Something went wrong on the pixeldrain servers causing the file to be temporarily unavailable</li>
<li>The file voilated copyright laws and has received a takedown request</li>
<li>The content was deemed illegal in some country and censorship was requested by a government organisation</li>
</ul>
<p>
I'm sorry for the inconvenience.
</p>
{{template "footer"}}
</div>
{{template "analytics"}}
</body>
</html>
{{end}}
{{define "list_not_found"}}<!DOCTYPE html>
<html>
<head>
{{template "meta_tags" "404, List Not Found"}}
{{template "user_style" .}}
</head>
<body>
<div id="body" class="body">
{{template "menu" .}}
<br/>
<h1>404, List Not Found!</h1>
<p>
This list does not exist, or it has been removed. Possible
reasons for this are:
</p>
<ul>
<li>All files in this list have not been viewed for 100 days and have expired</li>
<li>Something went wrong on the pixeldrain servers causing the list to be temporarily unavailable</li>
<li>The files in the list voilated copyright laws and have received a takedown request</li>
<li>The files in the list were deemed illegal in some country and censorship was requested by a government organisation</li>
</ul>
<p>
I'm sorry for the inconvenience.
</p>
{{template "footer"}}
</div>
{{template "analytics"}}

View File

@@ -52,7 +52,7 @@
</button>
<button id="btnCopy" class="toolbar_button button_full_width" onClick="Toolbar.copyUrl();">
<img src="/res/img/clipboard_small.png" alt="Copy file URL to clipboard"/>
<span>Copy</span>
<span><u>C</u>opy Link</span>
</button>
<button id="btnShare" class="toolbar_button button_full_width" onClick="Sharebar.toggle();">
<img src="/res/img/share_small.png" alt="Share this file on social media"/>
@@ -60,7 +60,7 @@
</button>
<button id="btnDetails" class="toolbar_button button_full_width" onClick="DetailsWindow.toggle();">
<img src="/res/img/info_small.png" alt="Help"/>
<span>Details</span>
<span>Deta<u>i</u>ls</span>
</button>
{{template "advertisement" .}}

View File

@@ -92,6 +92,7 @@
your address bar. If you don't have Brave browser yet you
can download it here:
<a class="button button_highlight" href="https://brave.com/pix009" target="_blank">Install Brave</a>.
<button class="button_highlight">Install Brave</button>.
Installing and using Brave with this referral link also
counts as a 5$ donation.
</li>