From 15913db41a5c8668b99ba4e0350cf295d4fdb567 Mon Sep 17 00:00:00 2001 From: q Date: Wed, 21 May 2025 00:39:26 -0400 Subject: [PATCH] initial commit --- .gitignore | 1 + docker-compose.yml | 16 +++++ tshweb/404.html | 14 ++++ tshweb/download.audio.html | 31 +++++++++ tshweb/download.html | 27 ++++++++ tshweb/download.image.html | 27 ++++++++ tshweb/download.markdown.html | 28 ++++++++ tshweb/download.video.html | 31 +++++++++ tshweb/favicon.ico | Bin 0 -> 3218 bytes tshweb/includes/download-bottom.html | 4 ++ tshweb/includes/download-top.html | 4 ++ tshweb/index.html | 37 ++++++++++ tshweb/scripts/info.html | 16 +++++ tshweb/styles/main.css | 99 +++++++++++++++++++++++++++ 14 files changed, 335 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100644 tshweb/404.html create mode 100644 tshweb/download.audio.html create mode 100644 tshweb/download.html create mode 100644 tshweb/download.image.html create mode 100644 tshweb/download.markdown.html create mode 100644 tshweb/download.video.html create mode 100644 tshweb/favicon.ico create mode 100644 tshweb/includes/download-bottom.html create mode 100644 tshweb/includes/download-top.html create mode 100644 tshweb/index.html create mode 100644 tshweb/scripts/info.html create mode 100644 tshweb/styles/main.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81bbbae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +keys/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..485025d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +services: + transfer: + image: dutchcoders/transfer.sh:latest + container_name: transfer + ports: + - "3880:8080" + - "3881:8081" + command: ["--provider", "local", "--basedir", "/uploads/", "--web-path", "/web/", "--max-upload-size", "10485760", "--tls-listener", ":8081", "--tls-cert-file", "/fullchain.pem", "--tls-private-key", "/privkey.pem", "--tls-listener-only"] + environment: + - MAX_UPLOAD_SIZE=10485760 + volumes: + - ./uploads:/uploads + - ./tshweb:/web + - ./keys/fullchain.pem:/fullchain.pem + - ./keys/privkey.pem:/privkey.pem + restart: always \ No newline at end of file diff --git a/tshweb/404.html b/tshweb/404.html new file mode 100644 index 0000000..c073c41 --- /dev/null +++ b/tshweb/404.html @@ -0,0 +1,14 @@ + + + + + + Third Culture Upload + + + +
+

Content not found!

+

404

+ + diff --git a/tshweb/download.audio.html b/tshweb/download.audio.html new file mode 100644 index 0000000..89d4b3d --- /dev/null +++ b/tshweb/download.audio.html @@ -0,0 +1,31 @@ + + + + + + + Third Culture Upload + + + + +
+
+

{{.Filename}}

+ + type: {{.ContentType}} + size: {{.ContentLength | format "#,###."}} bytes + +
+ +

download

+
+ +
+
+ + + \ No newline at end of file diff --git a/tshweb/download.html b/tshweb/download.html new file mode 100644 index 0000000..f5bb4ff --- /dev/null +++ b/tshweb/download.html @@ -0,0 +1,27 @@ + + + + + + + Third Culture Upload + + + + +
+
+

{{.Filename}}

+ + type: {{.ContentType}} + size: {{.ContentLength | format "#,###."}} bytes + +
+

download

+
+ +
+
+ + + \ No newline at end of file diff --git a/tshweb/download.image.html b/tshweb/download.image.html new file mode 100644 index 0000000..7d71385 --- /dev/null +++ b/tshweb/download.image.html @@ -0,0 +1,27 @@ + + + + + + + Third Culture Upload + + + + +
+
+

{{.Filename}}

+ + type: {{.ContentType}} + size: {{.ContentLength | format "#,###."}} bytes + +
+
+

download

+
+ +
+ + + \ No newline at end of file diff --git a/tshweb/download.markdown.html b/tshweb/download.markdown.html new file mode 100644 index 0000000..a43e38c --- /dev/null +++ b/tshweb/download.markdown.html @@ -0,0 +1,28 @@ + + + + + + + Third Culture Upload + + + + +
+
+

{{.Filename}}

+ + type: {{.ContentType}} + size: {{.ContentLength | format "#,###."}} bytes + +
+
{{.Content}}
+

download

