|
| 1 | +"use client" |
| 2 | + |
| 3 | +import { FaRobot, FaCode, FaBrain, FaGlobe, FaTerminal, FaPuzzlePiece } from "react-icons/fa" |
| 4 | +import { |
| 5 | + FaRobot as Fa6Robot, |
| 6 | + FaCode as Fa6Code, |
| 7 | + FaBrain as Fa6Brain, |
| 8 | + FaGlobe as Fa6Globe, |
| 9 | + FaPuzzlePiece as Fa6PuzzlePiece, |
| 10 | +} from "react-icons/fa6" |
| 11 | +import { Bot, Code2, Brain, Globe, Terminal, Puzzle } from "lucide-react" |
| 12 | + |
| 13 | +export default function IconTestPage() { |
| 14 | + const iconSets = [ |
| 15 | + { |
| 16 | + title: "Font Awesome 5 (react-icons/fa) - Currently Used", |
| 17 | + description: "Icons from react-icons/fa - what we're using now", |
| 18 | + icons: [ |
| 19 | + { icon: <FaRobot className="h-6 w-6" />, label: "FaRobot" }, |
| 20 | + { icon: <FaPuzzlePiece className="h-6 w-6" />, label: "FaPuzzlePiece" }, |
| 21 | + { icon: <FaBrain className="h-6 w-6" />, label: "FaBrain" }, |
| 22 | + { icon: <FaGlobe className="h-6 w-6" />, label: "FaGlobe" }, |
| 23 | + { icon: <FaCode className="h-6 w-6" />, label: "FaCode" }, |
| 24 | + { icon: <FaTerminal className="h-6 w-6" />, label: "FaTerminal" }, |
| 25 | + ], |
| 26 | + wrapperClass: |
| 27 | + "mb-5 inline-flex items-center justify-center rounded-xl bg-gradient-to-r from-blue-500/5 to-cyan-500/5 p-2.5", |
| 28 | + innerClass: "rounded-lg bg-gradient-to-r from-blue-500/80 to-cyan-500/80 p-2.5", |
| 29 | + iconClass: "text-foreground/90", |
| 30 | + }, |
| 31 | + { |
| 32 | + title: "Font Awesome 6 (react-icons/fa6)", |
| 33 | + description: "Icons from react-icons/fa6 - newer version", |
| 34 | + icons: [ |
| 35 | + { icon: <Fa6Robot className="h-6 w-6" />, label: "Fa6Robot" }, |
| 36 | + { icon: <Fa6PuzzlePiece className="h-6 w-6" />, label: "Fa6PuzzlePiece" }, |
| 37 | + { icon: <Fa6Brain className="h-6 w-6" />, label: "Fa6Brain" }, |
| 38 | + { icon: <Fa6Globe className="h-6 w-6" />, label: "Fa6Globe" }, |
| 39 | + { icon: <Fa6Code className="h-6 w-6" />, label: "Fa6Code" }, |
| 40 | + ], |
| 41 | + wrapperClass: |
| 42 | + "mb-5 inline-flex items-center justify-center rounded-xl bg-gradient-to-r from-blue-500/5 to-cyan-500/5 p-2.5", |
| 43 | + innerClass: "rounded-lg bg-gradient-to-r from-blue-500/80 to-cyan-500/80 p-2.5", |
| 44 | + iconClass: "text-foreground/90", |
| 45 | + }, |
| 46 | + { |
| 47 | + title: "Lucide React Icons", |
| 48 | + description: "Alternative icons from lucide-react", |
| 49 | + icons: [ |
| 50 | + { icon: <Bot className="h-6 w-6" />, label: "Bot" }, |
| 51 | + { icon: <Puzzle className="h-6 w-6" />, label: "Puzzle" }, |
| 52 | + { icon: <Brain className="h-6 w-6" />, label: "Brain" }, |
| 53 | + { icon: <Globe className="h-6 w-6" />, label: "Globe" }, |
| 54 | + { icon: <Code2 className="h-6 w-6" />, label: "Code2" }, |
| 55 | + { icon: <Terminal className="h-6 w-6" />, label: "Terminal" }, |
| 56 | + ], |
| 57 | + wrapperClass: |
| 58 | + "mb-5 inline-flex items-center justify-center rounded-xl bg-gradient-to-r from-blue-500/5 to-cyan-500/5 p-2.5", |
| 59 | + innerClass: "rounded-lg bg-gradient-to-r from-blue-500/80 to-cyan-500/80 p-2.5", |
| 60 | + iconClass: "text-foreground/90", |
| 61 | + }, |
| 62 | + { |
| 63 | + title: "Raw Icons Comparison (No Styling)", |
| 64 | + description: "All icon sets without wrapper styling", |
| 65 | + icons: [ |
| 66 | + { icon: <FaRobot className="h-8 w-8" />, label: "FA5 Robot" }, |
| 67 | + { icon: <Fa6Robot className="h-8 w-8" />, label: "FA6 Robot" }, |
| 68 | + { icon: <Bot className="h-8 w-8" />, label: "Lucide Bot" }, |
| 69 | + { icon: <FaPuzzlePiece className="h-8 w-8" />, label: "FA5 Puzzle" }, |
| 70 | + { icon: <Fa6PuzzlePiece className="h-8 w-8" />, label: "FA6 Puzzle" }, |
| 71 | + { icon: <Puzzle className="h-8 w-8" />, label: "Lucide Puzzle" }, |
| 72 | + ], |
| 73 | + wrapperClass: "", |
| 74 | + innerClass: "", |
| 75 | + iconClass: "", |
| 76 | + }, |
| 77 | + ] |
| 78 | + |
| 79 | + return ( |
| 80 | + <div className="min-h-screen bg-background p-8"> |
| 81 | + <div className="mx-auto max-w-7xl"> |
| 82 | + <h1 className="mb-8 text-3xl font-bold">Icon Library Comparison</h1> |
| 83 | + |
| 84 | + <div className="mb-8 rounded-lg bg-muted p-4"> |
| 85 | + <p className="text-sm mb-2"> |
| 86 | + <strong>Current Setup:</strong> React Icons v5.5.0 (from package.json) |
| 87 | + </p> |
| 88 | + <p className="text-sm mb-2"> |
| 89 | + This page compares different icon libraries to identify which ones match the production site. |
| 90 | + </p> |
| 91 | + <p className="text-sm"> |
| 92 | + The production site at https://roocode.com might be using a different icon set or version. |
| 93 | + </p> |
| 94 | + </div> |
| 95 | + |
| 96 | + {iconSets.map((set, setIndex) => ( |
| 97 | + <div key={setIndex} className="mb-12 border-b border-border pb-8"> |
| 98 | + <h2 className="mb-2 text-xl font-semibold">{set.title}</h2> |
| 99 | + <p className="mb-6 text-sm text-muted-foreground">{set.description}</p> |
| 100 | + |
| 101 | + <div className="grid grid-cols-3 gap-8 md:grid-cols-6"> |
| 102 | + {set.icons.map((item, index) => ( |
| 103 | + <div key={index} className="text-center"> |
| 104 | + {set.wrapperClass ? ( |
| 105 | + <div className={set.wrapperClass}> |
| 106 | + <div className={set.innerClass}> |
| 107 | + <div className={set.iconClass}>{item.icon}</div> |
| 108 | + </div> |
| 109 | + </div> |
| 110 | + ) : ( |
| 111 | + <div className="mb-5 inline-flex items-center justify-center p-4"> |
| 112 | + {item.icon} |
| 113 | + </div> |
| 114 | + )} |
| 115 | + <p className="text-xs font-medium">{item.label}</p> |
| 116 | + </div> |
| 117 | + ))} |
| 118 | + </div> |
| 119 | + </div> |
| 120 | + ))} |
| 121 | + |
| 122 | + <div className="mt-12 space-y-4 rounded-lg bg-muted p-6"> |
| 123 | + <h3 className="text-lg font-semibold">Visual Differences to Look For:</h3> |
| 124 | + <ul className="space-y-2 text-sm list-disc list-inside"> |
| 125 | + <li>Font Awesome 5 vs 6: FA6 icons often have slightly different designs and weights</li> |
| 126 | + <li>Lucide icons: Generally have a more consistent stroke width and modern design</li> |
| 127 | + <li>The robot icon in FA5 vs FA6 has notable differences in design</li> |
| 128 | + <li>The puzzle piece icon also varies between versions</li> |
| 129 | + </ul> |
| 130 | + </div> |
| 131 | + |
| 132 | + <div className="mt-8 flex gap-4"> |
| 133 | + <a href="/" className="rounded-lg bg-primary px-4 py-2 text-primary-foreground"> |
| 134 | + Go to Homepage |
| 135 | + </a> |
| 136 | + <a href="/roomote-control" className="rounded-lg bg-primary px-4 py-2 text-primary-foreground"> |
| 137 | + Go to Roomote Control |
| 138 | + </a> |
| 139 | + <a |
| 140 | + href="https://roocode.com" |
| 141 | + target="_blank" |
| 142 | + rel="noopener noreferrer" |
| 143 | + className="rounded-lg bg-secondary px-4 py-2 text-secondary-foreground"> |
| 144 | + View Production Site |
| 145 | + </a> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | + </div> |
| 149 | + ) |
| 150 | +} |
0 commit comments