Template for starting apps, powered by Next.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

59 lines
1.1 KiB

  1. import * as React from 'react'
  2. import styled from 'styled-components';
  3. import LeftSidebarLayout from '../../organisms/layouts/LeftSidebar';
  4. import DummyContent from '../../molecules/DummyContent';
  5. const SidebarOverflow = styled('div')({
  6. width: '100%',
  7. height: '100%',
  8. overflow: 'auto',
  9. scrollbarWidth: 'none',
  10. '::-webkit-scrollbar': {
  11. display: 'none',
  12. },
  13. })
  14. const SidebarContainer = styled('div')({
  15. width: 'var(--width-base, 360px)',
  16. marginLeft: 'auto',
  17. padding: '0 1rem',
  18. boxSizing: 'border-box',
  19. })
  20. const Container = styled('div')({
  21. padding: '0 1rem',
  22. boxSizing: 'border-box',
  23. width: '100%',
  24. maxWidth: 'calc(var(--width-base, 360px) * 2)',
  25. marginRight: 'auto',
  26. marginLeft: 'auto',
  27. '@media (min-width: 1080px)': {
  28. marginLeft: 0,
  29. },
  30. })
  31. const LeftSidebarLayoutTemplate = ({
  32. query,
  33. }) => {
  34. return (
  35. <LeftSidebarLayout
  36. query={query}
  37. sidebar={
  38. <SidebarOverflow>
  39. <SidebarContainer>
  40. <DummyContent />
  41. </SidebarContainer>
  42. </SidebarOverflow>
  43. }
  44. >
  45. <Container>
  46. <DummyContent />
  47. </Container>
  48. </LeftSidebarLayout>
  49. )
  50. }
  51. export default LeftSidebarLayoutTemplate