commit b04f473a622c92285b5dc4b7c85e077b0b504eac Author: KenwoodFox Date: Thu Jun 26 02:28:15 2025 -0400 All diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..1174421 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,41 @@ +worker_processes auto; + +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + sendfile on; + + server { + listen 80; + server_name cumtanks.snowsune.net; + + # Docker container path + root /usr/share/nginx/html; + index index.html; + + # Low TTL for data.json + location /data.json { + add_header Cache-Control "max-age=5, must-revalidate"; + try_files $uri =404; + } + + # Normal caching for other static files + location / { + expires 1h; + add_header Cache-Control "public, no-transform"; + try_files $uri $uri/ =404; + } + + # Ignore favicon requests + location /favicon.ico { + log_not_found off; + access_log off; + } + + # Optional: Serve index on 404 + error_page 404 /index.html; + } +} \ No newline at end of file diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..4ff7222 --- /dev/null +++ b/update.sh @@ -0,0 +1,2 @@ +#!/bin/bash +rsync -avz --delete www/* joe@snowsunehost:/opt/cumtanks.snowsune.net/www --progress diff --git a/www/Alice_close_up_sheath_background.png b/www/Alice_close_up_sheath_background.png new file mode 100644 index 0000000..f999585 Binary files /dev/null and b/www/Alice_close_up_sheath_background.png differ diff --git a/www/Alice_close_up_sheath_shot.png b/www/Alice_close_up_sheath_shot.png new file mode 100644 index 0000000..921f409 Binary files /dev/null and b/www/Alice_close_up_sheath_shot.png differ diff --git a/www/Alice_close_up_sheath_shot.png-autosave.kra b/www/Alice_close_up_sheath_shot.png-autosave.kra new file mode 100644 index 0000000..ffdcf24 Binary files /dev/null and b/www/Alice_close_up_sheath_shot.png-autosave.kra differ diff --git a/www/bkground.png b/www/bkground.png new file mode 100644 index 0000000..7800fbb Binary files /dev/null and b/www/bkground.png differ diff --git a/www/data.json b/www/data.json new file mode 100644 index 0000000..28a4036 --- /dev/null +++ b/www/data.json @@ -0,0 +1,20 @@ +{ + "liquids": [ + { + "name": "Coyote Cum", + "volume": 12, + "color": "#f1f2f2", + "url": "https://www.f-list.net/c/alice%20prairie" + }, + { + "name": "Bear Cum", + "volume": 9, + "color": "#523a33", + "url": "https://www.f-list.net/c/Glyren" + } + ], + "settings": { + "tankTopOffset": 265, + "tankBottomOffset": 100 + } +} diff --git a/www/index.html b/www/index.html new file mode 100644 index 0000000..f333f29 --- /dev/null +++ b/www/index.html @@ -0,0 +1,142 @@ + + + + + + + Cumtanks.snowusne.net + + + + + + + + + + + + + + + +
+
+ Tank Background Back + Tank Background Foreground + + +
+
+

Settings

+ + +
+
+ + + + + \ No newline at end of file diff --git a/www/preview.kra b/www/preview.kra new file mode 100644 index 0000000..daced12 Binary files /dev/null and b/www/preview.kra differ diff --git a/www/preview.png b/www/preview.png new file mode 100644 index 0000000..893b041 Binary files /dev/null and b/www/preview.png differ diff --git a/www/preview.png~ b/www/preview.png~ new file mode 100644 index 0000000..386f86c Binary files /dev/null and b/www/preview.png~ differ diff --git a/www/styles.css b/www/styles.css new file mode 100644 index 0000000..4bb2111 --- /dev/null +++ b/www/styles.css @@ -0,0 +1,157 @@ +body { + margin: 0; + padding: 0; + background: #23232b; + font-family: Arial, sans-serif; + min-height: 100vh; + display: flex; + flex-direction: column; + align-items: center; +} + +.container { + width: 100%; + max-width: 1200px; + padding: 20px; +} + +h1 { + color: white; + text-align: center; + margin: 20px 0; +} + +.tank-container { + position: relative; + width: 100%; + height: 850px; + background: #23232b; + overflow: hidden; + border-radius: 0; + margin: 0 auto; + left: 0; + top: 0; + padding: 0; + box-sizing: border-box; + display: flex; + justify-content: center; + align-items: center; +} + +.background-image { + position: absolute; + width: auto; + height: 100%; + max-width: 110%; + max-height: 110%; + object-fit: contain; + border: 4px solid #000; + box-sizing: border-box; + pointer-events: none; + left: 50%; + top: 0; + transform: translateX(-50%); + margin: 0; + padding: 0; +} + +.background-image-back { + z-index: 1; +} + +.background-image-fore { + z-index: 3; +} + +.liquid-layer { + position: absolute; + width: 80%; + left: 50%; + transform: translateX(-50%); + transition: all 0.3s ease; + z-index: 2; + overflow: hidden; +} + +.liquid-layer > div { + width: 100%; + height: 100%; + position: relative; +} + +.liquid-label { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + color: white; + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); + font-weight: bold; + z-index: 2; + padding: 5px 10px; + background: rgba(0, 0, 0, 0.3); + border-radius: 4px; + text-align: center; + white-space: nowrap; + font-size: 1.2em; +} + +.liquid-link { + color: white; + text-decoration: none; + cursor: pointer; + transition: opacity 0.2s ease; +} + +.liquid-link:hover { + opacity: 0.8; + text-decoration: underline; +} + +/* Settings are hidden but still in the DOM for development */ +.settings { + display: none; +} + +.artist-credit { + text-align: center; + padding: 1rem; + color: #666; + font-size: 0.9rem; + font-style: italic; + margin-top: 2rem; +} + +.artist-link { + position: absolute; + top: 80px; + right: 100px; + transform: rotate(51deg); + z-index: 100; + width: 150px; + height: 100px; + pointer-events: auto; + /* DEBUG: Temporary visible area for clickable link */ + /* outline: 2px dashed #ff0; + background: rgba(255, 255, 0, 0.2); */ +} + +.artist-link a { + display: block; + width: 100%; + height: 100%; + text-indent: -9999px; + background: transparent; + border: none; + outline: none; + cursor: pointer; + position: absolute; + top: 0; + left: 0; + opacity: 0; +} + +.artist-link a:hover { + background: #fff; + color: #23232b; +}