From d3f3f981adffbc9887f80697f4da8c5c0f0e42d1 Mon Sep 17 00:00:00 2001 From: eldov Date: Sun, 30 Aug 2026 18:46:52 +0200 Subject: [PATCH] feat: initial element-web-theme repository with W-MAKE Cyber Noir theme --- README.md | 20 +++++++++ config.json | 88 ++++++++++++++++++++++++++++++++++++++++ deploy.sh | 32 +++++++++++++++ themes/w-make-cyber.json | 36 ++++++++++++++++ 4 files changed, 176 insertions(+) create mode 100644 README.md create mode 100644 config.json create mode 100755 deploy.sh create mode 100644 themes/w-make-cyber.json diff --git a/README.md b/README.md new file mode 100644 index 0000000..0762235 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Matrix Element Web Theme & Customization + +Custom Cyberpunk Theme fรผr den Matrix Element Web Client ([chat.free-warez.top](https://chat.free-warez.top) / `chat.element.free-warez.top`). + +--- + +## ๐Ÿ“ Struktur + +- `config.json`: Zentrale Client-Konfiguration fรผr Element Web. +- `themes/`: + - `w-make-cyber.json`: **W-MAKE Cyber Noir** Theme-Definition (Cyan Akzente `#00f2fe`, Deep Obsidian Background `#050812`, Glassmorphism-kompatible Menรผs & Bubbles). +- `deploy.sh`: Synchronisiert die Konfiguration nach `/matrix/client-element/config.json` auf `free-warez.top` und startet den Web-Client-Container neu. + +--- + +## ๐Ÿš€ Deployment + +```bash +./deploy.sh +``` diff --git a/config.json b/config.json new file mode 100644 index 0000000..18a019d --- /dev/null +++ b/config.json @@ -0,0 +1,88 @@ +{ + "brand": "Element", + "branding": { + "auth_footer_links": null, + "auth_header_logo_url": "themes/element/img/logos/element-logo.svg", + "welcome_background_url": "themes/element/img/backgrounds/lake.jpg" + }, + "bug_report_endpoint_url": "https://element.io/bugreports/submit", + "default_country_code": "GB", + "default_server_config": { + "m.homeserver": { + "base_url": "https://matrix.free-warez.top", + "server_name": "free-warez.top" + } + }, + "default_theme": "W-MAKE Cyber Noir", + "disable_custom_urls": true, + "disable_guests": true, + "element_call": { + "brand": "Element Call", + "participant_limit": 8, + "url": "https://call.element.free-warez.top", + "use_exclusively": true + }, + "embedded_pages": { + "homeUrl": "" + }, + "features": { + "feature_element_call_video_rooms": true, + "feature_group_calls": true, + "feature_video_rooms": true + }, + "integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html", + "integrations_rest_url": "https://scalar.vector.im/api", + "integrations_ui_url": "https://scalar.vector.im/", + "integrations_widgets_urls": [ + "https://scalar.vector.im/api" + ], + "logout_redirect_url": "", + "mobile_guide_app_variant": "element", + "permalink_prefix": "https://matrix.to", + "room_directory": { + "servers": [ + "matrix.org" + ] + }, + "setting_defaults": { + "custom_themes": [ + { + "name": "W-MAKE Cyber Noir", + "is_dark": true, + "colors": { + "accent": "#00f2fe", + "primary_content": "#f8fafc", + "secondary_content": "#94a3b8", + "tertiary_content": "#64748b", + "bg_color": "#050812", + "status_tag_bg": "#0d1528", + "timeline_background": "#070c18", + "timeline_text_color": "#f8fafc", + "timeline_text_secondary_color": "#94a3b8", + "roomlist_background": "#050812", + "roomlist_text_color": "#f8fafc", + "roomlist_text_secondary_color": "#94a3b8", + "roomlist_highlights_color": "#0e1830", + "roomlist_separator_color": "rgba(0, 242, 254, 0.15)", + "roomsublist_background": "#050812", + "panel_divider_color": "rgba(0, 242, 254, 0.18)", + "panel_border_color": "rgba(0, 242, 254, 0.22)", + "sidebar_color": "#03060c", + "header_panel_bg_color": "#070a14", + "menu_border_color": "rgba(0, 242, 254, 0.25)", + "menu_bg_color": "#0b1222", + "dialog_background": "#0b1222", + "dialog_backdrop_color": "rgba(0, 0, 0, 0.8)", + "dialog_shadow_color": "rgba(0, 242, 254, 0.25)", + "input_placeholder": "#64748b", + "input_background": "#0d162a", + "input_border_color": "rgba(0, 242, 254, 0.25)", + "reaction_row_button_selected_bg": "rgba(0, 242, 254, 0.2)", + "button_primary_bg": "#00f2fe", + "button_primary_fg": "#03060c" + } + } + ] + }, + "show_labs_settings": true +} \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..25a2d00 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash +# deploy.sh - Deploy Matrix Element Web Theme & Config +# Domain: chat.free-warez.top / element.free-warez.top +# Target Host: free-warez.top -> /matrix/client-element/config.json + +set -euo pipefail + +TARGET_HOST="free-warez.top" +LOCAL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +CONFIG_FILE="$LOCAL_DIR/config.json" + +echo "๐Ÿš€ Deploying Matrix Element Web Theme & Config" +echo " Target Host: $TARGET_HOST:/matrix/client-element/config.json" +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. Transfer config +echo "๐Ÿ”„ Transferring config.json to $TARGET_HOST..." +scp "$CONFIG_FILE" "$TARGET_HOST:/matrix/client-element/config.json" + +# 3. Reload Element Web container +echo "๐Ÿ”„ Reloading Element Web container..." +ssh "$TARGET_HOST" "docker restart matrix-client-element" + +echo "โœ… Element Web theme deployed successfully!" +echo "โœจ Deployment complete!" diff --git a/themes/w-make-cyber.json b/themes/w-make-cyber.json new file mode 100644 index 0000000..8b01ff8 --- /dev/null +++ b/themes/w-make-cyber.json @@ -0,0 +1,36 @@ +{ + "name": "W-MAKE Cyber Noir", + "is_dark": true, + "colors": { + "accent": "#00f2fe", + "primary_content": "#f8fafc", + "secondary_content": "#94a3b8", + "tertiary_content": "#64748b", + "bg_color": "#050812", + "status_tag_bg": "#0d1528", + "timeline_background": "#070c18", + "timeline_text_color": "#f8fafc", + "timeline_text_secondary_color": "#94a3b8", + "roomlist_background": "#050812", + "roomlist_text_color": "#f8fafc", + "roomlist_text_secondary_color": "#94a3b8", + "roomlist_highlights_color": "#0e1830", + "roomlist_separator_color": "rgba(0, 242, 254, 0.15)", + "roomsublist_background": "#050812", + "panel_divider_color": "rgba(0, 242, 254, 0.18)", + "panel_border_color": "rgba(0, 242, 254, 0.22)", + "sidebar_color": "#03060c", + "header_panel_bg_color": "#070a14", + "menu_border_color": "rgba(0, 242, 254, 0.25)", + "menu_bg_color": "#0b1222", + "dialog_background": "#0b1222", + "dialog_backdrop_color": "rgba(0, 0, 0, 0.8)", + "dialog_shadow_color": "rgba(0, 242, 254, 0.25)", + "input_placeholder": "#64748b", + "input_background": "#0d162a", + "input_border_color": "rgba(0, 242, 254, 0.25)", + "reaction_row_button_selected_bg": "rgba(0, 242, 254, 0.2)", + "button_primary_bg": "#00f2fe", + "button_primary_fg": "#03060c" + } +}