diff --git a/README.md b/README.md new file mode 100644 index 0000000..c567cc7 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Erugo Views & Design + +Frontend Blade Templates und Layouts für den Erugo Upload-Dienst ([upload.free-warez.win](https://upload.free-warez.win)). + +--- + +## 📁 Struktur +- `views/app.blade.php`: Hauptlayout mit Farbschemata, CSS-Variablen und UI-Komponenten. +- `views/shares/`: Templates für Share-Status (`pending.blade.php`, `failed.blade.php`). +- `views/emails/`: HTML-Mail-Templates (Twig). +- `deploy.sh`: Synchronisiert die Views zum VPS und startet den Container neu. + +## 🚀 Deployment +```bash +./deploy.sh +``` diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..9ff0e6d --- /dev/null +++ b/deploy.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +# deploy.sh - Deploy Erugo Views & Themes +# Domain: upload.free-warez.win +# Target Host: free-warez.win -> /opt/containers/erugo/views + +set -euo pipefail + +TARGET_HOST="free-warez.win" +TARGET_DIR="/opt/containers/erugo/views" +LOCAL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +echo "🚀 Deploying Erugo Views" +echo " Target: $TARGET_HOST:$TARGET_DIR" +echo "===============================================" + +# 1. Check SSH connection +echo "📡 Checking SSH connection to $TARGET_HOST..." +if ! ssh -q -o BatchMode=yes -o ConnectTimeout=5 "$TARGET_HOST" exit; then + echo "❌ Cannot connect to $TARGET_HOST via SSH." + exit 1 +fi + +# 2. Sync Views +echo "🔄 Syncing blade templates & views..." +rsync -avz --delete "$LOCAL_DIR/views/" "$TARGET_HOST:$TARGET_DIR/" + +# 3. Restart container to flush template caches +echo "🔄 Restarting Erugo container..." +ssh "$TARGET_HOST" "docker restart erugo" + +echo "✅ Erugo updated!" +echo "✨ Deployment complete!" diff --git a/views/app.blade.php b/views/app.blade.php index e9b5f06..02e8598 100644 --- a/views/app.blade.php +++ b/views/app.blade.php @@ -1,188 +1,656 @@ - +
+ + +