diff --git a/components/figlet/FontPreview.tsx b/components/figlet/FontPreview.tsx index e2b2925..b1c36fd 100644 --- a/components/figlet/FontPreview.tsx +++ b/components/figlet/FontPreview.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { toPng } from 'html-to-image'; -import { Card } from '@/components/ui/card'; +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { Skeleton } from '@/components/ui/skeleton'; import { @@ -57,112 +57,109 @@ export function FontPreview({ text, font, isLoading, onCopy, onDownload, onShare }; return ( -
-
-
-
-

Preview

- {font && ( - - {font} - + +
+ Preview + {font && ( + + {font} + + )} +
+
+ {onCopy && ( + + )} + {onShare && ( + + )} + + {onDownload && ( + + )} +
+
+ + {/* Controls */} +
+
+
-
- {onCopy && ( - + title="Align left" + > + + + + title="Align center" + > + + + - {onDownload && ( - - )} -
+ title="Align right" + > + +
- {/* Controls */} -
-
- - - -
- -
- - - -
+
+ + +
{!isLoading && text && ( -
+
{lineCount} lines {charCount} chars @@ -207,7 +204,7 @@ export function FontPreview({ text, font, isLoading, onCopy, onDownload, onShare )}
-
+
); } diff --git a/components/figlet/FontSelector.tsx b/components/figlet/FontSelector.tsx index e964c93..52f6621 100644 --- a/components/figlet/FontSelector.tsx +++ b/components/figlet/FontSelector.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; import Fuse from 'fuse.js'; import { Input } from '@/components/ui/input'; -import { Card } from '@/components/ui/card'; +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Empty, EmptyDescription, @@ -93,22 +93,21 @@ export function FontSelector({ return ( -
-
-

Select Font

- {onRandomFont && ( - - )} -
- + + Select Font + {onRandomFont && ( + + )} + + {/* Filter Tabs */}
+
); } diff --git a/components/units/MainConverter.tsx b/components/units/MainConverter.tsx index ea715b1..102bfc3 100644 --- a/components/units/MainConverter.tsx +++ b/components/units/MainConverter.tsx @@ -120,34 +120,36 @@ export default function MainConverter() {
{/* Quick Access Row */} -
-
- -
+ + +
+ +
-
- setSelectedMeasure(value as Measure)} > - - - - {measures.map((measure) => ( - - {formatMeasureName(measure)} - - ))} - - -
-
+ + + + + {measures.map((measure) => ( + + {formatMeasureName(measure)} + + ))} + + +
+ + {/* Main Converter Card */}