diff --git a/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx b/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx index 8f3b3a8e5d0..f8c8014e1c0 100644 --- a/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx +++ b/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx @@ -55,7 +55,11 @@ export function ProjectListDsNav() { return (
- +
diff --git a/services/web/frontend/js/features/ui/components/bootstrap-5/navbar/default-navbar.tsx b/services/web/frontend/js/features/ui/components/bootstrap-5/navbar/default-navbar.tsx index 2480b7f061f..8e5429dbde6 100644 --- a/services/web/frontend/js/features/ui/components/bootstrap-5/navbar/default-navbar.tsx +++ b/services/web/frontend/js/features/ui/components/bootstrap-5/navbar/default-navbar.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react' +import React, { useState } from 'react' import { sendMB } from '@/infrastructure/event-tracking' import { useTranslation } from 'react-i18next' import { Button, Container, Nav, Navbar } from 'react-bootstrap' @@ -13,9 +13,15 @@ import MaterialIcon from '@/shared/components/material-icon' import { useContactUsModal } from '@/shared/hooks/use-contact-us-modal' import { UserProvider } from '@/shared/context/user-context' import { X } from '@phosphor-icons/react' +import overleafWhiteLogo from '@/shared/svgs/overleaf-white.svg' +import overleafBlackLogo from '@/shared/svgs/overleaf-black.svg' +import type { CSSPropertiesWithVariables } from '../../../../../../../types/css-properties-with-variables' -function DefaultNavbar(props: DefaultNavbarMetadata) { +function DefaultNavbar( + props: DefaultNavbarMetadata & { overleafLogo?: string } +) { const { + overleafLogo, customLogo, title, canDisplayAdminMenu, @@ -49,10 +55,20 @@ function DefaultNavbar(props: DefaultNavbarMetadata) { className="navbar-default navbar-main" expand="lg" onToggle={expanded => setExpanded(expanded)} + style={ + { + '--navbar-brand-image-default-url': `url("${overleafWhiteLogo}")`, + '--navbar-brand-image-redesign-url': `url("${overleafBlackLogo}")`, + } as CSSPropertiesWithVariables + } >
- + {enableUpgradeButton ? (