1
0

Amber templates.

This commit is contained in:
Alexander Andreev 2022-02-07 04:49:10 +04:00
parent 7fd1fe0c21
commit 473b23cbb0
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F
3 changed files with 58 additions and 0 deletions

25
web/templates/base.amber Normal file
View File

@ -0,0 +1,25 @@
!!! 5
html[lang="en"]
head
title Arav's dwelling / Upload
meta[charset="utf-8"]
meta[http-equiv="X-UA-Compatible"][content="IE=edge"]
meta[name="viewport"][content="width=device-width, initial-scale=1.0"]
meta[name="theme-color"][content="#cd2682"]
meta[name="description"][content="File upload service that keep files for 2 days."]
link[rel="icon"][href="/assets/img/favicon.svg"][sizes="any"][type="image/svg+xml"]
link[href="/assets/css/main.css"][rel="stylesheet"]
script[src="/assets/js/main.js"][defer]
body
header
svg#logo[viewBox="0 -25 216 40"]
text.logo Arav's dwelling
text.under[y="11"] Welcome to my sacred place, wanderer
nav
a[href=MainSite] Back to main website
h1 Upload
block body
footer
| 2017—2022 Arav <
a[href="mailto:me@arav.top"] me@arav.top
| >

27
web/templates/index.amber Normal file
View File

@ -0,0 +1,27 @@
extends base.amber
block body
section#rules
h2 Rules
ul
li Max. file size is #{FileMaxSz}.
li Anything you upload should comply with Russian Federation's law.
section#used-space
h2 Used space
div
| #{StorageUsedStr}
progress[value=StorageUsed][max=StorageCapacity]
| #{StorageCapStr}
div
| #{StorageAvailStr}
section#upload
h2 Upload
form[action="/"][method="POST"][enctype="multipart/form-data"]
input[type="file"][name="file"]
input[type="submit"][value="Upload"]
section
h2 Privacy statements
p Logs are held and include: access time, IP-address, name of a file it was uploaded with, a SHA-256 hash of the file, download name, size of the file in bytes.
p Each download also being logged and include: access time, IP-address, name of a file it was requested with, download name.
p Download name is a salted SHA-256 hash of the file encoded using base64 raw URL encoding.
p In case of request from law enforcements logs of upload and download actions for asked file will be given out. And if file is still persist, then the file itself.
p Sorry, but I don't want to deal with authorities, seizures, etc., what I want is to provide a service for you and myself.

View File

@ -0,0 +1,6 @@
extends base.amber
block body
section#file
h2 Your link
center #{DownloadURL}
center It will be available for next #{KeepForHours} hours.