From 3e72bfa56c860826429a842f6c128d78d4a930db Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 1 Jun 2017 19:47:08 -0400 Subject: react-native-web port of fmf app --- client/src/lib/components/footer.js | 77 +++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 client/src/lib/components/footer.js (limited to 'client/src/lib/components/footer.js') diff --git a/client/src/lib/components/footer.js b/client/src/lib/components/footer.js new file mode 100644 index 0000000..b389245 --- /dev/null +++ b/client/src/lib/components/footer.js @@ -0,0 +1,77 @@ +import React, { Component } from 'react' +import { + Image, + StyleSheet, + TouchableOpacity, + Text, + View, +} from 'react-native' +import { Link } from 'react-router-dom' + +export default class ClearText extends Component { + render() { + return ( + + + + Privacy + + + + this.props.onLinkPress('http://armoryonpark.org/')}> + + + + + + Credits + + + + ) + } +} + +const isIphone = (navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) +const isIpad = (navigator.userAgent.match(/iPad/i)) +const isAndroid = (navigator.userAgent.match(/Android/i)) +const isMobile = isIphone || isIpad || isAndroid +const isDesktop = ! isMobile + +const styles = StyleSheet.create({ + footer: { + position: 'fixed', + bottom: 0, + left: 0, + width: '100%', + height: isMobile ? 40 : 70, + backgroundColor: 'black', + paddingTop: isMobile ? 5 : 20, + paddingBottom: isMobile ? 5 : 20, + flexDirection: 'row', + justifyContent: 'space-around', + alignItems: 'center', + }, + footerLogo: { + flexDirection: 'row', + justifyContent: 'center', + alignItems: 'center', + maxWidth: 140, + maxHeight: 40, + width: 260, + height: 39, + }, + footerItem: { + height: 35, + flex: 1, + alignItems: 'center', + }, + footerText: { + fontFamily: 'Futura-Medium', + color: 'white', + fontSize: 10, + flex: 1, + padding: 10, + marginTop: 4, + } +}) -- cgit v1.2.3-70-g09d2