PlaceHolder.tsx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import styled from '@emotion/styled'
  2. import { FC } from 'react'
  3. import { SvgActionInformative } from '@/assets/icons'
  4. import { Text } from '@/components/Text'
  5. export const PlaceHolder: FC = () => {
  6. return (
  7. <PlaceHolderWrapper>
  8. <StyledSvgActionInformative />
  9. <PlaceholderTitle as="p" variant="t100-strong">
  10. This is a placeholder for children.
  11. </PlaceholderTitle>
  12. <PlaceholderDescription as="p" variant="t100">
  13. Children will be placed here
  14. </PlaceholderDescription>
  15. </PlaceHolderWrapper>
  16. )
  17. }
  18. const StyledSvgActionInformative = styled(SvgActionInformative)`
  19. path {
  20. fill: #7b61ff;
  21. }
  22. `
  23. const PlaceHolderWrapper = styled.div`
  24. border: 1px dashed #7b61ff;
  25. font-size: 12px;
  26. border-radius: 5px;
  27. background-color: #7b61ff1a;
  28. display: flex;
  29. flex-direction: column;
  30. justify-content: center;
  31. align-items: center;
  32. padding: 0 24px;
  33. min-height: 200px;
  34. `
  35. const PlaceholderTitle = styled(Text)`
  36. text-align: center;
  37. margin-top: 8px;
  38. margin-bottom: 0;
  39. font-weight: 700;
  40. color: #7b61ff;
  41. `
  42. const PlaceholderDescription = styled(Text)`
  43. text-align: center;
  44. margin-top: 8px;
  45. color: #7b61ff;
  46. `