Skip to content

Commit c57edf9

Browse files
committed
style: improve qualitative comparison image display
- Increase image size with aspect-ratio container - Ensure consistent dimensions across both images - Use object-contain to preserve image quality - Align captions properly below images - Change to lg breakpoint for better desktop display
1 parent 0a070b7 commit c57edf9

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

src/App.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -556,26 +556,30 @@ function App() {
556556
{/* Qualitative Comparisons */}
557557
<section className="mb-20">
558558
<h2 className="font-serif text-3xl font-semibold mb-8 text-slate-900">Qualitative Comparisons</h2>
559-
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
559+
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8">
560560
{/* Real-world comparison */}
561561
<div className="bg-slate-50 rounded-2xl overflow-hidden border border-slate-200 shadow-sm">
562-
<img
563-
src={realWorldPatio}
564-
alt="Comparison on real-world data"
565-
className="w-full h-auto"
566-
/>
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>
567569
<div className="p-4 text-center">
568570
<p className="text-sm font-medium text-slate-700">Comparison on real-world data</p>
569571
</div>
570572
</div>
571573

572574
{/* Synthetic comparison */}
573575
<div className="bg-slate-50 rounded-2xl overflow-hidden border border-slate-200 shadow-sm">
574-
<img
575-
src={syntheticTrollet}
576-
alt="Comparison on synthetic data"
577-
className="w-full h-auto"
578-
/>
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>
579583
<div className="p-4 text-center">
580584
<p className="text-sm font-medium text-slate-700">Comparison on synthetic data</p>
581585
</div>

0 commit comments

Comments
 (0)