fix(format): apply Biome formatting to homepage and tool-search page
This commit is contained in:
parent
f3af742207
commit
e1ac973b2a
2 changed files with 13 additions and 10 deletions
|
|
@ -56,7 +56,8 @@ export default function HomePage(): React.ReactElement {
|
|||
Discover AI Tools
|
||||
</h2>
|
||||
<p className="text-lg text-foreground-secondary max-w-2xl mx-auto mb-8">
|
||||
Browse our collection of AI-ready tools. Search, filter, and integrate the perfect tools for your AI agents.
|
||||
Browse our collection of AI-ready tools. Search, filter, and integrate the perfect
|
||||
tools for your AI agents.
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
|
||||
<Link href="/tool/tool-search">
|
||||
|
|
@ -78,7 +79,8 @@ export default function HomePage(): React.ReactElement {
|
|||
<div className="text-4xl mb-4">🔍</div>
|
||||
<h3 className="text-xl font-semibold mb-2 text-foreground">Smart Search</h3>
|
||||
<p className="text-foreground-secondary">
|
||||
Find tools by name, category, tags, or functionality. Advanced filters help you discover exactly what you need.
|
||||
Find tools by name, category, tags, or functionality. Advanced filters help you
|
||||
discover exactly what you need.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
@ -86,7 +88,8 @@ export default function HomePage(): React.ReactElement {
|
|||
<div className="text-4xl mb-4">⚡</div>
|
||||
<h3 className="text-xl font-semibold mb-2 text-foreground">Quality Metrics</h3>
|
||||
<p className="text-foreground-secondary">
|
||||
Every tool includes quality scores, download stats, and community feedback to help you choose wisely.
|
||||
Every tool includes quality scores, download stats, and community feedback to help
|
||||
you choose wisely.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
@ -94,7 +97,8 @@ export default function HomePage(): React.ReactElement {
|
|||
<div className="text-4xl mb-4">🤖</div>
|
||||
<h3 className="text-xl font-semibold mb-2 text-foreground">AI Agent Ready</h3>
|
||||
<p className="text-foreground-secondary">
|
||||
All tools include AI agent integration guides, parameter specs, and usage examples.
|
||||
All tools include AI agent integration guides, parameter specs, and usage
|
||||
examples.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -107,11 +107,10 @@ export default function ToolSearchPage(): React.ReactElement {
|
|||
}, [searchQuery, activeTab, categoryFilter]);
|
||||
|
||||
// Filter tools by selected tags (client-side)
|
||||
const displayedTools = selectedTags.length > 0
|
||||
? tools.filter((tool) =>
|
||||
selectedTags.some((tag) => tool.tags.includes(tag))
|
||||
)
|
||||
: tools;
|
||||
const displayedTools =
|
||||
selectedTags.length > 0
|
||||
? tools.filter((tool) => selectedTags.some((tag) => tool.tags.includes(tag)))
|
||||
: tools;
|
||||
|
||||
return createElement('div', { className: 'min-h-screen bg-background' }, [
|
||||
// Header
|
||||
|
|
@ -195,7 +194,7 @@ export default function ToolSearchPage(): React.ReactElement {
|
|||
),
|
||||
|
||||
// Clear filters button
|
||||
(categoryFilter !== 'all' || selectedTags.length > 0)
|
||||
categoryFilter !== 'all' || selectedTags.length > 0
|
||||
? createElement(
|
||||
Button,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue