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.

feat(14): Add GitHub link to sidebar

Juan Denis2d32aad91698
diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx
index 0d9fc91b..3d405393 100644
--- a/frontend/src/components/Sidebar.jsx
+++ b/frontend/src/components/Sidebar.jsx
@@ -1,6 +1,7 @@
import React from 'react';
import { NavLink } from 'react-router-dom';
import { useAuth } from '../contexts/AuthContext';
+import { Github } from 'lucide-react';
const Sidebar = () => {
const { user, logout } = useAuth();
@@ -154,6 +155,17 @@ const Sidebar = () => {
</nav>
</div>
+ <a
+ href="https://github.com/jhd3197/ServerKit"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="sidebar-github-link"
+ title="View on GitHub"
+ >
+ <Github size={16} />
+ <span>GitHub</span>
+ </a>
+
<div className="user-profile">
<div className="avatar">
{user?.username?.charAt(0).toUpperCase() || 'U'}
diff --git a/frontend/src/styles/layout/_sidebar.less b/frontend/src/styles/layout/_sidebar.less
index fb28756e..7157beeb 100644
--- a/frontend/src/styles/layout/_sidebar.less
+++ b/frontend/src/styles/layout/_sidebar.less
@@ -109,6 +109,30 @@
}
}
+// GitHub link
+.sidebar-github-link {
+ flex-shrink: 0;
+ display: flex;
+ align-items: center;
+ gap: @space-2;
+ padding: @space-3 @space-6;
+ margin: @space-2 @space-4;
+ color: @text-tertiary;
+ text-decoration: none;
+ font-size: @font-size-sm;
+ border-radius: @radius-md;
+ .transition();
+
+ svg {
+ flex-shrink: 0;
+ }
+
+ &:hover {
+ background-color: @bg-hover;
+ color: @text-primary;
+ }
+}
+
// User profile at bottom
.user-profile {
flex-shrink: 0;