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 RightSidebarLayout from '../../organisms/layouts/RightSidebar';
  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. padding: '0 1rem',
  16. boxSizing: 'border-box',
  17. '@media (min-width: 1080px)': {
  18. width: 'var(--width-base, 360px)',
  19. },
  20. })
  21. const Container = styled('div')({
  22. padding: '0 1rem',
  23. boxSizing: 'border-box',
  24. width: '100%',
  25. maxWidth: 'calc(var(--width-base, 360px) * 2)',
  26. marginRight: 'auto',
  27. marginLeft: 'auto',
  28. '@media (min-width: 1080px)': {
  29. marginRight: 0,
  30. },
  31. })
  32. const LeftSidebarLayoutTemplate = ({
  33. query,
  34. }) => {
  35. return (
  36. <RightSidebarLayout
  37. query={query}
  38. sidebar={
  39. <SidebarOverflow>
  40. <SidebarContainer>
  41. <DummyContent />
  42. </SidebarContainer>
  43. </SidebarOverflow>
  44. }
  45. >
  46. <Container>
  47. <DummyContent />
  48. </Container>
  49. </RightSidebarLayout>
  50. )
  51. }
  52. export default LeftSidebarLayoutTemplate