Skip to content

Commit

Permalink
Change titles after renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
kplatis committed May 27, 2024
1 parent 24797ff commit 1d64654
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/app/virtual-lab/(home)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import { ErrorBoundary } from 'react-error-boundary';

import SimpleErrorComponent from '@/components/GenericErrorFallback';
import VirtualLabTopMenu from '@/components/VirtualLab/VirtualLabTopMenu';
import { OBPLogo } from '@/components/Entrypoint/segments/Splash';

export default function VirtualLabPageLayout({ children }: { children: ReactNode }) {
return (
<div className="bg-primary-9 p-10 text-white">
<div className="flex flex-row justify-between">
<div className="flex flex-col text-2xl font-bold">
<span>Open</span> <span> Brain</span> <span>Platform</span>
</div>
<OBPLogo color="text-white" />
<VirtualLabTopMenu />
</div>
<ErrorBoundary FallbackComponent={SimpleErrorComponent}>{children}</ErrorBoundary>
Expand Down
5 changes: 2 additions & 3 deletions src/app/virtual-lab/sandbox/(with_sidebar)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import VirtualLabTopMenu from '@/components/VirtualLab/VirtualLabTopMenu';
import VerticalLinks, { LinkItem } from '@/components/VerticalLinks';
import { LinkItemKey } from '@/constants/virtual-labs/sidemenu';
import { CreateVirtualLabButton } from '@/components/VirtualLab/VirtualLabTopMenu/CreateVirtualLabButton';
import { OBPLogo } from '@/components/Entrypoint/segments/Splash';

export default function VirtualLabSandboxLayout({ children }: { children: ReactNode }) {
const currentPage = usePathname().split('/').pop();
Expand All @@ -27,9 +28,7 @@ export default function VirtualLabSandboxLayout({ children }: { children: ReactN
<ErrorBoundary FallbackComponent={SimpleErrorComponent}>
<Suspense fallback={null}>
<div className="flex flex-col gap-4">
<div className="flex flex-col text-2xl font-bold">
<span>Open</span> <span> Brain</span> <span>Platform</span>
</div>
<OBPLogo color="text-white" />
<VerticalLinks links={linkItems} currentPage={currentPage} />
</div>
</Suspense>
Expand Down
8 changes: 6 additions & 2 deletions src/components/Entrypoint/segments/Splash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Image from 'next/image';

import { basePath } from '@/config';
import { classNames } from '@/util/utils';
import { ObpLogo } from '@/components/icons/ObpLogo';

export function Background() {
return (
Expand Down Expand Up @@ -37,7 +36,12 @@ export function OBPLogo({
href="/"
className={classNames('z-10 flex h-auto flex-col justify-center pr-4', color, className)}
>
<ObpLogo />
<div className="flex flex-col text-4xl font-bold">
<span>Blue</span>
<span>Brain</span>
<span>Open</span>
<span>Platform</span>
</div>
</Link>
);
}
Expand Down

0 comments on commit 1d64654

Please sign in to comment.