Skip to content

Commit

Permalink
duplicated logo
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Oct 30, 2023
1 parent ae8d91e commit 480d2cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
9 changes: 7 additions & 2 deletions src/containers/sidebar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Image from 'next/image';
import Link from 'next/link';

import Helper from 'containers/guide/helper';
import Menu from 'containers/sidebar/menu';
Expand All @@ -11,9 +12,13 @@ const HELPER_ID = 'menu-categories';

const Sidebar = () => (
<div className="pointer-events-none absolute top-0 bottom-0 left-0 w-full bg-[url('/images/sidebar-bg.png')] bg-[top_left_-16px] bg-no-repeat print:hidden">
<div className="absolute top-0 left-0 z-50 print:hidden">
<Link
href="/"
className="pointer-events-auto absolute top-0 left-0 z-50 h-[90px] w-[220px] cursor-pointer print:hidden"
data-testid="desktop-logo-link"
>
<Image width={220} height={100} src="/images/logo.svg" alt="Global Mangrove Watch" />
</div>
</Link>
<div className="pointer-events-auto relative top-28 inline-flex h-full w-18 flex-col items-start space-y-5 bg-brand-600 pl-2.5">
<div>
<Menu />
Expand Down
12 changes: 0 additions & 12 deletions src/layouts/desktop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@ const DesktopLayout = () => {
Powered by Global Mangrove Watch. https://www.globalmangrovewatch.org
</p>
)}
<Link
href="/"
className="pointer-events-auto absolute top-0 left-0 z-50 h-[90px] w-[220px] cursor-pointer print:hidden"
data-testid="desktop-logo-link"
>
<Image
data-testid="desktop-logo"
fill={true}
src="/images/logo.svg"
alt="Global Mangrove Watch"
/>
</Link>
<MapContainer mapId={`default-desktop-${isPrintingId}`} />

<Sidebar />
Expand Down

1 comment on commit 480d2cb

@vercel
Copy link

@vercel vercel bot commented on 480d2cb Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.