Skip to content

Commit

Permalink
feat: sticky footer bar
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreiffers authored and hegeaal committed Dec 5, 2024
1 parent 2622b50 commit d1e6564
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions libs/ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export * from './lib/search-hits-page-layout';
export * from './lib/select';
export * from './lib/service-messages';
export * from './lib/spinner';
export * from './lib/sticky-footer-bar';
export * from './lib/tag';
export * from './lib/textarea-with-prefix';
export * from './lib/title-with-tag';
Expand Down
15 changes: 15 additions & 0 deletions libs/ui/src/lib/sticky-footer-bar/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { PropsWithChildren } from 'react';
import classNames from 'classnames';
import styles from './sticky-footer-bar.module.css';

const StickyFooterBar = ({ children }: PropsWithChildren) => {
return (
<div className={styles.stickyFooterBar}>
<div className={classNames('container', styles.stickyFooterContent)}>
{children}
</div>
</div>
);
};

export default StickyFooterBar;
16 changes: 16 additions & 0 deletions libs/ui/src/lib/sticky-footer-bar/sticky-footer-bar.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.stickyFooterBar {
position: sticky;
bottom: 0px;
background-color: #fff;
border-top: 1px solid rgb(230, 230, 230);
box-shadow: #969ba0 0px 0px 10px -5px;
z-index: 10;
}

.stickyFooterContent {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 2rem 1rem;
}

0 comments on commit d1e6564

Please sign in to comment.