Skip to content

Commit bbb06ec

Browse files
committed
Added more photos.
1 parent 5cf2c8b commit bbb06ec

9 files changed

+43
-17
lines changed

app/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function Home() {
88
<h2 className="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">About</h2>
99
</div>
1010
<p className="text-left pb-3 text-gray-800">We are interested in conducting clinical epidemiology and health services research using big data, ranging from administrative claims database from public and private payers to electronic health records (EHR) from multiple U.S. hospital systems.</p>
11-
<div className="flex justify-center">
11+
<div className="w-full flex justify-center">
1212
<PhotosComp photosData={ photosData } />
1313
</div>
1414
</>

components/Photos.tsx

+14-14
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,34 @@ interface PhotosProps {
2222

2323
export default function PhotosComp({ photosData }: PhotosProps) {
2424
const plugin = React.useRef(
25-
Autoplay({ delay: 2000, stopOnInteraction: true })
25+
Autoplay({ delay: 3000, stopOnInteraction: true })
2626
)
2727

2828
return (
2929
<Carousel
3030
plugins={[plugin.current]}
31-
className="w-full max-w-3xl"
31+
className="w-full"
3232
onMouseEnter={plugin.current.stop}
3333
onMouseLeave={plugin.current.reset}
3434
>
3535
<CarouselContent>
3636
{photosData.map((photo, index) => (
3737
<CarouselItem key={index}>
38-
<div className="p-1">
39-
<Card>
40-
<CardContent className="flex aspect-square items-center justify-center p-6">
41-
<Image className="self-center flex-shrink-0 -mt-12 bg-center bg-cover bg-gray-500 fill shadow-md" src={photo.imageUrl} alt="" />
42-
</CardContent>
43-
<CardFooter className="flex justify-center">
44-
<p>{photo.description}</p>
45-
</CardFooter>
46-
</Card>
47-
</div>
38+
<Card className="w-full">
39+
<CardContent className="relative w-full h-[50vh] mb-4 mt-4">
40+
<Image className="object-contain object-center" src={photo.imageUrl} fill alt="" />
41+
</CardContent>
42+
<CardFooter className="grid grid-cols-3 items-center text-center">
43+
<div />
44+
<p className="text-center">{photo.description}</p>
45+
<div className="justify-self-end">{index + 1} of {photosData.length}</div>
46+
</CardFooter>
47+
</Card>
4848
</CarouselItem>
4949
))}
5050
</CarouselContent>
51-
<CarouselPrevious />
52-
<CarouselNext />
51+
<CarouselPrevious className="absolute left-4 top-1/2 -translate-y-1/2" />
52+
<CarouselNext className="absolute right-4 top-1/2 -translate-y-1/2" />
5353
</Carousel>
5454
);
5555
}

lib/photos.ts

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
1-
import lab_photo_1 from "@/public/lab_photo_1.jpg";
1+
import ash_2023 from "@/public/ash_2023.jpg";
2+
import asco_award_2024 from "@/public/asco_award_2024.jpg";
3+
import icthic_2024 from "@/public/icthic_2024.jpg";
4+
import rice_ai_in_health_conf_2024 from "@/public/rice_ai_in_health_conf_2024.jpg";
5+
import ash_2024 from "@/public/ash_2024.jpg";
6+
import htrs_2025 from "@/public/htrs_2025.jpeg";
7+
28

39
export const photosData = [
10+
{
11+
description: "ASH 2023 Conference",
12+
imageUrl: ash_2023,
13+
},
14+
{
15+
description: "Dr. Li Receiving ASCO Career Development Award",
16+
imageUrl: asco_award_2024,
17+
},
18+
{
19+
description: "Dr. Li Presenting at ICTHIC 2024",
20+
imageUrl: icthic_2024,
21+
},
22+
{
23+
description: "2024 AI in Health Conference",
24+
imageUrl: rice_ai_in_health_conf_2024,
25+
},
426
{
527
description: "ASH 2024 Conference",
6-
imageUrl: lab_photo_1,
28+
imageUrl: ash_2024,
29+
},
30+
{
31+
description: "Mrinal Presenting Poster at HTRS 2025",
32+
imageUrl: htrs_2025,
733
},
834
];

public/asco_award_2024.jpg

2.72 MB
Loading
File renamed without changes.

public/ash_2024.jpg

435 KB
Loading

public/htrs_2025.jpeg

80.3 KB
Loading

public/icthic_2024.jpg

1.3 MB
Loading
7.65 MB
Loading

0 commit comments

Comments
 (0)