forked from abner/for-legacy-web
Port navigation.
This commit is contained in:
32
src/components/ui/Header.tsx
Normal file
32
src/components/ui/Header.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import styled, { css } from "styled-components";
|
||||
|
||||
interface Props {
|
||||
background?: boolean;
|
||||
placement: 'primary' | 'secondary'
|
||||
}
|
||||
|
||||
export default styled.div<Props>`
|
||||
height: 56px;
|
||||
font-weight: 600;
|
||||
user-select: none;
|
||||
|
||||
gap: 10px;
|
||||
flex: 0 auto;
|
||||
display: flex;
|
||||
padding: 20px;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
|
||||
background-color: var(--primary-background);
|
||||
background-size: cover !important;
|
||||
background-position: center !important;
|
||||
|
||||
${ props => props.background && css`
|
||||
height: 120px;
|
||||
align-items: flex-end;
|
||||
` }
|
||||
|
||||
${ props => props.placement === 'secondary' && css`
|
||||
padding: 14px;
|
||||
` }
|
||||
`;
|
||||
Reference in New Issue
Block a user