diff --git a/web/templates/base.amber b/web/templates/base.amber new file mode 100644 index 0000000..13f7d09 --- /dev/null +++ b/web/templates/base.amber @@ -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 + | > \ No newline at end of file diff --git a/web/templates/index.amber b/web/templates/index.amber new file mode 100644 index 0000000..1f2a8ca --- /dev/null +++ b/web/templates/index.amber @@ -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. \ No newline at end of file diff --git a/web/templates/uploaded.amber b/web/templates/uploaded.amber new file mode 100644 index 0000000..ca844a5 --- /dev/null +++ b/web/templates/uploaded.amber @@ -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. \ No newline at end of file