1
0

EmptyFallback.styles.ts 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import styled from '@emotion/styled'
  2. import { Text } from '@/components/Text'
  3. import { media, sizes } from '@/styles'
  4. export type EmptyFallbackSizes = 'small' | 'large'
  5. type ContainerProps = {
  6. variant?: EmptyFallbackSizes
  7. verticalCentered?: boolean
  8. }
  9. export const Container = styled.div<ContainerProps>`
  10. margin: ${sizes(10)} auto;
  11. display: grid;
  12. place-content: center;
  13. justify-items: center;
  14. height: ${({ verticalCentered }) => (verticalCentered ? '100%' : 'auto')};
  15. ${media.xs} {
  16. width: ${({ variant }) => (variant === 'large' ? sizes(90) : 'auto')};
  17. }
  18. ${({ variant }) => `
  19. ${Title} {
  20. margin-top: ${sizes(variant === 'large' ? 10 : 6)};
  21. `}
  22. `
  23. export const Message = styled.div`
  24. display: flex;
  25. flex-direction: column;
  26. text-align: center;
  27. `
  28. export const Title = styled(Text)`
  29. line-height: 1.25;
  30. `
  31. export const Subtitle = styled(Text)`
  32. margin-top: ${sizes(2)};
  33. line-height: ${sizes(5)};
  34. `
  35. export const ButtonWrapper = styled.div`
  36. margin-top: ${sizes(6)};
  37. `