From 3d56eed2b8d77674163f5627725a47d61c8d2753 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Wed, 24 Jun 2026 16:35:14 +0700 Subject: [PATCH] feat: update docs site branding with custom logo, favicon, and elegant navbar styling --- apps/docs-dev/src/.vitepress/config.mts | 8 ++- apps/docs-dev/src/.vitepress/theme/custom.css | 52 +++++++++++++++++++ apps/docs-dev/src/public/favicon.svg | 6 +++ apps/docs-dev/src/public/logo.svg | 6 +++ 4 files changed, 70 insertions(+), 2 deletions(-) create mode 100644 apps/docs-dev/src/public/favicon.svg create mode 100644 apps/docs-dev/src/public/logo.svg diff --git a/apps/docs-dev/src/.vitepress/config.mts b/apps/docs-dev/src/.vitepress/config.mts index 8b2d764..e995515 100644 --- a/apps/docs-dev/src/.vitepress/config.mts +++ b/apps/docs-dev/src/.vitepress/config.mts @@ -3,10 +3,14 @@ import { withMermaid } from 'vitepress-plugin-mermaid' const config = withMermaid( defineConfig({ - title: "Frontend Monorepo", + // title: "Frontend Monorepo", + title: 'Frontend Arch', description: "Centralized documentation for the Enterprise Frontend Monorepo", - + head: [ + ['link', { rel: 'icon', href: '/favicon.svg' }] // Jika Anda menggunakan favicon.svg + ], themeConfig: { + logo: '/logo.svg', nav: [ { text: 'Docs', link: '/overview' }, ], diff --git a/apps/docs-dev/src/.vitepress/theme/custom.css b/apps/docs-dev/src/.vitepress/theme/custom.css index 0d698c6..5746fe5 100644 --- a/apps/docs-dev/src/.vitepress/theme/custom.css +++ b/apps/docs-dev/src/.vitepress/theme/custom.css @@ -26,3 +26,55 @@ --vp-c-brand-3: #652ed9; --vp-c-brand-soft: rgba(101, 46, 217, 0.25); } + +/* Sesuaikan ukuran logo di navbar */ +/* .VPNavBar .logo { + height: 32px; +} + +.VPNavBar .VPNavBarTitle{ + +} */ + +/* ========================================================================== + OPTIMASI NAVBAR TITLE & LOGO (ELEGANT ALIGNMENT) + ========================================================================== */ +.VPNavBar .VPNavBarTitle { + display: flex; + align-items: center; /* Memastikan logo & teks sejajar sempurna secara vertikal */ + gap: 12px; /* Spasi yang lebih longgar dan elegan antara logo & teks */ + padding: 0 16px; /* Memberikan ruang napas di dalam kontainer title */ +} + +/* ========================================================================== + ELEGANT HARMONIOUS GRADIENT (Subtle Mode-Aware) + ========================================================================== */ +.VPNavBar .VPNavBarTitle .title { + /* LIGHT MODE: Gradien dari warna Brand gelap ke warna Brand terang */ + /* Kita hindari hitam pekat, gunakan ungu yang lebih dalam */ + background: linear-gradient(135deg, #4b23a6 0%, var(--vp-c-brand-1) 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + transition: all 0.3s ease; +} + +/* DARK MODE: Gradien dari ungu sangat muda ke warna Brand */ +.dark .VPNavBar .VPNavBarTitle .title { + /* Kita kurangi dominasi putih dengan menggunakan ungu yang sangat terang */ + background: linear-gradient(135deg, #c5a8ff 30%, var(--vp-c-brand-1) 100%); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + /* Glow diperhalus agar tidak terlalu menyilaukan */ + filter: drop-shadow(0 0 8px rgba(101, 46, 217, 0.2)); +} + +/* Hover effect yang lebih kalem */ +.VPNavBar .VPNavBarTitle .title:hover { + filter: drop-shadow(0 0 12px rgba(101, 46, 217, 0.4)); +} + +.VPNavBar .logo { + height: 28px; /* Menyeimbangkan ukuran logo dengan tinggi teks */ + width: 28px; + margin-right: 0; /* Margin sudah digantikan oleh 'gap' pada parent */ +} \ No newline at end of file diff --git a/apps/docs-dev/src/public/favicon.svg b/apps/docs-dev/src/public/favicon.svg new file mode 100644 index 0000000..4328d48 --- /dev/null +++ b/apps/docs-dev/src/public/favicon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/apps/docs-dev/src/public/logo.svg b/apps/docs-dev/src/public/logo.svg new file mode 100644 index 0000000..7abbacf --- /dev/null +++ b/apps/docs-dev/src/public/logo.svg @@ -0,0 +1,6 @@ + + + + + +