Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

redesign(git): add repository-connect hint banner

Juan Denis83cab5af2862
diff --git a/frontend/src/pages/Git.jsx b/frontend/src/pages/Git.jsx
index daf217bc..9b2dfe2a 100644
--- a/frontend/src/pages/Git.jsx
+++ b/frontend/src/pages/Git.jsx
@@ -7,7 +7,7 @@ import ConfirmDialog from '../components/ConfirmDialog';
import { DangerZone } from '../components/DangerZone';
import EmptyState from '../components/EmptyState';
import { Pill, MetricCard } from '../components/ds';
-import { AlertCircle, FolderGit2, Webhook, Rocket, Server, Globe, Terminal, Tag, X } from 'lucide-react';
+import { AlertCircle, FolderGit2, Webhook, Rocket, Server, Globe, Terminal, Tag, X, GitBranch } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Textarea } from '@/components/ui/textarea';
@@ -648,6 +648,17 @@ function Git({ basePath = '/git' }) {
</div>
) : (
<>
+ <div className="git-hint">
+ <div className="git-hint__icon"><GitBranch size={20} /></div>
+ <div className="git-hint__body">
+ <div className="git-hint__title">Connect any site or service to a repository</div>
+ <div className="git-hint__sub">
+ Host it on your built-in Gitea — private, self-hosted inside ServerKit —
+ or link an external provider. Push to deploy, automatically.
+ </div>
+ </div>
+ </div>
+
<div className="git-kpis" aria-label="Git server status">
<MetricCard
className="git-kpi-text"
diff --git a/frontend/src/styles/pages/_git.scss b/frontend/src/styles/pages/_git.scss
index 39694a85..32b5bb22 100644
--- a/frontend/src/styles/pages/_git.scss
+++ b/frontend/src/styles/pages/_git.scss
@@ -135,6 +135,46 @@
}
}
+ // ── intro banner (accent-gradient explainer above the KPIs) ──
+ .git-hint {
+ display: flex;
+ align-items: center;
+ gap: 13px;
+ padding: 15px 18px;
+ margin-bottom: $space-5;
+ border: 1px solid var(--border-soft);
+ border-radius: var(--radius);
+ background: linear-gradient(100deg, var(--accent-bg), transparent 80%);
+
+ &__icon {
+ width: 38px;
+ height: 38px;
+ border-radius: 10px;
+ display: grid;
+ place-items: center;
+ flex-shrink: 0;
+ background: var(--surface-2);
+ color: var(--accent-bright);
+ }
+
+ &__body {
+ flex: 1;
+ min-width: 0;
+ }
+
+ &__title {
+ font-weight: 550;
+ font-size: 13.5px;
+ color: var(--text);
+ }
+
+ &__sub {
+ margin-top: 2px;
+ font-size: 12.5px;
+ color: var(--text-faint);
+ }
+ }
+
// ── KPI strip (real `status` payload only) ──────────────
.git-kpis {
display: grid;