diff options
| author | jules <jules@carbonpictures.com> | 2017-06-02 15:42:34 +0000 |
|---|---|---|
| committer | jules <jules@carbonpictures.com> | 2017-06-02 15:42:34 +0000 |
| commit | 5f26431f03228a85273e7f7d51abd6098ea9f2a5 (patch) | |
| tree | 6a709972cbb0babd68aaa10fe277b2c843fd7451 /client/src/lib/timeline/timelineHeader.js | |
| parent | 291fe3eedd9a460fc44d2ea3ea81c7d79f2dfbcf (diff) | |
| parent | dd70fa81a205304cb48bbc0494ad34c16d496ff2 (diff) | |
merge
Diffstat (limited to 'client/src/lib/timeline/timelineHeader.js')
| -rw-r--r-- | client/src/lib/timeline/timelineHeader.js | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/client/src/lib/timeline/timelineHeader.js b/client/src/lib/timeline/timelineHeader.js new file mode 100644 index 0000000..559ace9 --- /dev/null +++ b/client/src/lib/timeline/timelineHeader.js @@ -0,0 +1,111 @@ +import React, { Component } from 'react'; +import { + StyleSheet, + TouchableOpacity, + Text, + View, + ScrollView, +} from 'react-native'; +import HTMLView from 'react-native-htmlview' + +import htmlStyles from '../components/htmlStyles' +import Heading from '../components/heading' +import ClearText from '../components/text' +import Button from '../components/button' +import Close from '../components/close' + +export default class TimelineHeader extends Component { + constructor(props) { + super() + } + render() { + if (!! this.props.tag) { + return ( + <View style={styles.tagContainer}></View> + ) + } + else { + const body = '<p>' + this.props.content.body + '</p>' + return ( + <ScrollView contentContainerStyle={styles.container}> + <View style={styles.body}> + <Heading>HISTORY OF SURVEILLANCE</Heading> + <HTMLView value={body} stylesheet={timelineHTMLStyles} onLinkPress={this.props.onLinkPress} /> + <Button buttonStyle={styles.buttonStyle} onPress={this.props.onClose} label={'VIEW THE TIMELINE'} /> + </View> + </ScrollView> + ) + } + } +} + +const styles = StyleSheet.create({ + container: { + justifyContent: 'flex-start', + alignItems: 'center', + }, + body: { + marginTop: 20, + maxWidth: 650, + marginBottom: 10, + backgroundColor: 'black', + padding: 40, + }, + buttonStyle: { + marginTop: 40, + marginLeft: 0, + marginRight: 0, + marginBottom: 0, + }, +}) + +const timelineHTMLStyles = StyleSheet.create({ + p: { + color: 'white', + fontFamily: 'Futura-Medium', + textAlign: 'justify', + fontSize: 16, + lineHeight: 30, + }, + b: { + fontFamily: 'Futura-MediumItalic', + color: 'white', + fontSize: 16, + lineHeight: 30, + }, + i: { + color: 'white', + fontFamily: 'Futura-MediumItalic', + fontSize: 16, + lineHeight: 30, + }, + a: { + color: 'white', + fontFamily: 'Futura-Medium', + textDecorationLine: 'underline', + fontSize: 16, + lineHeight: 30, + }, + red: { + color: '#f00', + fontWeight: 'bold', + fontFamily: 'Futura-MediumItalic', + fontSize: 16, + lineHeight: 24, + }, + green: { + color: '#0f0', + fontWeight: 'bold', + fontFamily: 'Futura-MediumItalic', + fontSize: 16, + lineHeight: 24, + }, + blue: { + color: '#08f', + fontWeight: 'bold', + fontFamily: 'Futura-MediumItalic', + fontSize: 16, + lineHeight: 24, + }, +}) + |
