mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Add mroe card suggestions and simplify color selection for suggestion cards
This commit is contained in:
@@ -38,7 +38,7 @@ export function convertToBGClass(color: string) {
|
||||
return `bg-background`;
|
||||
}
|
||||
|
||||
export function convertSuggestionColorToTextClass(color: string) {
|
||||
export function converColorToBgGradient(color: string) {
|
||||
return `${convertToBGGradientClass(color)} dark:border dark:border-neutral-700`;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,10 @@ import {
|
||||
Globe,
|
||||
Palette,
|
||||
LinkBreak,
|
||||
Book,
|
||||
Confetti,
|
||||
House,
|
||||
Translate,
|
||||
} from "@phosphor-icons/react";
|
||||
|
||||
interface IconMap {
|
||||
@@ -40,6 +44,10 @@ const iconMap: IconMap = {
|
||||
ClockCounterClockwise: (color: string, width: string, height: string) => <ClockCounterClockwise className={`${width} ${height} ${color} mr-2`} />,
|
||||
Globe: (color: string, width: string, height: string) => <Globe className={`${width} ${height} ${color} mr-2`} />,
|
||||
Palette: (color: string, width: string, height: string) => <Palette className={`${width} ${height} ${color} mr-2`} />,
|
||||
Book: (color: string, width: string, height: string) => <Book className={`${width} ${height} ${color} mr-2`} />,
|
||||
Confetti: (color: string, width: string, height: string) => <Confetti className={`${width} ${height} ${color} mr-2`} />,
|
||||
House: (color: string, width: string, height: string) => <House className={`${width} ${height} ${color} mr-2`} />,
|
||||
Translate: (color: string, width: string, height: string) => <Translate className={`${width} ${height} ${color} mr-2`} />,
|
||||
};
|
||||
|
||||
function getIconFromIconName(iconName: string, color: string = 'gray', width: string = 'w-6', height: string = 'h-6') {
|
||||
|
||||
Reference in New Issue
Block a user