Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, {Component} from 'react';
  2. import { Text, ScrollView, View, Platform } from 'react-native';
  3. import { Button } from 'react-native-elements';
  4. import { styles, colors, fonts } from '../resources/css/styles';
  5.  
  6. export default class WeeklyPersonalLog extends Component{
  7.     render(){
  8.         if (Platform.OS === 'ios'){
  9.             return(
  10.                 <View style={styles.weeklyLogContainer}>
  11.                     <View style={styles.actionBtnCnt}>
  12.                         <Button buttonStyle={styles.tabBtnToggle} fontFamily={fonts.$Montserrat} color={colors.$Dark_Text} title='Day' />  
  13.                         <Button buttonStyle={[styles.tabBtnToggle,styles.tabBtnToggleActive]} fontFamily={fonts.$Montserrat} color={colors.$Dark_Text} title='Week' />
  14.                     </View>            
  15.                     <View style={styles.datepickerCnt}>
  16.                             <Button buttonStyle={styles.datepickerBtn} large={true} fontSize={50} color={colors.$Pink} fontFamily={fonts.$Icon} title='2' onPress={() => alert('Back')} />
  17.                             <Text style={styles.datepickerDate}>28 NOV - 04 DEC</Text>
  18.                             <Button buttonStyle={styles.datepickerBtn} large={true} fontSize={50} color={colors.$Pink} fontFamily={fonts.$Icon} title='3' onPress={() => alert('Forward')} />
  19.                     </View>
  20.                     <View style={styles.actionBtnCnt}>
  21.                         <Button buttonStyle={styles.actionBtnRound} fontFamily={fonts.$Icon} color={colors.$White} fontSize={32} large={true} title='5' /> 
  22.                         <Button buttonStyle={styles.actionBtnRound} fontFamily={fonts.$Icon} color={colors.$White} fontSize={32} large={true} title='7' />
  23.                         <Button buttonStyle={styles.actionBtnRound} fontFamily={fonts.$Icon} color={colors.$White} fontSize={32} large={true} title='8' />
  24.                     </View>    
  25.                     <View style={styles.totalHoursCnt}>
  26.                         <Text style={styles.totalHoursTitle}>Total hours</Text>
  27.                         <Text style={styles.totalHoursCount}>60
  28.                             <Text style={styles.totalHoursCountDesc}>HRS
  29.                                 <Text style={styles.totalHoursCount}>10
  30.                                     <Text style={styles.totalHoursCountDesc}>MINS</Text>
  31.                                 </Text>
  32.                             </Text>
  33.                         </Text>
  34.                     </View>    
  35.                     <View style={styles.weeklyLogStatsCnt}>
  36.                         <View style={styles.weeklyLogStatsItem}>
  37.                             <Text style={styles.weeklyLogStatsItemTitle}>Total overtime</Text>
  38.                             <Text style={styles.weeklyLogStatsItemCount}>12
  39.                                 <Text style={styles.weeklyLogStatsItemCountDesc}> HRS </Text>
  40.                             </Text>
  41.                         </View>
  42.                         <View style={styles.weeklyLogStatsItem}>
  43.                             <Text style={styles.weeklyLogStatsItemTitle}>Anti-social</Text>
  44.                             <Text style={styles.weeklyLogStatsItemCount}>30%</Text>
  45.                         </View>                
  46.                     </View>
  47.                     <View style={styles.weeklyLogStatsCnt}>
  48.                         <View style={styles.weeklyLogStatsItem}>
  49.                             <Text style={styles.weeklyLogStatsItemTitle}>Average hrs per day</Text>
  50.                             <Text style={styles.weeklyLogStatsItemCount}>10
  51.                                 <Text style={styles.weeklyLogStatsItemCountDesc}>HRS
  52.                                     <Text style={styles.weeklyLogStatsItemCount}> 30
  53.                                         <Text style={styles.weeklyLogStatsItemCountDesc}>MINS</Text>
  54.                                     </Text>
  55.                                 </Text>
  56.                             </Text>  
  57.                         </View>
  58.                         <View style={styles.weeklyLogStatsItem}>
  59.                             <Text style={styles.weeklyLogStatsItemTitle}>Current weekly average</Text>
  60.                             <Text style={styles.weeklyLogStatsItemCount}>48
  61.                                 <Text style={styles.weeklyLogStatsItemCountDesc}>HRS</Text>
  62.                             </Text>
  63.                         </View>                
  64.                     </View>                                
  65.                 </View>
  66.             );
  67.         } else if (Platform.OS === 'android'){
  68.             return(
  69.                 <ScrollView style={styles.weeklyLogContainer}>
  70.                     <View style={styles.actionBtnCnt}>
  71.                         <Button buttonStyle={styles.tabBtnToggle} fontFamily={fonts.$Montserrat} color={colors.$Dark_Text} title='Day' />  
  72.                         <Button buttonStyle={[styles.tabBtnToggle,styles.tabBtnToggleActive]} fontFamily={fonts.$Montserrat} color={colors.$Dark_Text} title='Week' />
  73.                     </View>            
  74.                     <View style={styles.datepickerCnt}>
  75.                             <Button buttonStyle={styles.datepickerBtn} large={true} fontSize={50} color={colors.$Pink} fontFamily={fonts.$Icon} title='2' onPress={() => alert('Back')} />
  76.                             <Text style={styles.datepickerDate}>28 NOV - 04 DEC</Text>
  77.                             <Button buttonStyle={styles.datepickerBtn} large={true} fontSize={50} color={colors.$Pink} fontFamily={fonts.$Icon} title='3' onPress={() => alert('Forward')} />
  78.                     </View>
  79.                     <View style={styles.actionBtnCnt}>
  80.                         <Button buttonStyle={styles.actionBtnRound} fontFamily={fonts.$Icon} color={colors.$White} fontSize={32} large={true} title='5' /> 
  81.                         <Button buttonStyle={styles.actionBtnRound} fontFamily={fonts.$Icon} color={colors.$White} fontSize={32} large={true} title='7' />
  82.                         <Button buttonStyle={styles.actionBtnRound} fontFamily={fonts.$Icon} color={colors.$White} fontSize={32} large={true} title='8' />
  83.                     </View>    
  84.                     <View style={styles.totalHoursCnt}>
  85.                         <Text style={styles.totalHoursTitle}>Total hours</Text>
  86.                         <Text style={styles.totalHoursCount}>60
  87.                             <Text style={styles.totalHoursCountDesc}>HRS
  88.                                 <Text style={styles.totalHoursCount}>10
  89.                                     <Text style={styles.totalHoursCountDesc}>MINS</Text>
  90.                                 </Text>
  91.                             </Text>
  92.                         </Text>
  93.                     </View>    
  94.                     <View style={styles.weeklyLogStatsCnt}>
  95.                         <View style={styles.weeklyLogStatsItem}>
  96.                             <Text style={styles.weeklyLogStatsItemTitle}>Total overtime</Text>
  97.                             <Text style={styles.weeklyLogStatsItemCount}>12
  98.                                 <Text style={styles.weeklyLogStatsItemCountDesc}> HRS </Text>
  99.                             </Text>
  100.                         </View>
  101.                         <View style={styles.weeklyLogStatsItem}>
  102.                             <Text style={styles.weeklyLogStatsItemTitle}>Anti-social</Text>
  103.                             <Text style={styles.weeklyLogStatsItemCount}>30%</Text>
  104.                         </View>                
  105.                     </View>
  106.                     <View style={styles.weeklyLogStatsCnt}>
  107.                         <View style={styles.weeklyLogStatsItem}>
  108.                             <Text style={styles.weeklyLogStatsItemTitle}>Average hrs per day</Text>
  109.                             <Text style={styles.weeklyLogStatsItemCount}>10
  110.                                 <Text style={styles.weeklyLogStatsItemCountDesc}>HRS
  111.                                     <Text style={styles.weeklyLogStatsItemCount}> 30
  112.                                         <Text style={styles.weeklyLogStatsItemCountDesc}>MINS</Text>
  113.                                     </Text>
  114.                                 </Text>
  115.                             </Text>  
  116.                         </View>
  117.                         <View style={styles.weeklyLogStatsItem}>
  118.                             <Text style={styles.weeklyLogStatsItemTitle}>Current weekly average</Text>
  119.                             <Text style={styles.weeklyLogStatsItemCount}>48
  120.                                 <Text style={styles.weeklyLogStatsItemCountDesc}>HRS</Text>
  121.                             </Text>
  122.                         </View>                
  123.                     </View>                                
  124.                 </ScrollView>
  125.             );
  126.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement