Skip to content

Commit

Permalink
Show the Planty logo
Browse files Browse the repository at this point in the history
  • Loading branch information
m-danya committed Oct 25, 2024
1 parent dab370b commit c00f975
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
9 changes: 2 additions & 7 deletions frontend/nextjs/components/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@ import {
SidebarHeader,
SidebarRail,
} from "@/components/ui/sidebar";
import { Logo } from "@/components/logo";

const data = {
teams: [
{
name: "Name Surname",
logo: User,
},
],
navMain: [
{
title: "Search",
Expand Down Expand Up @@ -121,7 +116,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
return (
<Sidebar className="border-r-0" {...props}>
<SidebarHeader>
<TeamSwitcher teams={data.teams} />
<Logo />
<NavMain items={data.navMain} />
</SidebarHeader>
<SidebarContent>
Expand Down
17 changes: 17 additions & 0 deletions frontend/nextjs/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Image from "next/image";

export function Logo() {
return (
<div className="flex justify-center w-full">
<div className="w-32">
<Image
src="/logo.png"
className="w-full h-auto "
width={200}
height={200}
alt="Planty logo"
/>
</div>
</div>
);
}
Binary file added frontend/nextjs/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c00f975

Please sign in to comment.