refactor: restore original logo image and update color scheme with cyan-violet gradient palette
Replace inline SVG brand glyph with NexaVPN_Logo.png image in sidebar. Simplify brand-block to sidebar-brand with logo image styling. Update CSS color variables from green accent (#74e0b8) to cyan (#44e6e7) with violet (#8d5bff) and blue (#4a8cff) accents. Adjust background gradients to use new cyan-violet-blue palette with updated opacity values. Update nav-link hover and active states with cyan-blue gradient background. Modify sidebar background
This commit is contained in:
@@ -21,28 +21,12 @@ type LayoutProps = {
|
|||||||
|
|
||||||
const TopbarIcon = topbarIcon;
|
const TopbarIcon = topbarIcon;
|
||||||
|
|
||||||
function BrandGlyph() {
|
|
||||||
return (
|
|
||||||
<div className="brand-glyph" aria-hidden="true">
|
|
||||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round">
|
|
||||||
<path d="M12 3 5.5 5.8v5.4c0 4.5 2.6 7.9 6.5 9.8 3.9-1.9 6.5-5.3 6.5-9.8V5.8L12 3Z" />
|
|
||||||
<path d="m9.5 12 1.7 1.7 3.8-4.2" />
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export function Layout({ onLogout }: LayoutProps) {
|
export function Layout({ onLogout }: LayoutProps) {
|
||||||
return (
|
return (
|
||||||
<div className="shell">
|
<div className="shell">
|
||||||
<aside className="sidebar">
|
<aside className="sidebar">
|
||||||
<div className="brand-block">
|
<div className="sidebar-brand">
|
||||||
<BrandGlyph />
|
<img className="sidebar-brand-logo" src="/NexaVPN_Logo.png" alt="NexaVPN" />
|
||||||
<div className="brand-copy">
|
|
||||||
<p className="eyebrow">NexaVPN</p>
|
|
||||||
<h1>Control Plane</h1>
|
|
||||||
<p className="brand-tagline">Remote access orchestration for your private WireGuard edge.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<nav className="nav">
|
<nav className="nav">
|
||||||
{items.map(([label, path, iconKey]) => {
|
{items.map(([label, path, iconKey]) => {
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
:root {
|
:root {
|
||||||
color-scheme: light dark;
|
color-scheme: light dark;
|
||||||
--bg: #0c1322;
|
--bg: #08101d;
|
||||||
--bg-soft: #111b30;
|
--bg-soft: #0d1630;
|
||||||
--panel: rgba(17, 27, 48, 0.78);
|
--panel: rgba(13, 22, 48, 0.82);
|
||||||
--panel-strong: #14203a;
|
--panel-strong: #142453;
|
||||||
--text: #eff4ff;
|
--text: #eff5ff;
|
||||||
--muted: #9fb2d4;
|
--muted: #9db1d3;
|
||||||
--line: rgba(177, 197, 229, 0.15);
|
--line: rgba(114, 178, 255, 0.16);
|
||||||
--accent: #74e0b8;
|
--accent: #44e6e7;
|
||||||
--accent-strong: #1fb67a;
|
--accent-strong: #4a8cff;
|
||||||
--shadow: 0 18px 48px rgba(3, 8, 20, 0.35);
|
--accent-violet: #8d5bff;
|
||||||
|
--shadow: 0 20px 56px rgba(2, 7, 18, 0.42);
|
||||||
font-family: "Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif;
|
font-family: "Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,9 +23,10 @@ body {
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at top left, rgba(116, 224, 184, 0.17), transparent 28%),
|
radial-gradient(circle at top left, rgba(68, 230, 231, 0.18), transparent 26%),
|
||||||
radial-gradient(circle at bottom right, rgba(98, 144, 255, 0.16), transparent 24%),
|
radial-gradient(circle at top right, rgba(141, 91, 255, 0.16), transparent 24%),
|
||||||
linear-gradient(180deg, #08101d 0%, #0d1728 100%);
|
radial-gradient(circle at bottom right, rgba(74, 140, 255, 0.16), transparent 26%),
|
||||||
|
linear-gradient(180deg, #07101c 0%, #0a1430 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@@ -90,31 +92,19 @@ button {
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-glyph,
|
|
||||||
.topbar-icon-wrap,
|
.topbar-icon-wrap,
|
||||||
.page-title-icon {
|
.page-title-icon {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
border: 1px solid rgba(116, 224, 184, 0.18);
|
border: 1px solid rgba(68, 230, 231, 0.18);
|
||||||
background:
|
background:
|
||||||
radial-gradient(circle at top, rgba(116, 224, 184, 0.14), transparent 72%),
|
radial-gradient(circle at top, rgba(68, 230, 231, 0.16), transparent 72%),
|
||||||
rgba(10, 18, 32, 0.88);
|
rgba(10, 18, 32, 0.88);
|
||||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-glyph {
|
|
||||||
width: 54px;
|
|
||||||
height: 54px;
|
|
||||||
border-radius: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand-glyph svg {
|
|
||||||
width: 25px;
|
|
||||||
height: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand-copy {
|
.brand-copy {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
@@ -176,14 +166,26 @@ button {
|
|||||||
.sidebar {
|
.sidebar {
|
||||||
padding: 28px;
|
padding: 28px;
|
||||||
border-right: 1px solid var(--line);
|
border-right: 1px solid var(--line);
|
||||||
background: rgba(7, 12, 22, 0.76);
|
background:
|
||||||
|
linear-gradient(180deg, rgba(8, 15, 28, 0.96) 0%, rgba(7, 13, 25, 0.88) 100%);
|
||||||
backdrop-filter: blur(18px);
|
backdrop-filter: blur(18px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-brand {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-brand-logo {
|
||||||
|
width: min(100%, 170px);
|
||||||
|
height: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-top: 36px;
|
margin-top: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
@@ -201,8 +203,9 @@ button {
|
|||||||
.nav-link:hover,
|
.nav-link:hover,
|
||||||
.nav-link.active {
|
.nav-link.active {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
border-color: rgba(116, 224, 184, 0.14);
|
border-color: rgba(68, 230, 231, 0.16);
|
||||||
background: rgba(116, 224, 184, 0.08);
|
background:
|
||||||
|
linear-gradient(135deg, rgba(68, 230, 231, 0.08), rgba(74, 140, 255, 0.08));
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-link-copy {
|
.nav-link-copy {
|
||||||
|
|||||||
Reference in New Issue
Block a user