diff --git a/web/src/app/globals.css b/web/src/app/globals.css index 43ec4467..7adb08a6 100644 --- a/web/src/app/globals.css +++ b/web/src/app/globals.css @@ -183,6 +183,8 @@ --shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.1), 0px 8px 10px -1px hsl(0 0% 0% / 0.1); --shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.25); + + --magic-gradient-color: oklch(0.67 0.2 23.8 / 15%); } .dark { @@ -233,6 +235,8 @@ --shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.1), 0px 8px 10px -1px hsl(0 0% 0% / 0.1); --shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.25); + + --magic-gradient-color: oklch(0.27 0 0); } @layer base { diff --git a/web/src/app/icons/components/icon-search.tsx b/web/src/app/icons/components/icon-search.tsx index dd830605..8639a582 100644 --- a/web/src/app/icons/components/icon-search.tsx +++ b/web/src/app/icons/components/icon-search.tsx @@ -78,7 +78,7 @@ export function IconSearch({ icons }: IconSearchProps) { // Then filter by search query if (query.trim()) { // Normalization function: lowercase, remove spaces and hyphens - const normalizeString = (str: string) => str.toLowerCase().replace(/[-\s]/g, '') + const normalizeString = (str: string) => str.toLowerCase().replace(/[-\s]/g, "") const normalizedQuery = normalizeString(query) filtered = filtered.filter(({ name, data }) => { @@ -158,8 +158,6 @@ export function IconSearch({ icons }: IconSearchProps) { [pathname, router, initialSort], ) - - const handleSearch = useCallback( (query: string) => { setSearchQuery(query) @@ -409,7 +407,7 @@ export function IconSearch({ icons }: IconSearchProps) { variant="default" size="lg" onClick={() => { - setIsLazyRequestSubmitted(true); + setIsLazyRequestSubmitted(true) toast("We hear you!", { description: `Okay, okay... we'll consider adding "${searchQuery || "that icon"}" just for you. 😉`, }) @@ -418,7 +416,7 @@ export function IconSearch({ icons }: IconSearchProps) { categories: selectedCategories, }) }} - disabled={isLazyRequestSubmitted} + disabled={isLazyRequestSubmitted} > I want this icon added but I'm too lazy to add it myself diff --git a/web/src/components/carbon.tsx b/web/src/components/carbon.tsx index 74860bf4..6de1b561 100644 --- a/web/src/components/carbon.tsx +++ b/web/src/components/carbon.tsx @@ -1,15 +1,14 @@ -import React from "react" - +import { useEffect, useRef } from "react" export function Carbon() { // biome-ignore lint/style/noNonNullAssertion: - const ref = React.useRef(null!) + const ref = useRef(null!) if (process.env.NODE_ENV === "development") { return null } - React.useEffect(() => { + useEffect(() => { const serve = "CW7IP27L" - const placement = "homarrdev" + const placement = "dashboardiconscom" ref.current.innerHTML = "" const s = document.createElement("script") s.id = "_carbonads_js" @@ -21,7 +20,6 @@ export function Carbon() { <> -
+
diff --git a/web/src/components/icon-details.tsx b/web/src/components/icon-details.tsx index fc8fd791..28cda419 100644 --- a/web/src/components/icon-details.tsx +++ b/web/src/components/icon-details.tsx @@ -142,7 +142,6 @@ export function IconDetails({ icon, iconData, authorData }: IconDetailsProps) { } const renderVariant = (format: string, iconName: string, theme?: "light" | "dark") => { - const { resolvedTheme } = useTheme() const variantName = theme && iconColorVariants?.[theme] ? iconColorVariants[theme] : iconName const imageUrl = `${BASE_URL}/${format}/${variantName}.${format}` const githubUrl = `${REPO_PATH}/tree/main/${format}/${iconName}.${format}` @@ -151,7 +150,7 @@ export function IconDetails({ icon, iconData, authorData }: IconDetailsProps) { return ( - +
diff --git a/web/src/components/magicui/magic-card.tsx b/web/src/components/magicui/magic-card.tsx index bedfe8f2..990af3e7 100644 --- a/web/src/components/magicui/magic-card.tsx +++ b/web/src/components/magicui/magic-card.tsx @@ -95,7 +95,7 @@ export function MagicCard({ className="pointer-events-none absolute inset-px rounded-[inherit] opacity-0 transition-opacity duration-300 group-hover:opacity-100" style={{ background: useMotionTemplate` - radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, ${gradientColor}, transparent 100%) + radial-gradient(${gradientSize}px circle at ${mouseX}px ${mouseY}px, var(--magic-gradient-color, ${gradientColor}), transparent 100%) `, opacity: gradientOpacity, }}