Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified frontends/mit-open/public/images/unit_banners/see.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontends/mit-open/public/images/unit_banners/xpro.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions frontends/ol-components/src/components/BannerPage/BannerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ interface ImgProps {
alt?: string
}

/**
* Prefer direct use of `BannerPage` component.
*/
const BannerContainer = styled.div`
const BannerOverlayGradient = styled.div`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background-color: rgba(0 0 0 / 30%);
`
/**
* Prefer direct use of `BannerPage` component.
*/
const BannerContainer = styled(BannerOverlayGradient)`
z-index: -2;
`

const imageStylesheet = `
Expand Down Expand Up @@ -109,6 +113,7 @@ const BannerPage: React.FC<BannerPageProps> = ({
return (
<BannerPageWrapper className={className}>
<BannerPageHeaderFlex className={bannerContainerClass}>
<BannerOverlayGradient></BannerOverlayGradient>
<BannerContainer>
{!omitBackground && <BannerImage src={src} alt={alt} />}
</BannerContainer>
Expand Down