hompage update

This commit is contained in:
frits000000 2020-11-28 11:20:53 +01:00
parent 8db3dec261
commit 3def9cd39f
6 changed files with 95 additions and 14 deletions

View File

@ -0,0 +1,11 @@
> Why do I have a folder named ".expo-shared" in my project?
The ".expo-shared" folder is created when running commands that produce state that is intended to be shared with all developers on the project. For example, "npx expo-optimize".
> What does the "assets.json" file contain?
The "assets.json" file describes the assets that have been optimized through "expo-optimize" and do not need to be processed again.
> Should I commit the ".expo-shared" folder?
Yes, you should share the ".expo-shared" folder with your collaborators.

View File

@ -0,0 +1,58 @@
//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(
<TouchableOpacity style={Styles.Btn} onPress = {() => navigation.navigate('Search')}>
<Text style={Styles.white}>Klik hier en begin met zoeken</Text>
</TouchableOpacity>
)
}
const Cta = (props) => {
return (
<View style={Styles.Cta}>
<Text style={Styles.WhiteAlert}>Wacht niet te lang!</Text>
<Navigate/>
</View>
)
}
const Styles = StyleSheet.create ({
Cta: {
backgroundColor: "#DE0000a9",
paddingTop: 15,
paddingBottom: 30,
display: 'flex',
alignItems: 'center',
flex: 1,
justifyContent: 'center'
},
Btn: {
borderStyle: 'solid',
borderWidth: 2,
borderColor: '#ffffff',
flex: 1,
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
width: 250,
paddingVertical: 5,
},
white: {
color: '#ffffff',
},
WhiteAlert: {
color: '#ffffff',
fontSize: 20,
marginBottom: 15
}
})
export default Cta;

View File

@ -5,7 +5,7 @@ import Swiper from 'react-native-swiper-hooks'
import { useNavigation } from '@react-navigation/native'; import { useNavigation } from '@react-navigation/native';
//Components //Components
import { DefaultLayout, Hero, } from '../index'; import { DefaultLayout, Hero, Cta } from '../index';
function Navigate(props) { function Navigate(props) {
@ -79,6 +79,9 @@ class Home extends React.Component {
{_renderList()} {_renderList()}
</Swiper> </Swiper>
</View> </View>
<Text style={styles.SecondaireHeader}>Nog geen stage gevonden?</Text>
<Cta/>
<Text style={styles.SecondaireHeader}>Tips</Text>
</DefaultLayout> </DefaultLayout>
) )
} }
@ -105,7 +108,8 @@ const styles = StyleSheet.create({
color: "#003581", color: "#003581",
textAlign: 'center', textAlign: 'center',
fontSize: 20, fontSize: 20,
marginVertical: 15 marginTop: 30,
marginBottom: 15
}, },
carouselwrapper: { carouselwrapper: {
@ -127,6 +131,11 @@ const styles = StyleSheet.create({
white: { white: {
color: '#ffffff', color: '#ffffff',
}, },
Heading: {
fontSize: 20,
color: '#DE0000',
marginBottom: 10
},
}); });
export default Home; export default Home;

View File

@ -16,13 +16,13 @@ class UserProfile extends React.Component {
<DefaultLayout> <DefaultLayout>
<View> <View>
<Hero HeroHeading="Frits Haringa" HeroText="Student Applicatie en Mediaontwikkeling jaar 3"/> <Hero HeroHeading="Frits Haringa" HeroText="Student Applicatie en Mediaontwikkeling jaar 3"/>
<ProfileLink Page="Accountinstellingen" Title="Status van je stageplek zien"/> <ProfileLink Page="Stagestatus" Title="Status van je stageplek zien"/>
<ProfileLink Page="Agenda" Title="Uitgaande solicitaites bekijken"/> <ProfileLink Page="Verzondensolicitaties" Title="Uitgaande solicitaites bekijken"/>
<ProfileLink Page="Contact" Title="Account instellingen"/> <ProfileLink Page="Accountinstellingen" Title="Account instellingen"/>
<ProfileLink Page="Stagestatus" Title="Suggesties"/> <ProfileLink Page="Suggesties" Title="Suggesties"/>
<ProfileLink Page="Verzondensolicitaties" Title="Weekstaten"/> <ProfileLink Page="Weekstaten" Title="Weekstaten"/>
<ProfileLink Page="Suggesties" Title="Agenda"/> <ProfileLink Page="Agenda" Title="Agenda"/>
<ProfileLink Page="Weekstaten" Title="Contact opnemen"/> <ProfileLink Page="Contact" Title="Contact opnemen"/>
<ProfileLink Page="Home" Title="Uitloggen" hr="false"/> <ProfileLink Page="Home" Title="Uitloggen" hr="false"/>
</View> </View>

View File

@ -7,6 +7,7 @@ import {HeroSearch} from './Hero/Hero';
import CompanyResultcard from './Cards/CompanyResultCard'; import CompanyResultcard from './Cards/CompanyResultCard';
import Footer from './Footer/Footer'; import Footer from './Footer/Footer';
import ProfileLink from './Cards/ProfileLinks'; import ProfileLink from './Cards/ProfileLinks';
import Cta from './Cta/Cta';
//Pages //Pages
import Home from "./Views/Home"; import Home from "./Views/Home";
@ -31,6 +32,7 @@ export {
CompanyResultcard, CompanyResultcard,
Footer, Footer,
ProfileLink, ProfileLink,
Cta,
} }
//Pages export //Pages export

View File

@ -27,6 +27,7 @@
}, },
"web": { "web": {
"favicon": "./assets/favicon.png" "favicon": "./assets/favicon.png"
} },
"description": ""
} }
} }