well.tsx 528 B

1234567891011121314151617181920
  1. import styled from '@emotion/styled';
  2. interface WellProps extends React.HTMLAttributes<HTMLDivElement> {
  3. children: React.ReactNode;
  4. centered?: boolean;
  5. hasImage?: boolean;
  6. theme?: any;
  7. }
  8. const Well = styled('div')<WellProps>`
  9. border: 1px solid ${p => p.theme.border};
  10. box-shadow: none;
  11. background: ${p => p.theme.backgroundSecondary};
  12. padding: ${p => (p.hasImage ? '80px 30px' : '15px 20px')};
  13. margin-bottom: 20px;
  14. border-radius: 3px;
  15. ${p => p.centered && 'text-align: center'};
  16. `;
  17. export default Well;