Skip to content

Commit

Permalink
Add default header for HSA organization
Browse files Browse the repository at this point in the history
  • Loading branch information
mannipje committed Sep 24, 2024
1 parent 9c26661 commit 552247c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,26 @@ export const rikissaksoknariHeaderGridContainerWidth = style([

export const rikissaksoknariHeaderGridContainerSubpage =
rikissaksoknariHeaderGridContainerBase

export const hsaHeaderGridContainerBase = style({
display: 'grid',
maxWidth: '1342px',
margin: '0 auto',
...themeUtils.responsiveStyle({
lg: {
gridTemplateRows: '315px',
gridTemplateColumns: '65fr 35fr',
},
}),
})

export const hsaHeaderGridContainerWidthSubpage = hsaHeaderGridContainerBase

export const hsaHeaderGridContainerWidth = style([
hsaHeaderGridContainerBase,
themeUtils.responsiveStyle({
lg: {
background: `url('https://images.ctfassets.net/8k0h54kbe6bj/uc45ywvPOYsIUEQTNfE6s/72fd0f2229407e18c6e2908fb13f51c3/Header_HSA.png') no-repeat right bottom,linear-gradient(90deg, #CCDFFF 0%, #F6F6F6 84.85%)`,
},
}),
])
11 changes: 10 additions & 1 deletion apps/web/components/Organization/Wrapper/OrganizationWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,16 @@ export const OrganizationHeader: React.FC<
/>
)
case 'hsa':
return (
return n('usingDefaultHeader', false) ? (
<DefaultHeader
{...defaultProps}
className={
isSubpage
? styles.hsaHeaderGridContainerWidthSubpage
: styles.hsaHeaderGridContainerWidth
}
/>
) : (
<HeilbrigdisstofnunAusturlandsHeader
organizationPage={organizationPage}
logoAltText={logoAltText}
Expand Down

0 comments on commit 552247c

Please sign in to comment.