Guest User

Untitled

a guest
May 26th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import './App.css';
  3.  
  4.  
  5. export default class LoginScreen extends Component {
  6.  
  7. // Properties used by this component:
  8. // appActions, deviceInfo
  9.  
  10. render() {
  11. // eslint-disable-next-line no-unused-vars
  12. let baseStyle = {};
  13. // eslint-disable-next-line no-unused-vars
  14. let layoutFlowStyle = {};
  15. if (this.props.transitionId && this.props.transitionId.length > 0 && this.props.atTopOfScreenStack && this.props.transitionForward) {
  16. baseStyle.animation = '0.25s ease-in-out '+this.props.transitionId;
  17. }
  18. if ( !this.props.atTopOfScreenStack) {
  19. layoutFlowStyle.height = '100vh';
  20. layoutFlowStyle.overflow = 'hidden';
  21. }
  22.  
  23. const style_background = {
  24. width: '100%',
  25. height: '100%',
  26. };
  27. const style_background_outer = {
  28. backgroundColor: '#f4f4f4',
  29. pointerEvents: 'none',
  30. };
  31. const style_text_title = {
  32. fontSize: 34.4,
  33. fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", sans-serif',
  34. color: '#0a99c0',
  35. textAlign: 'center',
  36. };
  37. const style_text_title_outer = {
  38. pointerEvents: 'none',
  39. };
  40.  
  41. return (
  42. <div className="AppScreen LoginScreen" style={baseStyle}>
  43. <div className="background">
  44. <div className='appBg containerMinHeight elBackground' style={style_background_outer}>
  45. <div style={style_background} />
  46.  
  47. </div>
  48.  
  49. </div>
  50. <div className="layoutFlow" style={layoutFlowStyle}>
  51. <div className='elText_title' style={style_text_title_outer}>
  52. <div style={style_text_title}>
  53. <div>{this.props.locStrings.login_text_title}</div>
  54. </div>
  55.  
  56. </div>
  57.  
  58. </div>
  59. </div>
  60. )
  61. }
  62. }
Add Comment
Please, Sign In to add comment