Skip to content

Commit

Permalink
[Header Image][m]: adds extra space between title and description -- …
Browse files Browse the repository at this point in the history
…refs #105
  • Loading branch information
demenech committed Sep 15, 2022
1 parent 70ad73f commit 9dee544
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions components/_shared/image_header/ImageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,16 @@ const ImageHeader: React.FC<ImageHeaderProps> = ({
w-[calc(100%+5rem)] xl:w-[calc(100%+10rem)]
`}
>
<div className="pt-[3rem] flex flex-col h-full">
<Title icon={icon} color={color}>
{title}
</Title>
<p className="mb-8 w-full 2xl:w-[85%] text-[#7C7C7C] line-clamp-5 ">
{children}
</p>
<div className="mb-8">
<div className="pt-[3rem] flex flex-col h-full justify-between">
<div className="h-[13em]">
<Title icon={icon} color={color}>
{title}
</Title>
<p className="w-full 2xl:w-[85%] text-[#7C7C7C] line-clamp-5 ">
{children}
</p>
</div>
<div className="pb-[3rem]">
<Badge text={badgeText} />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/_shared/image_header/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Title: React.FC<any> = ({ icon, color, children }) => {
return (
<>
<h1
className="text-2xl sm:text-3xl font-avenir font-extrabold flex mb-6 h-[2em]"
className="text-2xl sm:text-3xl font-avenir font-extrabold flex mb-6"
style={{ color: color || '#22B373' }}
>
{icon?.url && (
Expand Down

0 comments on commit 9dee544

Please sign in to comment.