Skip to content

Commit d4ea416

Browse files
committed
style: maximize comparison image display
- Remove background container and borders - Display images at full size with minimal padding - Keep simple rounded corners and shadow - Reduce whitespace for better visual impact - Show images at their original aspect ratio
1 parent c57edf9 commit d4ea416

1 file changed

Lines changed: 14 additions & 22 deletions

File tree

src/App.tsx

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -558,31 +558,23 @@ function App() {
558558
<h2 className="font-serif text-3xl font-semibold mb-8 text-slate-900">Qualitative Comparisons</h2>
559559
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8">
560560
{/* Real-world comparison */}
561-
<div className="bg-slate-50 rounded-2xl overflow-hidden border border-slate-200 shadow-sm">
562-
<div className="aspect-[4/3] overflow-hidden">
563-
<img
564-
src={realWorldPatio}
565-
alt="Comparison on real-world data"
566-
className="w-full h-full object-contain"
567-
/>
568-
</div>
569-
<div className="p-4 text-center">
570-
<p className="text-sm font-medium text-slate-700">Comparison on real-world data</p>
571-
</div>
561+
<div>
562+
<img
563+
src={realWorldPatio}
564+
alt="Comparison on real-world data"
565+
className="w-full h-auto rounded-lg shadow-md"
566+
/>
567+
<p className="text-sm font-medium text-slate-700 text-center mt-3">Comparison on real-world data</p>
572568
</div>
573569

574570
{/* Synthetic comparison */}
575-
<div className="bg-slate-50 rounded-2xl overflow-hidden border border-slate-200 shadow-sm">
576-
<div className="aspect-[4/3] overflow-hidden">
577-
<img
578-
src={syntheticTrollet}
579-
alt="Comparison on synthetic data"
580-
className="w-full h-full object-contain"
581-
/>
582-
</div>
583-
<div className="p-4 text-center">
584-
<p className="text-sm font-medium text-slate-700">Comparison on synthetic data</p>
585-
</div>
571+
<div>
572+
<img
573+
src={syntheticTrollet}
574+
alt="Comparison on synthetic data"
575+
className="w-full h-auto rounded-lg shadow-md"
576+
/>
577+
<p className="text-sm font-medium text-slate-700 text-center mt-3">Comparison on synthetic data</p>
586578
</div>
587579
</div>
588580
</section>

0 commit comments

Comments
 (0)