Skip to content

Commit 62e33cc

Browse files
committed
feat: organization wrapper
1 parent 6fb2dea commit 62e33cc

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • src/entities/home/ui/OrganizationWrapper
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import Image from "next/image";
2+
3+
interface OrganizationWrapperProps {
4+
label: string;
5+
description: string;
6+
imageSrc: string;
7+
href: string;
8+
}
9+
10+
export default function OrganizationWrapper({
11+
label,
12+
description,
13+
imageSrc,
14+
href,
15+
}: OrganizationWrapperProps) {
16+
return (
17+
<div className="w-[400px] h-[400px] mobile:h-[20%] mobile:w-[48%] flex flex-col items-center border-gray-100 border-solid rounded-xl cursor-pointer shadow-md hover:shadow-lg transition-transform duration-300 hover:scale-105 hover:translate-y-2 p-4">
18+
<a href={href} target="_blank">
19+
<Image src={imageSrc} alt="고등의회 로고" width={300} height={300} />
20+
</a>
21+
<span className="mt-2 text-body1b mobile:text-caption1b font-semibold">{label}</span>
22+
<p className="text-gray-500 text-body2r mobile:text-caption2r pb-6">{description}</p>
23+
</div>
24+
);
25+
}

0 commit comments

Comments
 (0)