Skip to content

Commit 8d08ba7

Browse files
author
Hakan Kaya
committed
feat(web): integrate VDS4E brand assets
1 parent 92c6f17 commit 8d08ba7

8 files changed

Lines changed: 46 additions & 10 deletions

File tree

329 KB
Loading
35.2 KB
Loading
381 KB
Loading
38.5 KB
Loading
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import darkPng from '../assets/brand/vds4e-logo-dark-transparent.png'
2+
import darkWebp from '../assets/brand/vds4e-logo-dark-transparent.webp'
3+
import lightPng from '../assets/brand/vds4e-logo-light-transparent.png'
4+
import lightWebp from '../assets/brand/vds4e-logo-light-transparent.webp'
5+
6+
const logoSources = {
7+
dark: { fallback: darkPng, webp: darkWebp },
8+
light: { fallback: lightPng, webp: lightWebp },
9+
} as const
10+
11+
interface BrandLogoProps {
12+
className?: string
13+
decorative?: boolean
14+
variant?: keyof typeof logoSources
15+
}
16+
17+
export function BrandLogo({ className, decorative = false, variant = 'dark' }: BrandLogoProps) {
18+
const source = logoSources[variant]
19+
20+
return (
21+
<picture className={className}>
22+
<source srcSet={source.webp} type="image/webp" />
23+
<img
24+
alt={decorative ? '' : 'VDS4E — Virtual Device Simulator for Embedded'}
25+
decoding="async"
26+
src={source.fallback}
27+
/>
28+
</picture>
29+
)
30+
}

‎apps/vds-web/src/features/dashboard/DashboardPage.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Activity, Boxes, Radio, ShieldAlert } from 'lucide-react'
33

44
import { useDevices, useFaults, useHealth, useRun } from '../../api/queries'
55
import { AsyncState } from '../../components/AsyncState'
6+
import { BrandLogo } from '../../components/BrandLogo'
67
import { GlassPanel } from '../../components/GlassPanel'
78
import { MetricCard } from '../../components/MetricCard'
89
import { PageHeader } from '../../components/PageHeader'
@@ -53,7 +54,8 @@ export function DashboardPage() {
5354
))}
5455
</div>
5556
</GlassPanel>
56-
<GlassPanel eyebrow="Orchestration" title="Active scenario run">
57+
<GlassPanel className="dashboard-run-panel" eyebrow="Orchestration" title="Active scenario run">
58+
<BrandLogo className="panel-brand-watermark" decorative />
5759
{!activeRunId && <AsyncState detail="Start a scenario to track it here." kind="empty" title="No active run" />}
5860
{activeRun.isError && <AsyncState detail={activeRun.error.message} kind="error" title="Run status unavailable" />}
5961
{activeRun.data && (

‎apps/vds-web/src/layouts/AppShell.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Activity, Boxes, Gauge, GitBranch, PlaySquare, Radio, Waves } from 'lucide-react'
1+
import { Activity, Boxes, Gauge, GitBranch, PlaySquare, Radio } from 'lucide-react'
22
import { NavLink, Outlet } from 'react-router-dom'
33

4+
import { BrandLogo } from '../components/BrandLogo'
45
import { EventDetailDrawer } from '../components/EventDetailDrawer'
56
import { StatusBadge } from '../components/StatusBadge'
67
import { useEventStore } from '../stores/eventStore'
@@ -19,10 +20,9 @@ export function AppShell() {
1920
return (
2021
<div className="app-shell">
2122
<aside className="sidebar">
22-
<div className="brand-lockup">
23-
<div className="brand-mark"><Waves aria-hidden="true" size={23} /></div>
24-
<div><strong>VDS4E</strong><span>control plane</span></div>
25-
</div>
23+
<NavLink aria-label="VDS4E dashboard" className="brand-lockup" to="/">
24+
<BrandLogo className="sidebar-brand-logo" decorative />
25+
</NavLink>
2626
<nav aria-label="Primary navigation">
2727
{navigation.map(({ to, label, icon: Icon, end }) => (
2828
<NavLink className={({ isActive }) => `nav-link${isActive ? ' active' : ''}`} end={end} key={to} to={to}>

‎apps/vds-web/src/styles/app.css‎

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)