From 435c32c50078916cd7fd6a34ec4bf27a279d9aa1 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 8 Feb 2022 04:22:41 +0400 Subject: [PATCH] Remove Amber templates. --- web/templates/404.amber | 19 ------------------- web/templates/base.amber | 26 -------------------------- web/templates/index.amber | 27 --------------------------- web/templates/uploaded.amber | 6 ------ 4 files changed, 78 deletions(-) delete mode 100644 web/templates/404.amber delete mode 100644 web/templates/base.amber delete mode 100644 web/templates/index.amber delete mode 100644 web/templates/uploaded.amber diff --git a/web/templates/404.amber b/web/templates/404.amber deleted file mode 100644 index 4a93fd3..0000000 --- a/web/templates/404.amber +++ /dev/null @@ -1,19 +0,0 @@ -extends base.amber - -block head - style[type="text/css"] - #error { - font-size: 3.5rem; - line-height: 5rem; - text-align: center; - margin: 6rem 0; } - - #error h1 { font-size: 8rem; } - -block header - h1 xDDDD - -block body - section#error - h1 404 - | Nod Found xD \ No newline at end of file diff --git a/web/templates/base.amber b/web/templates/base.amber deleted file mode 100644 index 803d601..0000000 --- a/web/templates/base.amber +++ /dev/null @@ -1,26 +0,0 @@ -!!! 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"] - block head - 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 - block header - 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 deleted file mode 100644 index 1f2a8ca..0000000 --- a/web/templates/index.amber +++ /dev/null @@ -1,27 +0,0 @@ -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 deleted file mode 100644 index ca844a5..0000000 --- a/web/templates/uploaded.amber +++ /dev/null @@ -1,6 +0,0 @@ -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