mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
sidebar updates
This commit is contained in:
+46
-46
@@ -1,48 +1,48 @@
|
||||
{
|
||||
"name": "yellowbird",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.1.0",
|
||||
"@dnd-kit/sortable": "^8.0.0",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@nivo/bar": "^0.85.1",
|
||||
"@nivo/calendar": "^0.85.0",
|
||||
"@nivo/line": "^0.84.0",
|
||||
"@nivo/treemap": "^0.84.0",
|
||||
"@radix-ui/react-dialog": "^1.0.5",
|
||||
"@radix-ui/react-separator": "^1.0.3",
|
||||
"@radix-ui/react-slot": "^1.0.2",
|
||||
"@tanstack/react-table": "^8.13.2",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.1.0",
|
||||
"cmdk": "^1.0.0",
|
||||
"date-fns": "^3.3.1",
|
||||
"lightweight-charts": "^4.1.3",
|
||||
"lucide-react": "^0.338.0",
|
||||
"next": "14.1.0",
|
||||
"next-themes": "^0.2.1",
|
||||
"react": "^18",
|
||||
"react-dom": "^18",
|
||||
"tailwind-merge": "^2.2.1",
|
||||
"tailwindcss-animate": "^1.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20",
|
||||
"@types/react": "^18",
|
||||
"@types/react-dom": "^18",
|
||||
"autoprefixer": "^10.0.1",
|
||||
"eslint": "^8",
|
||||
"eslint-config-next": "14.1.0",
|
||||
"postcss": "^8",
|
||||
"prettier-plugin-tailwindcss": "^0.5.14",
|
||||
"tailwindcss": "^3.3.0",
|
||||
"typescript": "^5"
|
||||
}
|
||||
"name": "yellowbird",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --turbo",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.1.0",
|
||||
"@dnd-kit/sortable": "^8.0.0",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@nivo/bar": "^0.85.1",
|
||||
"@nivo/calendar": "^0.85.0",
|
||||
"@nivo/line": "^0.84.0",
|
||||
"@nivo/treemap": "^0.84.0",
|
||||
"@radix-ui/react-dialog": "^1.0.5",
|
||||
"@radix-ui/react-separator": "^1.0.3",
|
||||
"@radix-ui/react-slot": "^1.0.2",
|
||||
"@tanstack/react-table": "^8.13.2",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"clsx": "^2.1.0",
|
||||
"cmdk": "^1.0.0",
|
||||
"date-fns": "^3.3.1",
|
||||
"lightweight-charts": "^4.1.3",
|
||||
"lucide-react": "^0.338.0",
|
||||
"next": "14.1.0",
|
||||
"next-themes": "^0.2.1",
|
||||
"react": "^18",
|
||||
"react-dom": "^18",
|
||||
"tailwind-merge": "^2.2.1",
|
||||
"tailwindcss-animate": "^1.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20",
|
||||
"@types/react": "^18",
|
||||
"@types/react-dom": "^18",
|
||||
"autoprefixer": "^10.0.1",
|
||||
"eslint": "^8",
|
||||
"eslint-config-next": "14.1.0",
|
||||
"postcss": "^8",
|
||||
"prettier-plugin-tailwindcss": "^0.5.14",
|
||||
"tailwindcss": "^3.3.0",
|
||||
"typescript": "^5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 6483 1738" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><g><path d="M1569.48,716.554l-0,-716.554l247.604,0l0,1304.17l-247.604,-0l-0,-465.446l8.959,-3.439c11.035,-4.236 17.596,-15.622 15.726,-27.294c-5.096,-31.81 -13.449,-62.394 -24.685,-91.434Z" style="fill:#1a1b20;"/><path d="M724.831,1027.33l-0,285.265l-0.678,-0c0,234.721 -190.279,425 -425,425c-62.286,0 -123.812,-13.691 -180.221,-40.104l104.897,-224.027c23.576,11.04 49.291,16.762 75.324,16.762c98.103,-0 177.631,-79.528 177.631,-177.631l0.443,-0l-0,-10.216c-17.116,2.097 -34.545,3.177 -52.227,3.177c-234.721,0 -425,-190.279 -425,-425l0,-426.386l247.604,-0l0,426.386l-0.235,0c0,98.103 79.528,177.631 177.631,177.631c18.176,-0 35.714,-2.73 52.227,-7.802l-0,-596.215l247.604,-0l-0,276.84c-16.196,46.404 -25,96.262 -25,148.16c-0,51.898 8.804,101.756 25,148.16Z" style="fill:#1a1b20;"/><path d="M2125.42,1024.35l0,279.822l-247.604,-0l-0,-1304.17l247.604,0l0,733.988c-15.539,45.556 -23.971,94.39 -23.971,145.179c0,50.788 8.432,99.622 23.971,145.178Z" style="fill:#1a1b20;"/><path d="M4908.12,733.988l-0,-279.821l247.604,-0l0,850l-247.604,-0l-0,-279.822c15.539,-45.556 23.971,-94.39 23.971,-145.178c0,-50.789 -8.432,-99.623 -23.971,-145.179Z" style="fill:#1a1b20;"/><path d="M5641.96,705.18c-11.693,-2.406 -23.682,-3.644 -35.799,-3.644c-98.103,-0 -177.631,79.528 -177.631,177.631c0.003,3.056 0.235,425 0.235,425l-247.604,-0l-0,-425c-0,-234.721 190.279,-425 425,-425c70.864,-0 139.904,17.698 201.21,50.647c-73.027,48.828 -130.996,118.448 -165.411,200.366Z" style="fill:#1a1b20;"/><path d="M2975.42,728.092l0,-273.925l247.605,-0c-0,-0 -0.232,444.04 -0.236,447.096c0,59.866 0.236,147.466 78.591,147.466c78.59,0 78.59,-87.6 78.59,-147.466c-0.003,-3.056 -0.235,-447.096 -0.235,-447.096l247.605,-0l-0,447.096c-0,5.706 -0.058,11.353 -0.171,16.942c0.625,58.139 7.299,130.524 78.526,130.524c78.59,0 78.59,-87.6 78.59,-147.466c-0.003,-3.056 -0.235,-447.096 -0.235,-447.096l247.604,-0l0,447.096c0,265.713 -123.802,405.76 -325.959,402.86c-80.152,-1.151 -147.95,-22.948 -200.59,-65.4c-53.107,44.392 -122.016,66.572 -203.725,65.4c-173.207,-2.486 -288.894,-101.39 -318.476,-296.792c12.066,-40.625 18.545,-83.644 18.545,-128.164c0,-52.987 -9.178,-103.846 -26.029,-151.075Zm0.031,180.4c-0.02,-2.399 -0.031,-4.808 -0.031,-7.229l0,-51.869c0.682,9.837 1.029,19.764 1.029,29.773c0,9.856 -0.336,19.635 -0.998,29.325Z" style="fill:#1a1b20;"/><path d="M4057.09,879.167l0,-879.167l247.604,0l0,492.903c54.001,-24.866 114.091,-38.736 177.396,-38.736c234.564,-0 425,190.436 425,425c0,234.564 -190.436,425 -425,425c-63.305,-0 -123.395,-13.871 -177.396,-38.736c-146.088,-67.269 -247.604,-215.005 -247.604,-386.264Zm247.604,9.212c4.801,93.763 82.449,168.419 177.396,168.419c98.037,-0 177.631,-79.594 177.631,-177.631c-0,-98.038 -79.594,-177.631 -177.631,-177.631c-94.947,-0 -172.595,74.655 -177.396,168.418l0,18.425Z" style="fill:#1a1b20;"/><path d="M2551.45,454.167c234.564,-0 425,190.436 425,425c0,234.564 -190.436,425 -425,425c-234.564,-0 -425,-190.436 -425,-425c0,-234.564 190.436,-425 425,-425Zm0,247.592c97.914,-0 177.408,79.494 177.408,177.408c0,97.914 -79.494,177.408 -177.408,177.408c-97.914,-0 -177.408,-79.494 -177.408,-177.408c0,-97.914 79.494,-177.408 177.408,-177.408Z" style="fill:#1a1b20;"/><circle cx="5031.92" cy="283.333" r="137.5" style="fill:#1a1b20;"/><path d="M6482.04,879.167l-0,-879.167l-247.605,0l0,492.903c-54,-24.866 -114.091,-38.736 -177.395,-38.736c-234.564,-0 -425,190.436 -425,425c-0,234.564 190.436,425 425,425c63.304,-0 123.395,-13.871 177.395,-38.736c146.089,-67.269 247.605,-215.005 247.605,-386.264Zm-247.605,9.212c-4.8,93.763 -82.448,168.419 -177.395,168.419c-98.038,-0 -177.631,-79.594 -177.631,-177.631c-0,-98.038 79.593,-177.631 177.631,-177.631c94.947,-0 172.595,74.655 177.395,168.418l0,18.425Z" style="fill:#1a1b20;"/><path d="M1037.26,1016.25c30.636,25.195 69.852,40.33 112.575,40.33c61.586,-0 118.766,-31.94 151.061,-84.38l210.821,129.831c-77.364,125.625 -214.345,202.141 -361.882,202.141c-234.564,-0 -425,-190.436 -425,-425c-0,-234.564 190.436,-425 425,-425c208.771,-0 386.628,151.633 419.65,357.776l-532.225,204.302Zm226.813,-272.81c-31.057,-26.141 -71.064,-41.676 -114.238,-41.676c-89.63,-0 -163.825,66.611 -175.738,152.987l289.976,-111.311Z" style="fill:#1a1b20;"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 4.5 KiB |
@@ -1 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 6483 1738" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M1569.48,716.554l-0,-716.554l247.604,0l0,1304.17l-247.604,-0l-0,-465.446l8.959,-3.439c11.035,-4.236 17.596,-15.622 15.726,-27.294c-5.096,-31.81 -13.449,-62.394 -24.685,-91.434Z" style="fill:#ffcd00;"/><path d="M724.831,1027.33l-0,285.265l-0.678,-0c0,234.721 -190.279,425 -425,425c-62.286,0 -123.812,-13.691 -180.221,-40.104l104.897,-224.027c23.576,11.04 49.291,16.762 75.324,16.762c98.103,-0 177.631,-79.528 177.631,-177.631l0.443,-0l-0,-10.216c-17.116,2.097 -34.545,3.177 -52.227,3.177c-234.721,0 -425,-190.279 -425,-425l0,-426.386l247.604,-0l0,426.386l-0.235,0c0,98.103 79.528,177.631 177.631,177.631c18.176,-0 35.714,-2.73 52.227,-7.802l-0,-596.215l247.604,-0l-0,276.84c-16.196,46.404 -25,96.262 -25,148.16c-0,51.898 8.804,101.756 25,148.16Z" style="fill:#ffcd00;"/><path d="M2125.42,1024.35l0,279.822l-247.604,-0l-0,-1304.17l247.604,0l0,733.988c-15.539,45.556 -23.971,94.39 -23.971,145.179c0,50.788 8.432,99.622 23.971,145.178Z" style="fill:#ffcd00;"/><path d="M4908.12,733.988l-0,-279.821l247.604,-0l0,850l-247.604,-0l-0,-279.822c15.539,-45.556 23.971,-94.39 23.971,-145.178c0,-50.789 -8.432,-99.623 -23.971,-145.179Z" style="fill:#ffcd00;"/><path d="M5641.96,705.18c-11.693,-2.406 -23.682,-3.644 -35.799,-3.644c-98.103,-0 -177.631,79.528 -177.631,177.631c0.003,3.056 0.235,425 0.235,425l-247.604,-0l-0,-425c-0,-234.721 190.279,-425 425,-425c70.864,-0 139.904,17.698 201.21,50.647c-73.027,48.828 -130.996,118.448 -165.411,200.366Z" style="fill:#ffcd00;"/><path d="M2975.42,728.092l0,-273.925l247.605,-0c-0,-0 -0.232,444.04 -0.236,447.096c0,59.866 0.236,147.466 78.591,147.466c78.59,0 78.59,-87.6 78.59,-147.466c-0.003,-3.056 -0.235,-447.096 -0.235,-447.096l247.605,-0l-0,447.096c-0,5.706 -0.058,11.353 -0.171,16.942c0.625,58.139 7.299,130.524 78.526,130.524c78.59,0 78.59,-87.6 78.59,-147.466c-0.003,-3.056 -0.235,-447.096 -0.235,-447.096l247.604,-0l0,447.096c0,265.713 -123.802,405.76 -325.959,402.86c-80.152,-1.151 -147.95,-22.948 -200.59,-65.4c-53.107,44.392 -122.016,66.572 -203.725,65.4c-173.207,-2.486 -288.894,-101.39 -318.476,-296.792c12.066,-40.625 18.545,-83.644 18.545,-128.164c0,-52.987 -9.178,-103.846 -26.029,-151.075Zm0.031,180.4c-0.02,-2.399 -0.031,-4.808 -0.031,-7.229l0,-51.869c0.682,9.837 1.029,19.764 1.029,29.773c0,9.856 -0.336,19.635 -0.998,29.325Z" style="fill:#ffcd00;"/><path d="M4057.09,879.167l0,-879.167l247.604,0l0,492.903c54.001,-24.866 114.091,-38.736 177.396,-38.736c234.564,-0 425,190.436 425,425c0,234.564 -190.436,425 -425,425c-63.305,-0 -123.395,-13.871 -177.396,-38.736c-146.088,-67.269 -247.604,-215.005 -247.604,-386.264Zm247.604,9.212c4.801,93.763 82.449,168.419 177.396,168.419c98.037,-0 177.631,-79.594 177.631,-177.631c-0,-98.038 -79.594,-177.631 -177.631,-177.631c-94.947,-0 -172.595,74.655 -177.396,168.418l0,18.425Z" style="fill:#ffcd00;"/><path d="M2551.45,454.167c234.564,-0 425,190.436 425,425c0,234.564 -190.436,425 -425,425c-234.564,-0 -425,-190.436 -425,-425c0,-234.564 190.436,-425 425,-425Zm0,247.592c97.914,-0 177.408,79.494 177.408,177.408c0,97.914 -79.494,177.408 -177.408,177.408c-97.914,-0 -177.408,-79.494 -177.408,-177.408c0,-97.914 79.494,-177.408 177.408,-177.408Z" style="fill:#ffcd00;"/><circle cx="5031.92" cy="283.333" r="137.5" style="fill:#ffcd00;"/><path d="M6482.04,879.167l-0,-879.167l-247.605,0l0,492.903c-54,-24.866 -114.091,-38.736 -177.395,-38.736c-234.564,-0 -425,190.436 -425,425c-0,234.564 190.436,425 425,425c63.304,-0 123.395,-13.871 177.395,-38.736c146.089,-67.269 247.605,-215.005 247.605,-386.264Zm-247.605,9.212c-4.8,93.763 -82.448,168.419 -177.395,168.419c-98.038,-0 -177.631,-79.594 -177.631,-177.631c-0,-98.038 79.593,-177.631 177.631,-177.631c94.947,-0 172.595,74.655 177.395,168.418l0,18.425Z" style="fill:#ffcd00;"/><path d="M1037.26,1016.25c30.636,25.195 69.852,40.33 112.575,40.33c61.586,-0 118.766,-31.94 151.061,-84.38l210.821,129.831c-77.364,125.625 -214.345,202.141 -361.882,202.141c-234.564,-0 -425,-190.436 -425,-425c-0,-234.564 190.436,-425 425,-425c208.771,-0 386.628,151.633 419.65,357.776l-532.225,204.302Zm226.813,-272.81c-31.057,-26.141 -71.064,-41.676 -114.238,-41.676c-89.63,-0 -163.825,66.611 -175.738,152.987l289.976,-111.311Z" style="fill:#ffcd00;"/></svg>
|
||||
|
Before Width: | Height: | Size: 4.5 KiB |
@@ -31,27 +31,34 @@ import {
|
||||
CommandSeparator,
|
||||
CommandShortcut,
|
||||
} from "../ui/command";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
function Sidebar() {
|
||||
const [isCollapsed, setIsCollapsed] = useState<boolean>(false);
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const handleClick = (redirectLink: any) => {
|
||||
router.push(redirectLink);
|
||||
};
|
||||
|
||||
const menuList = [
|
||||
{
|
||||
group: "Navigation",
|
||||
items: [
|
||||
{
|
||||
link: "/dashboard",
|
||||
icon: <LayoutGridIcon />,
|
||||
link: "/",
|
||||
icon: <LayoutGridIcon height={20} />,
|
||||
text: "Dashboard",
|
||||
},
|
||||
{
|
||||
link: "/calendar",
|
||||
icon: <CalendarIcon />,
|
||||
icon: <CalendarIcon height={20} />,
|
||||
text: "Calendar",
|
||||
},
|
||||
{
|
||||
link: "/porfolio",
|
||||
icon: <LineChartIcon />,
|
||||
icon: <LineChartIcon height={20} />,
|
||||
text: "Portfolio",
|
||||
},
|
||||
],
|
||||
@@ -61,17 +68,17 @@ function Sidebar() {
|
||||
items: [
|
||||
{
|
||||
link: "/",
|
||||
icon: <CircleDollarSignIcon />,
|
||||
icon: <CircleDollarSignIcon height={20} />,
|
||||
text: "Earnings",
|
||||
},
|
||||
{
|
||||
link: "/",
|
||||
icon: <ArrowLeftRightIcon />,
|
||||
icon: <ArrowLeftRightIcon height={20} />,
|
||||
text: "Insider Trades",
|
||||
},
|
||||
{
|
||||
link: "/",
|
||||
icon: <FileTextIcon />,
|
||||
icon: <FileTextIcon height={20} />,
|
||||
text: "Filings",
|
||||
},
|
||||
],
|
||||
@@ -81,20 +88,35 @@ function Sidebar() {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
isCollapsed ? "w-[75px]" : "min-w-[300px]",
|
||||
isCollapsed ? "w-[75px]" : "min-w-[275px]",
|
||||
"border-r border-neutral-700 min-h-screen"
|
||||
)}
|
||||
>
|
||||
<div className="flex flex-col min-h-screen p-4">
|
||||
<div className="h-12 pt-1 flex justify-center bg-primary rounded-full">
|
||||
<Image
|
||||
src={"/yellowbird-black.svg"}
|
||||
height={10}
|
||||
width={120}
|
||||
alt="yellowbird"
|
||||
/>
|
||||
<div
|
||||
className={cn(
|
||||
isCollapsed ? "bg-background" : "bg-primary h-10 pt-1",
|
||||
"flex justify-center rounded-full"
|
||||
)}
|
||||
>
|
||||
{isCollapsed ? (
|
||||
<Image
|
||||
src={"/yellowbird-circle.svg"}
|
||||
height={40}
|
||||
width={40}
|
||||
alt="yellowbird"
|
||||
/>
|
||||
) : (
|
||||
<Image
|
||||
src={"/yellowbird-black.svg"}
|
||||
height={10}
|
||||
width={120}
|
||||
alt="yellowbird"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<Command className="pt-4 rounded-lg bg-background flex-grow">
|
||||
|
||||
{/* <Command className="pt-4 rounded-lg bg-background flex-grow">
|
||||
<CommandList className="max-h-full">
|
||||
{menuList.map((menu: any, key: number) => (
|
||||
<CommandGroup heading={!isCollapsed && menu.group} key={key}>
|
||||
@@ -112,7 +134,49 @@ function Sidebar() {
|
||||
</CommandGroup>
|
||||
))}
|
||||
</CommandList>
|
||||
</Command>
|
||||
</Command> */}
|
||||
|
||||
<div
|
||||
className={cn(
|
||||
isCollapsed ? "pt-2" : "pt-6",
|
||||
"rounded-lg bg-background flex-grow"
|
||||
)}
|
||||
>
|
||||
<div className="max-h-full">
|
||||
{menuList.map((menu: any, key: number) => (
|
||||
<>
|
||||
<div key={key} className="py-2">
|
||||
<div className="text-muted-foreground text-sm pl-1 pb-1">
|
||||
{!isCollapsed && menu.group}
|
||||
</div>
|
||||
{menu.items.map((option: any, optionKey: number) => (
|
||||
<div
|
||||
key={optionKey}
|
||||
className="flex gap-2 cursor-pointer p-2 hover:bg-neutral-700 rounded-xl"
|
||||
onClick={() => handleClick(option.link)}
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
isCollapsed ? "justify-center" : "pl-1 gap-2",
|
||||
"flex"
|
||||
)}
|
||||
>
|
||||
<div className="text-muted-foreground flex items-center">
|
||||
{option.icon}
|
||||
</div>
|
||||
{!isCollapsed && (
|
||||
<span className="text-base">{option.text}</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<hr className="border-neutral-600 last:hidden" />
|
||||
</>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Button
|
||||
variant="ghost"
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user