diff --git a/README.md b/README.md
index 250a3e2..44571f3 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# Coulobre Panel
+
+
Coulobre Panel is an open-source web hosting control panel for hosting providers
and resellers. The project is in early development.
diff --git a/deploy/panel_installer/web.py b/deploy/panel_installer/web.py
index aef6f0b..01078a4 100644
--- a/deploy/panel_installer/web.py
+++ b/deploy/panel_installer/web.py
@@ -11,10 +11,11 @@ from urllib.parse import parse_qs
from .cli import comma_separated, number
from .config import REMOTE_MODES, InstallError, parse_plan, port
-from .engine import Installer
+from .engine import SOURCE, Installer
COOKIE = "coulobre_installer"
MAX_FORM = 16384
+BRAND_MARK = SOURCE / "src/coulobre/hosting/static/hosting/coulobre-mark.svg"
FORM = """
Use the installer address shown in the terminal.
", status=403, ) return + if self.path == "/favicon.svg": + svg = BRAND_MARK.read_bytes() + self.send_response(200) + self.send_header("Content-Type", "image/svg+xml") + self.send_header("Content-Length", str(len(svg))) + self.send_header("X-Content-Type-Options", "nosniff") + self.end_headers() + self.wfile.write(svg) + return state = self.server.wizard if not self.authorized(): self.page( diff --git a/pyproject.toml b/pyproject.toml index 97dacff..b2aa735 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ server = ["gunicorn>=27.0.1,<28"] "coulobre.hosting" = [ "static/hosting/*.js", "static/hosting/*.css", + "static/hosting/*.svg", "templates/*.html", "templates/hosting/*.conf", "templates/hosting/*.html", diff --git a/src/coulobre/hosting/static/hosting/coulobre-mark.svg b/src/coulobre/hosting/static/hosting/coulobre-mark.svg new file mode 100644 index 0000000..16ade11 --- /dev/null +++ b/src/coulobre/hosting/static/hosting/coulobre-mark.svg @@ -0,0 +1,16 @@ + diff --git a/src/coulobre/hosting/static/hosting/panel.css b/src/coulobre/hosting/static/hosting/panel.css index 8008682..d20974b 100644 --- a/src/coulobre/hosting/static/hosting/panel.css +++ b/src/coulobre/hosting/static/hosting/panel.css @@ -168,9 +168,21 @@ button, input, select, textarea { place-items: center; border-radius: 0.55rem; background: var(--brand-bg); - color: var(--brand-ink); - font-size: 1.12rem; - font-weight: 800; +} + +.brand-mark::before { + content: ""; + width: 66%; + height: 66%; + background: var(--brand-ink); + mask: url("coulobre-mark.svg") center / contain no-repeat; +} + +@media (forced-colors: active) { + .brand-mark::before { + forced-color-adjust: none; + background: CanvasText; + } } .brand-product { diff --git a/src/coulobre/hosting/templates/hosting/authentication.html b/src/coulobre/hosting/templates/hosting/authentication.html index 06c1ffc..95ea74f 100644 --- a/src/coulobre/hosting/templates/hosting/authentication.html +++ b/src/coulobre/hosting/templates/hosting/authentication.html @@ -4,8 +4,7 @@