style.js 557 B

1234567891011121314151617181920212223242526
  1. import styled from 'styled-components';
  2. const Button = styled.button`
  3. height: 104px;
  4. float: left;
  5. `;
  6. const SingleSlide = styled.div`
  7. width: 10vw;
  8. height: 100px;
  9. border: 2px solid black;
  10. text-align: center;
  11. float: left;
  12. background-color: #fff;
  13. ${props => {
  14. if (props.index === 2) {
  15. return `background-color: #70C1B3; color: white;`;
  16. } else if (props.index === 0 || props.index === 4) {
  17. return `position: relative;
  18. z-index: -1;`;
  19. }
  20. }};
  21. z-index: ${props => props.zIndex}
  22. `;
  23. export { Button, SingleSlide };