File tree Expand file tree Collapse file tree
src/entities/home/ui/OrganizationWrapper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments