diff --git a/web/src/app/globals.css b/web/src/app/globals.css index 7adb08a6..c2585a38 100644 --- a/web/src/app/globals.css +++ b/web/src/app/globals.css @@ -199,7 +199,7 @@ --secondary: oklch(0.31 0.03 266.71); --secondary-foreground: oklch(0.92 0 0); --muted: oklch(0.31 0.03 266.71); - --muted-foreground: oklch(0.72 0 0); + --muted-foreground: oklch(0.78 0 0); --accent: oklch(0.34 0.06 267.59); --accent-foreground: oklch(0.88 0.06 254.13); --destructive: oklch(0.64 0.21 25.33); diff --git a/web/src/app/icons/components/icon-search.tsx b/web/src/app/icons/components/icon-search.tsx index 6b42f363..74aea094 100644 --- a/web/src/app/icons/components/icon-search.tsx +++ b/web/src/app/icons/components/icon-search.tsx @@ -277,14 +277,14 @@ export function IconSearch({ icons }: IconSearchProps) { {/* Filter dropdown */} - @@ -353,7 +353,13 @@ export function IconSearch({ icons }: IconSearchProps) { {/* Clear all button */} {(searchQuery || selectedCategories.length > 0 || sortOption !== "relevance") && ( - @@ -406,15 +412,15 @@ export function IconSearch({ icons }: IconSearchProps) {
- Need help? + Can't submit it yourself?
@@ -432,7 +438,8 @@ export function IconSearch({ icons }: IconSearchProps) { <>

- {filteredIcons.length} {filteredIcons.length === 1 ? "icon" : "icons"} found + Found {filteredIcons.length} icon + {filteredIcons.length !== 1 ? "s" : ""}.

{getSortIcon(sortOption)} diff --git a/web/src/app/icons/page.tsx b/web/src/app/icons/page.tsx index ddd06cea..b429c88d 100644 --- a/web/src/app/icons/page.tsx +++ b/web/src/app/icons/page.tsx @@ -54,7 +54,7 @@ export default async function IconsPage() { return (
-
+

Icons

diff --git a/web/src/components/command-menu.tsx b/web/src/components/command-menu.tsx index 9ec4a760..a4b06420 100644 --- a/web/src/components/command-menu.tsx +++ b/web/src/components/command-menu.tsx @@ -103,9 +103,14 @@ export function CommandMenu({ icons, open: externalOpen, onOpenChange: externalO return ( - - - No matching icons found. Try a different search term or browse all icons. + + + +
+

No matching icons found.

+

Try a different search term or browse all icons.

+
+
{filteredIcons.map(({ name, data }) => { // Find matched alias for display if available @@ -115,19 +120,25 @@ export function CommandMenu({ icons, open: externalOpen, onOpenChange: externalO : null return ( - handleSelect(name)} className="flex items-center gap-2 cursor-pointer"> -
-
- {name.substring(0, 2).toUpperCase()} + handleSelect(name)} className="flex items-center gap-3 cursor-pointer"> +
+
+ {name.substring(0, 2).toUpperCase()}
- {name.replace(/-/g, " ")} - {matchedAlias && alias: {matchedAlias}} - {!matchedAlias && data.categories && data.categories.length > 0 && ( - - {data.categories[0].replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} - - )} +
+ {name.replace(/-/g, " ")} + {matchedAlias && ( + + Alias: {matchedAlias} + + )} + {!matchedAlias && data.categories && data.categories.length > 0 && ( + + {data.categories[0].replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} + + )} +
) })} diff --git a/web/src/components/hero.tsx b/web/src/components/hero.tsx index a46fd1da..9ac3d12f 100644 --- a/web/src/components/hero.tsx +++ b/web/src/components/hero.tsx @@ -205,7 +205,7 @@ export function HeroSection({ totalIcons, stars }: { totalIcons: number; stars: />
-
+

Your definitive source for diff --git a/web/src/components/icon-details.tsx b/web/src/components/icon-details.tsx index 58e66b08..221777c7 100644 --- a/web/src/components/icon-details.tsx +++ b/web/src/components/icon-details.tsx @@ -207,6 +207,7 @@ export function IconDetails({ icon, iconData, authorData }: IconDetailsProps) { size="icon" className="h-8 w-8 rounded-lg cursor-pointer" onClick={(e) => handleDownload(e, imageUrl, `${iconName}.${format}`)} + aria-label={`Download ${iconName} in ${format} format${theme ? ` (${theme} theme)` : ""}`} > @@ -223,6 +224,7 @@ export function IconDetails({ icon, iconData, authorData }: IconDetailsProps) { size="icon" className="h-8 w-8 rounded-lg cursor-pointer" onClick={(e) => handleCopy(imageUrl, `btn-${variantKey}`, e)} + aria-label={`Copy URL for ${iconName} in ${format} format${theme ? ` (${theme} theme)` : ""}`} > {copiedVariants[`btn-${variantKey}`] ? : } @@ -234,8 +236,18 @@ export function IconDetails({ icon, iconData, authorData }: IconDetailsProps) { - @@ -252,7 +264,7 @@ export function IconDetails({ icon, iconData, authorData }: IconDetailsProps) { } return ( -
+
{/* Left Column: Icon Info and Author */}
diff --git a/web/src/components/recently-added-icons.tsx b/web/src/components/recently-added-icons.tsx index 5fd94662..576b95b5 100644 --- a/web/src/components/recently-added-icons.tsx +++ b/web/src/components/recently-added-icons.tsx @@ -30,7 +30,7 @@ export function RecentlyAddedIcons({ icons }: { icons: IconWithName[] }) { {/* Background glow */}