Sidebar.js 619 B

123456789101112131415161718192021222324252627282930
  1. import React from 'react'
  2. import styled from 'styled-components'
  3. import DocLinks from './DocLinks'
  4. const Container = styled.nav`
  5. border-right: 1px solid #86838333;
  6. padding: 30px;
  7. height: 100vh;
  8. display: none;
  9. width: 380px;
  10. position: sticky;
  11. overflow: scroll;
  12. padding-bottom: 200px;
  13. top: 54px;
  14. background-color: ${(props) => props.theme.colors.white};
  15. @media screen and (min-width: ${(props) => props.theme.breakpoints.TABLET}) {
  16. display: block;
  17. }
  18. `
  19. const Sidebar = () => {
  20. return (
  21. <Container className='sidebar'>
  22. <DocLinks />
  23. </Container>
  24. )
  25. }
  26. export default Sidebar