import React from 'react';
import { SBox } from '../../../common/s-components/layout/s-box';
import { SRow } from '../../../common/s-components/layout/s-row';
import { AnimatedGradient } from '../../../common/components/animated-gradient';
import { theme } from '../../../app/theme';
import { SCarouselDot } from '../../../common/s-components/s-carousel-dot';

export const Skeleton: React.FC = () => {
  return (
    <SBox position="relative" pt={4} alignItems="center">
      <SBox width={192} height={16} mb={16} bg="eastBay" />
      <SBox width={128} height={16} mb={28} bg="eastBay" />
      <SBox width={50} height={24} mb={36} bg="eastBay" />
      <SRow>
        <SCarouselDot bg={theme.colors.eastBay} />
        <SCarouselDot bg={theme.colors.eastBay} />
      </SRow>
      <SBox position="absolute" top={0} left={0} height="100%" flex={1}>
        <AnimatedGradient angle={8} gradientWidth={190} />
      </SBox>
    </SBox>
  );
};
