congratsRobots.tsx 766 B

12345678910111213141516171819202122232425262728293031
  1. import styled from '@emotion/styled';
  2. import video from 'sentry-images/spot/congrats-robots.mp4';
  3. import {AutoplayVideo} from 'sentry/components/autoplayVideo';
  4. import {t} from 'sentry/locale';
  5. import space from 'sentry/styles/space';
  6. /**
  7. * Note, video needs `muted` for `autoplay` to work on Chrome
  8. * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
  9. */
  10. function CongratsRobots() {
  11. return (
  12. <AnimatedScene>
  13. <StyledAutoplayVideo aria-label={t('Congratulations video')} src={video} />
  14. </AnimatedScene>
  15. );
  16. }
  17. export default CongratsRobots;
  18. const AnimatedScene = styled('div')`
  19. max-width: 800px;
  20. `;
  21. const StyledAutoplayVideo = styled(AutoplayVideo)`
  22. max-height: 320px;
  23. max-width: 100%;
  24. margin-bottom: ${space(1)};
  25. `;