Skip to content

Commit

Permalink
feat(eo-page-view): add aside slot
Browse files Browse the repository at this point in the history
  • Loading branch information
weareoutman committed Sep 3, 2024
1 parent f2f344a commit b7f131b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 19 deletions.
41 changes: 23 additions & 18 deletions bricks/containers/src/page-view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,28 +107,33 @@ export function EoPageViewComponent({

return (
<>
<div className="header">
<slot name="header" />
</div>
<div className="main">
<div className="sidebar">
<slot name="sidebar" />
</div>
<div className="sub-sidebar">
<slot name="subSidebar" />
<div className="header-and-main">
<div className="header">
<slot name="header" />
</div>
<div className="content">
<slot />
<div
className={classNames("footer", { pinned: footerPinned })}
ref={footerRef}
>
<WrappedNarrowView size={narrow}>
<slot name="footer" />
</WrappedNarrowView>
<div className="main">
<div className="sidebar">
<slot name="sidebar" />
</div>
<div className="sub-sidebar">
<slot name="subSidebar" />
</div>
<div className="content">
<slot />
<div
className={classNames("footer", { pinned: footerPinned })}
ref={footerRef}
>
<WrappedNarrowView size={narrow}>
<slot name="footer" />
</WrappedNarrowView>
</div>
</div>
</div>
</div>
<div className="aside">
<slot name="aside" />
</div>
</>
);
}
13 changes: 12 additions & 1 deletion bricks/containers/src/page-view/styles.shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@
--local-footer-height: 62px;

display: flex;
flex-direction: column;
height: 100%;
}

:host([hidden]) {
display: none;
}

.header-and-main,
.aside {
height: 100%;
min-width: 0;
}

.header-and-main {
display: flex;
flex-direction: column;
flex-grow: 1;
}

.header,
.main {
min-height: 0;
Expand Down

0 comments on commit b7f131b

Please sign in to comment.