Skip to content

Commit

Permalink
Merge pull request #51 from jrTilak/feat/new-methods-added
Browse files Browse the repository at this point in the history
Feat/new methods added
  • Loading branch information
Tilak Thapa authored Apr 26, 2024
2 parents 42c981f + 45e2e52 commit ac50ffc
Show file tree
Hide file tree
Showing 28 changed files with 735 additions and 92 deletions.
2 changes: 1 addition & 1 deletion src/www/src/app/(pages)/docs/_components/prev-next.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const PrevNext = () => {
(link) => link.url === pathname
);
return (
<div className="w-full flex justify-between items-center gap-4 mt-4 md:mt-6">
<div className="w-full flex justify-between items-center gap-4 mt-4 md:mt-6 mb-12 md:mb-32">
{indexOfCurrentPage > 0 ? (
<Button
variant="secondary"
Expand Down
25 changes: 22 additions & 3 deletions src/www/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,34 @@
@apply bg-background text-foreground;
}

/* Scrollbar Styles */
/* hide scrollbar */
*::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}

/* decrease the width and style of default scrollbar */
.scrollbar-md::-webkit-scrollbar {
@apply !w-2;
}

.scrollbar-md::-webkit-scrollbar-thumb {
@apply bg-neutral-200 dark:bg-neutral-600;
}
/* decrease the width and style of default scrollbar */
.scrollbar-sm::-webkit-scrollbar {
@apply !w-1 !rounded-md;
}

.scrollbar-sm::-webkit-scrollbar-thumb {
@apply bg-neutral-200 dark:bg-neutral-600;
}

/* default font */
Expand Down
4 changes: 2 additions & 2 deletions src/www/src/components/reusable/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Image from "next/image";
const Sidebar = () => {
return (
<aside className="shadow-lg h-full">
<ScrollArea className="h-full w-full p-6 pl-8">
<div className="h-[calc(100vh-100px)] w-full p-6 pl-8 scrollbar-sm overflow-x-hidden overflow-y-auto">
<Link href="/" className="lg:hidden gap-3 items-center flex">
<Image src="/logo.svg" alt="logo" width={60} height={24} />
<h2 className="text-sm">{META_DATA.title as string}</h2>
Expand Down Expand Up @@ -66,7 +66,7 @@ const Sidebar = () => {
</Accordion>
);
})}
</ScrollArea>
</div>
</aside>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/www/src/components/reusable/top-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Image from "next/image";
import Link from "next/link";
import ToggleSidebarButton from "./toggle-sidebar-button";
import types from "@/configs/types.json";
import SearchPopup from "./SearchPopup";
import SearchPopup from "./search-popup";
import { GITHUB_INFO, TWITTER_INFO } from "@/data/info";
import githubIcon from "@/assets/icons/github-142-svgrepo-com.svg";
import X from "@/assets/icons/x.svg";
Expand Down
28 changes: 22 additions & 6 deletions src/www/src/configs/nav-links.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
"label": "chunk",
"url": "/docs/functions/arrays/chunk"
},
{
"label": "unique",
"url": "/docs/functions/arrays/unique"
},
{
"label": "compact",
"url": "/docs/functions/arrays/compact"
Expand All @@ -47,6 +43,22 @@
"label": "insert",
"url": "/docs/functions/arrays/insert"
},
{
"label": "partition",
"url": "/docs/functions/arrays/partition"
},
{
"label": "remove",
"url": "/docs/functions/arrays/remove"
},
{
"label": "rotate",
"url": "/docs/functions/arrays/rotate"
},
{
"label": "sampleArr",
"url": "/docs/functions/arrays/sampleArr"
},
{
"label": "search",
"url": "/docs/functions/arrays/search"
Expand All @@ -56,8 +68,12 @@
"url": "/docs/functions/arrays/shuffleArr"
},
{
"label": "sampleArr",
"url": "/docs/functions/arrays/sampleArr"
"label": "unique",
"url": "/docs/functions/arrays/unique"
},
{
"label": "zip",
"url": "/docs/functions/arrays/zip"
}
]
},
Expand Down
28 changes: 22 additions & 6 deletions src/www/src/configs/prev-next-button-links.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
"label": "chunk",
"url": "/docs/functions/arrays/chunk"
},
{
"label": "unique",
"url": "/docs/functions/arrays/unique"
},
{
"label": "compact",
"url": "/docs/functions/arrays/compact"
Expand All @@ -39,6 +35,22 @@
"label": "insert",
"url": "/docs/functions/arrays/insert"
},
{
"label": "partition",
"url": "/docs/functions/arrays/partition"
},
{
"label": "remove",
"url": "/docs/functions/arrays/remove"
},
{
"label": "rotate",
"url": "/docs/functions/arrays/rotate"
},
{
"label": "sampleArr",
"url": "/docs/functions/arrays/sampleArr"
},
{
"label": "search",
"url": "/docs/functions/arrays/search"
Expand All @@ -48,8 +60,12 @@
"url": "/docs/functions/arrays/shuffleArr"
},
{
"label": "sampleArr",
"url": "/docs/functions/arrays/sampleArr"
"label": "unique",
"url": "/docs/functions/arrays/unique"
},
{
"label": "zip",
"url": "/docs/functions/arrays/zip"
},
{
"label": "retry",
Expand Down
Loading

0 comments on commit ac50ffc

Please sign in to comment.