This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PLT-3640 Add mobile landing pages (#3674)
* PLT-3640 Moved all clientside user agent snooping into a single file * PLT-3640 Added mobile landing pages on login to iOS and Android web apps * PLT-3640 Moved landing page to appear before first login * PLT-3640 Fixed detection of Chrome on Android * PLT-3640 Disabled mobile landing pages when their respective URLs are set to blank
- Loading branch information
1 parent
0955fa3
commit 43b7c29
Showing
19 changed files
with
398 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// 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 AppStoreButton from 'images/app-store-button.png'; | ||
import IPhone6Mockup from 'images/iphone-6-mockup.png'; | ||
|
||
export default class GetIosApp extends React.Component { | ||
render() { | ||
return ( | ||
<div className='get-app get-ios-app'> | ||
<h1 className='get-app__header'> | ||
<FormattedMessage | ||
id='get_app.iosHeader' | ||
defaultMessage='Mattermost works best if you switch to our iPhone app' | ||
/> | ||
</h1> | ||
<hr/> | ||
<a | ||
className='get-ios-app__app-store-link' | ||
href={global.window.mm_config.IosAppDownloadLink} | ||
rel='noopener noreferrer' | ||
> | ||
<img src={AppStoreButton}/> | ||
</a> | ||
<img | ||
className='get-app__screenshot' | ||
src={IPhone6Mockup} | ||
/> | ||
<h2 className='get-ios-app__already-have-it'> | ||
<FormattedMessage | ||
id='get_app.alreadyHaveIt' | ||
defaultMessage='Already have it?' | ||
/> | ||
</h2> | ||
<a | ||
className='btn btn-primary get-ios-app__open-mattermost' | ||
href='mattermost:https://' | ||
> | ||
<FormattedMessage | ||
id='get_app.openMattermost' | ||
defaultMessage='Open Mattermost' | ||
/> | ||
</a> | ||
<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> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.