Skip to content

Commit

Permalink
Mike's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyoung3 committed Mar 15, 2024
1 parent df8d90d commit e3e5513
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/node/sul-study-place/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const SulStudyPlaceCard = ({node}: { node: NodeSulStudyPlace }) => {

<div className={"card-body items-start rs-px-2 rs-py-3 "}>
<div className="leading-display text-18 pt-0 font-normal ">
<h2 className="type-3 rs-mb-1">{node.sulStudyRoomDonorName} {node.sulStudyType.name}</h2>
<h2 className="type-3 rs-mb-1">{[node.sulStudyRoomDonorName, node.sulStudyType.name].join(" ")}</h2>

<div className="leading-tight">
{node.sulStudyBranch?.suLibraryHours &&
Expand All @@ -66,7 +66,7 @@ const SulStudyPlaceCard = ({node}: { node: NodeSulStudyPlace }) => {
</Link>
</div>

{(node.sulStudyRoomNumber) &&
{node.sulStudyRoomNumber &&
<div className="relative flex flex-row items-start type-1 rs-mb-2">
<BuildingLibraryIcon className="w-24 h-24 mr-12 flex-shrink-0 "/>
<div>Room-{node.sulStudyRoomNumber}</div>
Expand Down
12 changes: 6 additions & 6 deletions src/components/node/sul-study-place/study-place-features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ interface ModalProps {
}

const StudyPlaceFeatures = ({branchHours, branchTitle, branchUrl, capacity, contactImageAlt, contactImageUrl, features, type, imagePlaceholder, headingId, roomNumber, roomDonorName, roomImageUrl, roomImageAlt}: ModalProps) => {
const ImageUrl = roomImageUrl || contactImageUrl;
const ImageAlt = roomImageAlt || contactImageAlt
const imageUrl = roomImageUrl || contactImageUrl;
const imageAlt = roomImageAlt || contactImageAlt

return (
<div
className={"bg-white flex w-full leading-display shadow-md border-0 rounded flex-row"}>
<div className="hidden md:block rs-px-3 rs-py-3 w-1/2">
{(ImageUrl) &&
{(imageUrl) &&
<div className={"overflow-hidden aspect-[16/9] relative "}>
<Image
className="object-cover object-center static"
src={buildUrl(ImageUrl).toString()}
alt={ImageAlt || ''}
src={buildUrl(imageUrl).toString()}
alt={imageAlt || ''}
fill
sizes="(max-width: 768px) 100vw, (max-width: 900px) 50vw, (max-width: 1700px) 33vw, 500px"
placeholder={imagePlaceholder ? 'blur' : 'empty'}
Expand All @@ -48,7 +48,7 @@ const StudyPlaceFeatures = ({branchHours, branchTitle, branchUrl, capacity, cont

<div className="card-body items-start rs-px-3 rs-pb-3 rs-pt-7 md:rs-pt-3 w-full">
<div className="leading-display text-18 pt-0 font-normal ">
<h2 id={headingId} className="type-3 rs-mb-1">{roomDonorName} {type}</h2>
<h2 id={headingId} className="type-3 rs-mb-1">{[roomDonorName, type].join(" ")}</h2>
<div className="leading-tight">

{branchHours &&
Expand Down

0 comments on commit e3e5513

Please sign in to comment.