diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f45356 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +node_modules/**/* +expo/* +npm-debug.* +*.jks +*.p8 +*.p12 +*.key +*.mobileprovision +*.orig.* +web-build/ + +# macOS +.DS_Store diff --git a/ReactJS/Native/AlfaPrentice/App/Cards/CompanyResultCard.js b/ReactJS/Native/AlfaPrentice/App/Cards/CompanyResultCard.js index e0e3e9c..b59a5ce 100644 --- a/ReactJS/Native/AlfaPrentice/App/Cards/CompanyResultCard.js +++ b/ReactJS/Native/AlfaPrentice/App/Cards/CompanyResultCard.js @@ -7,7 +7,7 @@ import { useNavigation } from '@react-navigation/native'; function Navigate(props) { const navigation = useNavigation(); return( - navigation.navigate('Companyprofile', { Appel: props.Details })}> + navigation.navigate('Companyprofile', { CompanyDetails: props.Details })}> Bekijk bedrijf ) diff --git a/ReactJS/Native/AlfaPrentice/App/Cards/ProfileLinks.js b/ReactJS/Native/AlfaPrentice/App/Cards/ProfileLinks.js new file mode 100644 index 0000000..01d56ad --- /dev/null +++ b/ReactJS/Native/AlfaPrentice/App/Cards/ProfileLinks.js @@ -0,0 +1,57 @@ +//Modules +import React from 'react'; +import {View, Text, StyleSheet, TouchableOpacity} from 'react-native'; +import { useNavigation } from '@react-navigation/native'; + +function Navigate(props) { + const navigation = useNavigation(); + return( + + navigation.navigate(props.Page)}> + {props.Title} + + + ) +} + + function HrCheck(props) { + var x = props.hr; + if (x == "false"){ + return + } + else { + return( + + ) + } + } + +const ProfileLink = (props) => { + + return ( + + + + + + + ) +} + +const Styles = StyleSheet.create ({ + Profilelink: { + paddingVertical: 30, + paddingHorizontal: 60, + width: '100%' + }, + ProfileText:{ + color: '#DE0000', + }, + HR: { + height: 2, + backgroundColor: '#DE0000', + + } +}) + +export default ProfileLink; \ No newline at end of file diff --git a/ReactJS/Native/AlfaPrentice/App/Footer/Footer.js b/ReactJS/Native/AlfaPrentice/App/Footer/Footer.js new file mode 100644 index 0000000..4a7ab98 --- /dev/null +++ b/ReactJS/Native/AlfaPrentice/App/Footer/Footer.js @@ -0,0 +1,64 @@ +import React from 'react'; +import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; +import { Icon } from 'react-native-elements' +import { useNavigation } from '@react-navigation/native'; + +function Navigate(props) { + const navigation = useNavigation(); + return( + + navigation.navigate('Home')}> + + + navigation.navigate('Search')}> + + + navigation.navigate('Userprofile')}> + + + navigation.navigate('Userprofile')}> + + + + + + ) +} + +const Footer = () => { + return ( + + + + + ) +} + +const Styles = StyleSheet.create({ + MainFooter: { + width: '100%', + height: 50, + color: '#ffffff', + backgroundColor: '#003581', + justifyContent: 'center', + alignItems: 'center', + position: 'absolute', //Here is the trick + bottom: 0, //Here is the trick + }, + IconRow: { + display: 'flex', + flexDirection: 'row', + justifyContent: 'space-between', + width: '80%', + } +}) + +export default Footer; \ No newline at end of file diff --git a/ReactJS/Native/AlfaPrentice/App/Hero/Hero.js b/ReactJS/Native/AlfaPrentice/App/Hero/Hero.js index df9f8e9..1a76fbf 100644 --- a/ReactJS/Native/AlfaPrentice/App/Hero/Hero.js +++ b/ReactJS/Native/AlfaPrentice/App/Hero/Hero.js @@ -9,12 +9,15 @@ class Hero extends React.Component { } render() { return ( + {this.props.HeroHeading} {this.props.HeroText} + + ); } } @@ -22,6 +25,7 @@ class Hero extends React.Component { const HeroSearch = (props) => { const [SearchBar, onChangeSearch] = React.useState(''); return ( + { /> + + ); } @@ -41,14 +47,14 @@ const Styles = StyleSheet.create ({ image: { resizeMode: "cover", width: '100%', - height: 100, backgroundColor: "#DE0000a0", }, HeroHeading: { color: "white", fontSize: 30, textAlign: "center", - backgroundColor: "#DE0000a0" + backgroundColor: "#DE0000a0", + paddingTop: 10, }, HeroText: { color: "white", @@ -57,7 +63,7 @@ const Styles = StyleSheet.create ({ height: 55, }, InputContainer: { - height: "100%", + height: 100, backgroundColor: "#DE0000a0", display: 'flex', alignItems: 'center', diff --git a/ReactJS/Native/AlfaPrentice/App/Layouts/DefaultLayout.js b/ReactJS/Native/AlfaPrentice/App/Layouts/DefaultLayout.js index 91b06a7..034cc95 100644 --- a/ReactJS/Native/AlfaPrentice/App/Layouts/DefaultLayout.js +++ b/ReactJS/Native/AlfaPrentice/App/Layouts/DefaultLayout.js @@ -3,20 +3,22 @@ import React from 'react'; import {View, Text, ScrollView} from 'react-native'; //Components -import Header from '../Header/Header'; +import {Header, Footer} from '../index'; class DefaultLayout extends React.Component { - constructor(props){ - super(props); - } +constructor(props){ + super(props); +} render() { return ( - + +
- - {this.props.children} + {this.props.children} +