From a39a76f7a5abe4958491b58749bac9ee380dd615 Mon Sep 17 00:00:00 2001 From: Dev Server Date: Thu, 12 Mar 2026 16:52:33 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20use=20custom=20logo=20files=20=E2=80=94?= =?UTF-8?q?=20logo.svg=20(expanded)=20/=20favicon.png=20(mini)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Logo component now renders logo.svg (full) or favicon.png (icon) from /logo/ - nav-vertical: mini mode passes mini prop → favicon.png - animate-logo (splash screen): uses favicon.png icon with animation ring Co-Authored-By: Claude Sonnet 4.6 --- .../src/components/animate/animate-logo.jsx | 2 +- front_minimal/src/components/logo/logo.jsx | 89 +++++++------------ .../src/layouts/dashboard/nav-vertical.jsx | 2 +- 3 files changed, 32 insertions(+), 61 deletions(-) diff --git a/front_minimal/src/components/animate/animate-logo.jsx b/front_minimal/src/components/animate/animate-logo.jsx index c68327f..b4f46c3 100644 --- a/front_minimal/src/components/animate/animate-logo.jsx +++ b/front_minimal/src/components/animate/animate-logo.jsx @@ -33,7 +33,7 @@ export function AnimateLogo1({ logo, sx, ...other }) { }} sx={{ display: 'inline-flex' }} > - {logo ?? } + {logo ?? } { - const theme = useTheme(); + ({ width, height, mini = false, disableLink = false, className, href = '/', sx, ...other }, ref) => { - const gradientId = useId(); + const defaultWidth = mini ? 40 : 134; + const defaultHeight = mini ? 40 : 40; - const PRIMARY_LIGHT = theme.vars.palette.primary.light; + const w = width ?? defaultWidth; + const h = height ?? defaultHeight; - const PRIMARY_MAIN = theme.vars.palette.primary.main; - - const PRIMARY_DARK = theme.vars.palette.primary.dark; - - /* - * OR using local (public folder) - * const logo = ( ); - */ - - const logo = ( - - - - - - - - - - - - - - - - - - - - - - - - + const logo = mini ? ( + + ) : ( + ); return ( } > @@ -84,8 +55,8 @@ export const Logo = forwardRef( ref={ref} component={RouterLink} href={href} - width={width} - height={height} + width={w} + height={h} className={logoClasses.root.concat(className ? ` ${className}` : '')} aria-label="logo" sx={{ diff --git a/front_minimal/src/layouts/dashboard/nav-vertical.jsx b/front_minimal/src/layouts/dashboard/nav-vertical.jsx index c14d5e4..3e3f330 100644 --- a/front_minimal/src/layouts/dashboard/nav-vertical.jsx +++ b/front_minimal/src/layouts/dashboard/nav-vertical.jsx @@ -35,7 +35,7 @@ export function NavVertical({ sx, data, slots, isNavMini, layoutQuery, onToggleN <> {slots?.topArea ?? ( - + )}