diff --git a/apps/shelter-web/src/app/shared/components/shelter/shelterCard.tsx b/apps/shelter-web/src/app/shared/components/shelter/shelterCard.tsx index 30277d086..7e7e3e18f 100644 --- a/apps/shelter-web/src/app/shared/components/shelter/shelterCard.tsx +++ b/apps/shelter-web/src/app/shared/components/shelter/shelterCard.tsx @@ -1,5 +1,6 @@ import { LocationIcon } from '@monorepo/react/icons'; import { useNavigate } from 'react-router-dom'; +import { mergeCss } from '../../utils/styles/mergeCss'; import { TLatLng } from '../map/types.maps'; import { DistanceAway } from './distanceAway'; @@ -27,17 +28,32 @@ export function ShelterCard(props: TShelterCard) { const { shelter: { id, name, heroImage, distanceInMiles, location }, originCoordinates, - className = '', + className, } = props; const navigate = useNavigate(); const formattedAddress = location?.place.replace(/, USA$/, ''); + const parentCss = [ + 'flex', + 'flex-col', + 'md:flex-row', + 'cursor-pointer', + className, + ]; + + const heroCss = ['md:w-96', 'md:mr-4']; + + const contentCss = ['mt-4']; + return ( -
+
navigate(`/shelter/${id}`)} + > {heroImage && ( -
navigate(`/shelter/${id}`)} className="mb-4"> +
{`hero )} -
- {name} -
+
+
+ {name} +
- {formattedAddress && ( -
- + {formattedAddress && ( +
+ -
- {formattedAddress} +
+ {formattedAddress} - `(${distance} away)`} - /> + `(${distance} away)`} + /> +
-
- )} + )} +
); }