diff --git a/src/app/components/common/Button.tsx b/src/app/components/common/Button.tsx index 7386ccb..df30203 100644 --- a/src/app/components/common/Button.tsx +++ b/src/app/components/common/Button.tsx @@ -3,7 +3,7 @@ import { ComponentProps } from "react"; import Link from "next/link"; const buttonStyles = cva( - "flex items-center justify-center px-4 py-2 rounded-full font-medium focus:outline-none focus:ring-2 focus:ring-offset-white dark:focus:ring-offset-black focus:ring-offset-1 disabled:opacity-60 disabled:pointer-events-none hover:bg-opacity-80", + "flex items-center justify-center px-4 py-2 rounded-md font-medium focus:outline-none focus:ring-2 focus:ring-offset-white dark:focus:ring-offset-black focus:ring-offset-1 disabled:opacity-60 disabled:pointer-events-none hover:bg-opacity-80", { variants: { intent: { diff --git a/src/app/components/common/ToolList.tsx b/src/app/components/common/ToolList.tsx index 6aef38d..6bbe454 100644 --- a/src/app/components/common/ToolList.tsx +++ b/src/app/components/common/ToolList.tsx @@ -1,107 +1,173 @@ "use client"; -import React from "react"; +import React, { ReactNode, useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { SignedIn, SignedOut, UserButton } from "@clerk/nextjs"; import { Button } from "@/app/components/common/Button"; -import { StarIcon } from "@heroicons/react/24/outline"; +import { + StarIcon, + ArrowLeftIcon, + ListBulletIcon, + UserCircleIcon, +} from "@heroicons/react/24/outline"; export type ToolOption = { name: string; + shortenedName: string; path: string; }; + export const toolList: ToolOption[] = [ { name: "Diff Viewer", + shortenedName: "Diff View", path: "/tools/diff-viewer", }, { name: "JSON Validator", + shortenedName: "JSON Valid", path: "/tools/json-validator", }, { name: "Clipboard Formatter", + shortenedName: "Clip For", path: "/tools/clipboard-formatter", }, { name: "String Converter", + shortenedName: "Str Conv", path: "/tools/string-converter", }, { - name: "Character/Word Counter", + name: "Character Counter", + shortenedName: "Char Count", path: "/tools/character-and-word-counter", }, { name: "Unix Time Converter", + shortenedName: "Unix Conv", path: "/tools/unix-time-converter", }, { name: "Base64 Encoder", + shortenedName: "B64 En", path: "/tools/base64encoder", }, { name: "Base64 Image Encoder", + shortenedName: "B64 Im En", path: "/tools/base64imageencoder", }, { name: "Url Parser", + shortenedName: "Url Par", path: "/tools/url-parser", }, { name: "Url Encoder", + shortenedName: "Url En", path: "/tools/url-encoder", }, { name: "Url Decoder", + shortenedName: "Url De", path: "/tools/url-decoder", }, { name: "Color Converter", + shortenedName: "Color Conv", path: "/tools/color-converter", }, { name: "Hash Generator", + shortenedName: "Hash Gen", path: "/tools/hash-generator", }, { name: "Line Sort And Dedupe", + shortenedName: "Line Sort", path: "/tools/line-sort-and-dedupe", }, { name: "Regex Checker", + shortenedName: "Regex Che", path: "/tools/regex-checker", }, { name: "Markdown Editor", + shortenedName: "Mark Edit", path: "/tools/markdown-editor", }, { name: "QRCode Generator", + shortenedName: "QRCode Gen", path: "/tools/qrcode-generator", }, { name: "ASCII Converter", + shortenedName: "ASCII Conv", path: "/tools/ascii-converter", }, { name: "CSS Unit Converter", + shortenedName: "CSS Conv", path: "/tools/css-unit-converter", }, { name: "UUID Generator", + shortenedName: "UUID Gen", path: "/tools/uuid-generator", }, { name: "JWT Viewer", + shortenedName: "JWT View", path: "/tools/jwt-viewer", }, ]; +const Tooltip = ({ text, children }: { text: string; children: ReactNode }) => { + return ( +
{" "} You only have to create an account if you want to upgrade to DevToolbox Pro which saves your history so you can keep track of all the actions you have done.
-{toolOption.name}
+ {collapsed ? ( +{toolOption.shortenedName}
+{toolOption.name}
+ )} ))}