Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/Logo is missing in menu on mobile #17 #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions src/components/nav/nav-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import { Button } from "@/components/ui/button"
import { NavigationMenu, NavigationMenuList } from "@/components/ui/navigation-menu"
import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"
import { Label } from "@radix-ui/react-label"

import { JSX, SVGProps } from "react"
import Logo from "@/components/ui/logo"

export default function NavBar() {

Expand Down Expand Up @@ -47,10 +46,8 @@ export default function NavBar() {
</Button>
</SheetTrigger>
<SheetContent className="bg-white" side="left">
<div className="flex items-center justify-between gap-2 px-4 py-4 lg:hidden">
<img src="/logo/logo-white-bg-150-80.png"></img>

</div>
<Logo className ="flex border-x-0 h-[76px] justify-center
text-4xl lg:px-16 sm:px-5 px-6 text-white border-r-[1px] border-main " />
<div className="grid gap-4 py-6">
{links.map((key, index) => (
<Button className="justify-start w-full text-left px-4"
Expand All @@ -61,21 +58,10 @@ export default function NavBar() {
</SheetContent>
</Sheet>

<div className="flex w-full bg-black">
<Label className="flex border-x-0 h-[76px] justify-center
text-4xl lg:px-16 sm:px-5 px-6 text-white border-r-[1px] border-main border-dashed"
style={{
<Logo className ="flex border-x-0 h-[76px] justify-center
text-4xl lg:px-16 sm:px-5 px-6 text-white border-r-[1px] border-main border-dashed" />
<div className="grid gap-4 py-6"/>

fontWeight: "650",
letterSpacing: "-3.5px",
// textShadow: "-2px 2px 0 white",
textShadow: "2px 0 0 black, -2px 0 0 black, 0 2px 0 black, 0 -2px 0 black, 5px 4px 0 ",
fontFamily: "poppins",
justifyContent: "center",
display: "flex",
flexDirection: "column"
}}>copod</Label>
</div>
<div className="flex-1 hidden lg:flex justify-end">
<NavigationMenu>
<NavigationMenuList>
Expand Down
29 changes: 29 additions & 0 deletions src/components/ui/logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from 'react';
import { Label } from '@radix-ui/react-label';

interface LogoProps {
className: string;
}

const Logo: React.FC<LogoProps> = ({ className }) => {
return (
<div className="flex w-fit bg-black">
<Label
className={className}
style={{
fontWeight: 650,
letterSpacing: '-3.5px',
textShadow: '2px 0 0 black, -2px 0 0 black, 0 2px 0 black, 0 -2px 0 black, 5px 4px 0',
fontFamily: 'poppins',
justifyContent: 'center',
display: 'flex',
flexDirection: 'column',
}}
>
copod
</Label>
</div>
);
};

export default Logo;