Sticky Nav
This commit is contained in:
parent
52862752eb
commit
69e5811eb0
1 changed files with 10 additions and 8 deletions
|
|
@ -1,15 +1,17 @@
|
|||
import React from 'react'
|
||||
import styled from 'styled-components'
|
||||
import { Container } from './common'
|
||||
import { Container, Flex } from './common'
|
||||
|
||||
const Nav = styled.nav`
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
const Nav = styled.div`
|
||||
background: white;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
`
|
||||
|
||||
export default (props) => (
|
||||
<Container>
|
||||
<Nav {...props} />
|
||||
</Container>
|
||||
<Nav>
|
||||
<Container>
|
||||
<Flex alignCenter {...props} />
|
||||
</Container>
|
||||
</Nav>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue