aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/instant/screenshots.tsx
blob: b0ea594706bb5bbbfcf4b1c98494fdb37bde0dc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import * as _ from 'lodash';
import * as React from 'react';

import { Container } from 'ts/components/ui/container';
import { colors } from 'ts/style/colors';
import { ScreenWidths } from 'ts/types';

export interface ScreenshotsProps {
    screenWidth: ScreenWidths;
}

export const Screenshots = (props: ScreenshotsProps) => {
    const isSmallScreen = props.screenWidth === ScreenWidths.Sm;
    const images = isSmallScreen
        ? [
              'images/instant/omg_screenshot.png',
              'images/instant/kitty_screenshot.png',
              'images/instant/bat_screenshot.png',
          ]
        : [
              'images/instant/snt_screenshot.png',
              'images/instant/omg_screenshot.png',
              'images/instant/kitty_screenshot.png',
              'images/instant/bat_screenshot.png',
              'images/instant/leroy_screenshot.png',
              'images/instant/mkr_screenshot.png',
          ];
    return (
        <Container backgroundColor={colors.instantPrimaryBackground} className="py3 flex justify-center">
            {_.map(images, image => {
                return <img className="px1" width="300px" height="420px" src={image} />;
            })}
        </Container>
    );
};