-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from RanitManik/dev
changed design of snap page
- Loading branch information
Showing
13 changed files
with
302 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"use client"; | ||
|
||
import { Navbar, NavbarBrand, NavbarContent } from "@nextui-org/navbar"; | ||
import { Link } from "@nextui-org/link"; | ||
import { Chip } from "@nextui-org/chip"; | ||
|
||
import BrandLogo from "@/components/brand-logo"; | ||
import Logo from "@/components/logo"; | ||
import { NavMenu } from "@/components/nav-menu"; | ||
|
||
export default function DashboardNavBar() { | ||
return ( | ||
<Navbar isBordered maxWidth="2xl"> | ||
<NavbarBrand> | ||
<Link className="hover:opacity-1" href="/"> | ||
<Logo /> | ||
<BrandLogo className="mx-2" /> | ||
</Link> | ||
<Chip size="sm">Starter</Chip> | ||
{/*<Chip | ||
classNames={{ | ||
base: "bg-gradient-to-br from-indigo-500 to-pink-500", | ||
content: "text-white", | ||
}} | ||
size="sm" | ||
> | ||
Premium | ||
</Chip>*/} | ||
</NavbarBrand> | ||
<NavbarContent as="div" className="items-center" justify="end"> | ||
<NavMenu /> | ||
</NavbarContent> | ||
</Navbar> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
app/(dashboard)/snap/[id]/_components/back-to-home-button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"use client"; | ||
|
||
import { Home } from "lucide-react"; | ||
import { Button } from "@nextui-org/button"; | ||
import { Tooltip } from "@nextui-org/tooltip"; | ||
|
||
import { usePRouter } from "@/components/custom-router"; | ||
|
||
export const BackToHomeButton = () => { | ||
const router = usePRouter(); | ||
|
||
return ( | ||
<Tooltip content="Home"> | ||
<Button | ||
className="flex h-8 min-w-8 items-center justify-center gap-0.5 rounded px-1 py-0" | ||
variant="light" | ||
onClick={() => { | ||
router.push("/"); | ||
}} | ||
> | ||
<Home size={16} strokeWidth={1.5} /> | ||
<span className="sr-only">Go to Home</span> | ||
</Button> | ||
</Tooltip> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
app/(dashboard)/snap/[id]/_components/snap-info-button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Image } from "@nextui-org/image"; | ||
import { Button } from "@nextui-org/button"; | ||
|
||
export default function SnapInfoButton({ | ||
imgURL, | ||
snapName, | ||
}: { | ||
snapName: string; | ||
imgURL: string; | ||
}) { | ||
return ( | ||
<Button | ||
className="flex h-8 cursor-pointer items-center gap-2 rounded px-2" | ||
variant="light" | ||
> | ||
<Image height={20} radius="sm" src={imgURL} width={20} /> | ||
<h1 className="line-clamp-1 max-w-60 text-sm">{snapName}</h1> | ||
</Button> | ||
); | ||
} |
Oops, something went wrong.