1+ import Image from "next/image" ;
2+
13const PreviewSection = ( ) => {
24 return (
35 < section className = "relative z-10 mt-16 w-full mb-5" >
@@ -16,45 +18,39 @@ const PreviewSection = () => {
1618 </ div >
1719
1820 < div className = "grid gap-6 sm:grid-cols-2" >
19- < div className = "flex flex-col gap-4 rounded-2xl border border-slate-200 bg-zinc-50/80 p-5 dark:border-neutral-800 dark:bg-neutral-900/50 " >
20- < div className = "aspect-[4/3] w-full rounded-2xl bg-gradient-to-br from-emerald-100 to-white ring-1 ring-emerald-200 dark:from-violet-900 /30 dark:to-purple-900/60 dark:ring-violet-500/40 " >
21- < div className = "flex h-full flex-col items-center justify-center gap-2 text-slate-500 dark:text-neutral-400 " >
22- < span className = "text-lg font-semibold text-slate-600 dark:text-neutral-100" >
23- Input Placeholder
24- </ span >
25- < span className = "text-xs uppercase tracking-[0.3em]" >
26- PNG / JPG
27- </ span >
21+ < div className = "flex flex-col gap-4 rounded-2xl border border-slate-200 p-5 dark:border-neutral-800" >
22+ < div className = "relative aspect-[4/3] w-full rounded-2xl shadow-inner shadow-black /30" >
23+ < div className = "flex h-full flex-col items-center justify-center gap-2" >
24+ < Image
25+ src = "/input.jpg"
26+ alt = "Input Preview"
27+ fill
28+ className = "object-contain"
29+ / >
2830 </ div >
2931 </ div >
30- < div className = "space-y-1 text-sm text-slate-600 dark:text-neutral-400" >
32+ < div className = "flex align-center justify-center space-y-1 text-sm text-slate-600 dark:text-neutral-400" >
3133 < p className = "font-semibold text-slate-900 dark:text-neutral-100" >
32- Raster Image
33- </ p >
34- < p className = "text-xs text-slate-500 dark:text-neutral-500" >
35- This area will show the file you upload before conversion.
34+ PNG Image
3635 </ p >
3736 </ div >
3837 </ div >
3938
40- < div className = "flex flex-col gap-4 rounded-2xl border border-slate-200 bg-white/80 p-5 dark:border-neutral-800 dark:bg-neutral-900/60 " >
41- < div className = "aspect-[4/3] w-full rounded-2xl bg-gradient-to-br from-slate-900 to-zinc-900 shadow-inner shadow-black/30" >
42- < div className = "flex h-full flex-col items-center justify-center gap-2 text-emerald-400 " >
43- < span className = "text-lg font-semibold" >
44- Output Placeholder
45- </ span >
46- < span className = "text-xs uppercase tracking-[0.3em]" >
47- SVG Vector
48- </ span >
39+ < div className = "flex flex-col gap-4 rounded-2xl border border-slate-200 p-5 dark:border-neutral-800" >
40+ < div className = "relative aspect-[4/3] w-full rounded-2xl shadow-inner shadow-black/30" >
41+ < div className = "flex h-full flex-col items-center justify-center gap-2" >
42+ < Image
43+ src = "/output.svg"
44+ alt = "Output Preview"
45+ fill
46+ className = "object-contain"
47+ / >
4948 </ div >
5049 </ div >
51- < div className = "space-y-1 text-sm text-slate-600 dark:text-neutral-400" >
50+ < div className = "flex align-center justify-center space-y-1 text-sm text-slate-600 dark:text-neutral-400" >
5251 < p className = "font-semibold text-slate-900 dark:text-neutral-100" >
5352 Editable SVG
5453 </ p >
55- < p className = "text-xs text-slate-500 dark:text-neutral-500" >
56- The converted vector will appear here with clean paths.
57- </ p >
5854 </ div >
5955 </ div >
6056 </ div >
0 commit comments