summaryrefslogtreecommitdiffstats
path: root/webapp/components/get_android_app/get_android_app.jsx
blob: ab73141b129c4bc5aa0c4312eef5d34b211a0e11 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

import React from 'react';

import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';

import MattermostIcon from 'images/favicon/android-chrome-192x192.png';
import Nexus6Mockup from 'images/nexus-6p-mockup.png';

export default class GetAndroidApp extends React.Component {
    render() {
        return (
            <div className='get-app get-android-app'>
                <h1 className='get-app__header'>
                    <FormattedMessage
                        id='get_app.androidHeader'
                        defaultMessage='Mattermost works best if you switch to our Android app'
                    />
                </h1>
                <hr/>
                <div>
                    <img
                        className='get-android-app__icon'
                        src={MattermostIcon}
                    />
                    <div className='get-android-app__app-info'>
                        <span className='get-android-app__app-name'>
                            <FormattedMessage
                                id='get_app.androidAppName'
                                defaultMessage='Mattermost for Android'
                            />
                        </span>
                        <span className='get-android-app__app-creator'>
                            <FormattedMessage
                                id='get_app.mattermostInc'
                                defaultMessage='Mattermost, Inc'
                            />
                        </span>
                    </div>
                </div>
                <a
                    className='btn btn-primary get-android-app__continue'
                    href={global.window.mm_config.AndroidAppDownloadLink}
                >
                    <FormattedMessage
                        id='get_app.continue'
                        defaultMessage='Continue'
                    />
                </a>
                <img
                    className='get-app__screenshot'
                    src={Nexus6Mockup}
                />
                <span className='get-app__continue-with-browser'>
                    <FormattedMessage
                        id='get_app.continueWithBrowser'
                        defaultMessage='Or {link}'
                        values={{
                            link: (
                                <Link to='/switch_team'>
                                    <FormattedMessage
                                        id='get_app.continueWithBrowserLink'
                                        defaultMessage='continue with browser'
                                    />
                                </Link>
                            )
                        }}
                    />
                </span>
            </div>
        );
    }
}