Merge branch 'master' of fornaxian.com:Pixeldrain/pixeldrain-web

This commit is contained in:
2019-11-21 20:25:19 +01:00
5 changed files with 60 additions and 58 deletions

View File

@@ -52,7 +52,7 @@
/* Page rendering configuration */
html, body {
overflow: hidden;
overflow-x: hidden;
}
body{
background-color: #0d0d0d; /* Fallback */
@@ -76,7 +76,8 @@ body{
}
.button_toggle_navigation {
position: absolute;
position: fixed;
backface-visibility: hidden;
z-index: 300;
top: 0;
left: 0;
@@ -89,7 +90,8 @@ body{
box-shadow: 2px 2px 8px -3px var(--shadow_color);
}
.page_navigation {
position: absolute;
position: fixed;
backface-visibility: hidden;
z-index: 100;
width: 250px;
height: 100%;
@@ -107,9 +109,8 @@ body{
.page_body {
position: absolute;
z-index: 200;
top: 0;
right: 0;
bottom: 0;
height: auto;
left: 250px;
min-width: 300px;
display: inline-block;
@@ -126,6 +127,7 @@ body{
}
.page_body {
left: 0;
width: 100%;
}
}

View File

@@ -13,14 +13,14 @@
<h3>For how long will my files be stored?</h3>
<p>
Files will be removed if they have not been viewed for 60 days.
Files will be removed if they have not been viewed for 30 days.
A view is counted when someone visits the file's download page
(pixeldrain.com/u/somefile) or views the file through a list the
file is included in (pixeldrain.com/l/somelist).
</p>
<p>
You cannot delete files yourself. Once a file has been uploaded
to pixeldrain it will stay there for at least 60 days. If you
to pixeldrain it will stay there for at least 30 days. If you
accidentally upload something you shouldn't have, just don't
share the link. The file will expire eventually. File links are
not indexed or published anywhere. As long as you don't share it

View File

@@ -14,7 +14,7 @@
reasons for this are:
</p>
<ul>
<li>The file has not been viewed for 60 days and has expired</li>
<li>The file has not been viewed for 30 days and has expired</li>
<li>Something went wrong on the pixeldrain servers causing the file to be temporarily unavailable</li>
<li>The file violated 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>
@@ -45,7 +45,7 @@
reasons for this are:
</p>
<ul>
<li>All files in this list have not been viewed for 60 days and have expired</li>
<li>All files in this list have not been viewed for 30 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 violated 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>

View File

@@ -1,16 +1,16 @@
{{define "meta_tags"}}
<title>{{.}} ~ PixelDrain</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"/>
<link rel="stylesheet" href="/res/style/layout.css?v2"/>
<link rel="shortcut icon" href="/res/img/tray32.png"/>
<meta name="theme-color" content="#75AD38"/>
<link rel="icon" sizes="180x180" href="/res/img/pixeldrain.png"/>
<link rel="icon" sizes="256x256" href="/res/img/pixeldrain_big.png"/>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<link rel="stylesheet" href="/res/style/layout.css?v4" />
<link rel="shortcut icon" href="/res/img/tray32.png" />
<meta name="theme-color" content="#75AD38" />
<link rel="icon" sizes="180x180" href="/res/img/pixeldrain.png" />
<link rel="icon" sizes="256x256" href="/res/img/pixeldrain_big.png" />
<meta name="description" content="Pixeldrain is a free file sharing service, you
can upload any file and you will be given a shareable link right away.
pixeldrain also supports previews for images, videos, audio, PDFs and much more."/>
pixeldrain also supports previews for images, videos, audio, PDFs and much more." />
<meta property="og:type" content="website" />
<meta property="og:title" content="{{.}} ~ pixeldrain" />
<meta property="og:site_name" content="pixeldrain" />

View File

@@ -1,52 +1,52 @@
{{define "page_top"}}
<div id="page_wrapper">
<button id="button_toggle_navigation" class="button_toggle_navigation" onclick="toggleMenu();"></button>
<div id="page_navigation" class="page_navigation">
<a href="/">Home</a>
<hr/>
{{if .Authenticated}}<a href="/user">{{.Username}}</a>
<a href="/user/files">My Files</a>
<a href="/user/lists">My Lists</a>
<a href="/logout">Log out</a>
{{else}}
<a href="/login">Login</a>
<a href="/register">Register</a>
<a href="/history">Upload History</a>
{{end}}
<hr/>
<a href="/about">About</a>
<!--<a href="/technology">Technology</a>-->
<a href="/api">API</a>
<a href="/appearance">Appearance</a>
</div>
<div id="page_body" class="page_body">
<!-- <div id="page_wrapper"> -->
<button id="button_toggle_navigation" class="button_toggle_navigation" onclick="toggleMenu();"></button>
<div id="page_navigation" class="page_navigation">
<a href="/">Home</a>
<hr />
{{if .Authenticated}}<a href="/user">{{.Username}}</a>
<a href="/user/files">My Files</a>
<a href="/user/lists">My Lists</a>
<a href="/logout">Log out</a>
{{else}}
<a href="/login">Login</a>
<a href="/register">Register</a>
<a href="/history">Upload History</a>
{{end}}
<hr />
<a href="/about">About</a>
<!--<a href="/technology">Technology</a>-->
<a href="/api">API</a>
<a href="/appearance">Appearance</a>
</div>
<div id="page_body" class="page_body">
{{end}}
{{define "page_bottom"}}
<div class="highlight_dark">
Pixeldrain is a product by <a href="//fornaxian.com" target="_blank">Fornaxian Technologies</a> |
Twitter:&nbsp;<a href="https://twitter.com/Fornax96" target="_blank">@Fornax96</a>
Reddit:&nbsp;<a href="https://reddit.com/r/pixeldrain" target="_blank">/r/pixeldrain</a>
Medium:&nbsp;<a href="https://medium.com/pixeldrain" target="_blank">Pixeldrain</a>
</div>
</div><!-- end page_body -->
</div><!-- end page_wrapper -->
<div class="highlight_dark">
Pixeldrain is a product by <a href="//fornaxian.com" target="_blank">Fornaxian Technologies</a> |
Twitter:&nbsp;<a href="https://twitter.com/Fornax96" target="_blank">@Fornax96</a>
Reddit:&nbsp;<a href="https://reddit.com/r/pixeldrain" target="_blank">/r/pixeldrain</a>
Medium:&nbsp;<a href="https://medium.com/pixeldrain" target="_blank">Pixeldrain</a>
</div>
</div><!-- end page_body -->
<!-- </div>end page_wrapper -->
<script>
var nav = document.getElementById("page_navigation");
var body = document.getElementById("page_body");
var nav = document.getElementById("page_navigation");
var body = document.getElementById("page_body");
function toggleMenu() {
if (nav.offsetLeft === 0) {
// Menu is visible
function toggleMenu() {
if (nav.offsetLeft === 0) {
// Menu is visible
nav.style.left = -nav.offsetWidth + "px";
body.style.left = "0";
} else {
// Menu is hidden
nav.style.left = -nav.offsetWidth + "px";
body.style.left = "0";
} else {
// Menu is hidden
nav.style.left = "0";
body.style.left = nav.offsetWidth + "px";
nav.style.left = "0";
body.style.left = nav.offsetWidth + "px";
}
}
}
</script>
{{end}}