+
+ +
+
+ + + \ No newline at end of file diff --git a/tshweb/download.video.html b/tshweb/download.video.html new file mode 100644 index 0000000..4a11e8e --- /dev/null +++ b/tshweb/download.video.html @@ -0,0 +1,31 @@ + + + + + + + Third Culture Upload + + + + +
+
+

{{.Filename}}

+ + type: {{.ContentType}} + size: {{.ContentLength | format "#,###."}} bytes + +
+ +

download

+
+ +
+
+ + + \ No newline at end of file diff --git a/tshweb/favicon.ico b/tshweb/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..cb6f25776cee3bdb875ae97892077987b5a59bfd GIT binary patch literal 3218 zcmeH|KWHOI7{y<}g$oxh&dDLRP~k!ch7&=B3N--PJl5sqCI0OC zJD>zApbpyL7>vLU}wORg{&}>GMngg=y%cA(0`7;hyKLsH&s@en~+zF(Gh1kWaganjP5LV&uPkJ4rN^K zp!Zy+9>{d?ADp7t)<=4xPgK=s`cz-)3w@)n^-|wbzB9dk?>qhQ_ZqWv!KKdf+wX)H+HX94qUy$L5Ll4o9kXPt`m+Q+IHo!HcU< zZ|~+Z?C(FDi(!^K?1kTheZPO-mPjP-OZ^KxKHa<8B5&}OSv2Ajkj_q8A!G&dV4fS_o@L)USiqf%P7h{1OlP`_8;{2wEb download

+
+ +
\ No newline at end of file diff --git a/tshweb/includes/download-top.html b/tshweb/includes/download-top.html new file mode 100644 index 0000000..82c39d5 --- /dev/null +++ b/tshweb/includes/download-top.html @@ -0,0 +1,4 @@ +
+

{{.Filename}}

+

type: {{.ContentType}}

+

size: {{.ContentLength | format "#,###."}} bytes

diff --git a/tshweb/index.html b/tshweb/index.html new file mode 100644 index 0000000..4a882a2 --- /dev/null +++ b/tshweb/index.html @@ -0,0 +1,37 @@ + + + + + + + Third Culture Upload + + + + +

Third Culture Upload

+
+ + +

+ +
+


+

Make sure to copy the link in the next page!

+

More info on third culture upload here.

+


+ + + + + + + + + \ No newline at end of file diff --git a/tshweb/scripts/info.html b/tshweb/scripts/info.html new file mode 100644 index 0000000..23553ed --- /dev/null +++ b/tshweb/scripts/info.html @@ -0,0 +1,16 @@ + + + + + + + Third Culture Upload + + + + +

up.thirdculture.top info

+

Third culture upload supports uploading through the browser but also using the terminal as well you can find more details on the transfer.sh github. I will include some simple examples here for quick reference.

+ + + \ No newline at end of file diff --git a/tshweb/styles/main.css b/tshweb/styles/main.css new file mode 100644 index 0000000..036e249 --- /dev/null +++ b/tshweb/styles/main.css @@ -0,0 +1,99 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: Arial, sans-serif; + background-color: #121212; + color: #e0e0e0; + padding: 20px; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} + +h1 { + color: #9b4d96; + margin-bottom: 20px; +} + +.preview-image { + text-align: center; +} + +.preview-image img { + max-width: 600px; + margin-left: auto; + margin-right: auto; +} + +.page-title { + text-align: center; + color: #9b4d96; +} + +.accent { + color: #7bbc7f; +} + +form { + background-color: #1e1e1e; + padding: 20px; + border-radius: 8px; + width: 300px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); +} + +label { + font-size: 16px; + color: #ddd; + margin-bottom: 10px; + display: block; +} + +input[type="file"] { + width: 100%; + padding: 10px; + margin: 10px 0; + border: 2px solid #9b4d96; + background-color: #333; + color: #fff; + border-radius: 4px; +} + +input[type="file"]:hover { + border-color: #be2b90; +} + +button { + background-color: #9b4d96; + color: #fff; + padding: 12px; + border: none; + border-radius: 4px; + width: 100%; + font-size: 16px; + cursor: pointer; + transition: background-color 0.3s ease; +} + +.dwn { + text-align: center; + margin-top: 5px; + margin-bottom: 15px; +} + +button:hover { + background-color: #be2b90; +} + +button:active { + background-color: #9b4d96; +} + +.qrcode { + text-align: center; +}