From 09c8b0de38e815500f2382e34cf1dc5bfa3add92 Mon Sep 17 00:00:00 2001
From: Tyler Woods
Date: Fri, 7 Jun 2024 19:40:24 -0500
Subject: [PATCH] alternative style
---
components/Script.tsx | 5 ++++-
components/ScriptBrowser.tsx | 22 ++++++++++++++++------
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/components/Script.tsx b/components/Script.tsx
index 2503d52..1dc86cf 100644
--- a/components/Script.tsx
+++ b/components/Script.tsx
@@ -5,7 +5,7 @@ import { Suspense, useEffect, useState, useMemo } from "react";
import { extractDate } from "@/lib/time";
import { Button } from "./ui/button";
import { toast } from "sonner";
-import { Clipboard, Info, X, Code, Globe, BookOpenText, ExternalLink } from "lucide-react";
+import { Clipboard, Info, X, Code, Globe, BookOpenText, ExternalLink, Copy } from "lucide-react";
import { Separator } from "@/components/ui/separator";
import Link from "next/link";
import { Category, Script } from "@/lib/types";
@@ -419,6 +419,7 @@ function ScriptItem({
{!isMobile && item.alpineScript
? item.alpineScript
: "Copy install command"}
+
>
)}
@@ -454,6 +455,8 @@ function ScriptItem({
{!isMobile && installCommand
? installCommand
: "Copy install command"}
+
+
>
)}
diff --git a/components/ScriptBrowser.tsx b/components/ScriptBrowser.tsx
index 5f03629..7bc6f1e 100644
--- a/components/ScriptBrowser.tsx
+++ b/components/ScriptBrowser.tsx
@@ -192,19 +192,28 @@ const ScriptBrowser = ({
)}
+
{filteredLinks.map((category) => (
-
+
-
+
{category.catagoryName}{" "}
-
+
{category.expand.items.length}
{" "}
@@ -228,9 +237,9 @@ const ScriptBrowser = ({
pathname: "/scripts",
query: { id: script.title },
}}
- className={`flex cursor-pointer items-center justify-between gap-1 px-1 py-1 text-muted-foreground hover:rounded-lg hover:bg-blue-300/20 hover:bg-neutral-50 hover:dark:bg-blue-900/20 ${
+ className={`flex cursor-pointer items-center justify-between gap-1 px-1 py-1 text-muted-foreground hover:rounded-lg hover:bg-accent/60 hover:dark:bg-accent/20 ${
selectedScript === script.title
- ? "rounded-lg bg-blue-300/20 font-semibold dark:bg-blue-900/20 dark:text-white"
+ ? "rounded-lg bg-accent font-semibold dark:bg-accent/30 dark:text-white"
: ""
}`}
onClick={() => handleSelected(script.title)}
@@ -279,6 +288,7 @@ const ScriptBrowser = ({
))}
+
);
};