Merge branch 'DevFrits' of https://github.com/Xandra10101/AlfaPrentice into DevFrits

This commit is contained in:
frits000000 2020-12-18 12:50:10 +01:00
commit 5ca42144ad
10 changed files with 14361 additions and 20365 deletions

View File

@ -3,7 +3,7 @@ import React from 'react';
import {View, Text, ScrollView} from 'react-native'; import {View, Text, ScrollView} from 'react-native';
//Components //Components
import {Header, Footer} from '../index'; import {Header, Footer, Hero} from '../index';
class DefaultLayout extends React.Component { class DefaultLayout extends React.Component {
constructor(props){ constructor(props){
@ -23,4 +23,23 @@ constructor(props){
} }
} }
export default DefaultLayout; class UserProfileLayout extends React.Component {
constructor(props){
super(props);
}
render() {
return (
<View>
<ScrollView style={{marginBottom: 50,}}>
<Header/>
<Hero HeroHeading="Frits Haringa" HeroText="Student Applicatie en Mediaontwikkeling jaar 3"/>
{this.props.children}
</ScrollView>
<Footer/>
</View>
);
}
}
export { DefaultLayout, UserProfileLayout };

View File

@ -1,18 +1,48 @@
//Modules //Modules
import React from 'react'; import React from 'react';
import {View, Text} from 'react-native'; import {View, Text, StyleSheet} from 'react-native';
//Components //Components
import { DefaultLayout } from '../../../index'; import { UserProfileLayout, Hero } from '../../../index';
class InternStatus extends React.Component { class InternStatus extends React.Component {
render() { render() {
return ( return (
<DefaultLayout> <UserProfileLayout>
<Text>Status stage pagina</Text> <Text style={Styles.H1}>Status stage pagina</Text>
</DefaultLayout> <View>
<View style={Styles.StageInfoContainer}>
<Text style={Styles.StageInfo}>Weekstaten</Text>
<Text style={Styles.StageInfo}>303 van de 720 uur gelopen</Text>
</View>
<View style={Styles.StageInfoContainer}>
<Text style={Styles.StageInfo}>Stage periode</Text>
<Text style={Styles.StageInfo}>Stage eindigt over 79 dagen</Text>
</View>
</View>
</UserProfileLayout>
) )
} }
} }
const Styles = StyleSheet.create({
H1: {
color: "#DE0000",
fontSize: 21,
textAlign: 'center',
marginVertical: 10,
},
StageInfoContainer: {
display: 'flex',
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
paddingHorizontal: 30,
marginVertical: 10
},
StageInfo: {
fontSize: 12,
}
})
export default InternStatus; export default InternStatus;

View File

@ -1,7 +1,7 @@
//Components //Components
import Header from './Header/Header'; import Header from './Header/Header';
import Routes from './Router/Router'; import Routes from './Router/Router';
import DefaultLayout from './Layouts/DefaultLayout'; import { DefaultLayout, UserProfileLayout} from './Layouts/DefaultLayout';
import Hero from './Hero/Hero'; import Hero from './Hero/Hero';
import {HeroSearch} from './Hero/Hero'; import {HeroSearch} from './Hero/Hero';
import CompanyResultcard from './Cards/CompanyResultCard'; import CompanyResultcard from './Cards/CompanyResultCard';
@ -33,6 +33,7 @@ export {
Footer, Footer,
ProfileLink, ProfileLink,
Cta, Cta,
UserProfileLayout
} }
//Pages export //Pages export

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@
"react-native-gesture-handler": "^1.9.0", "react-native-gesture-handler": "^1.9.0",
"react-native-reanimated": "^1.13.2", "react-native-reanimated": "^1.13.2",
"react-native-router-flux": "^4.2.0", "react-native-router-flux": "^4.2.0",
"react-native-safe-area-context": "^3.1.9", "react-native-safe-area-context": "3.1.4",
"react-native-screens": "^2.15.0", "react-native-screens": "^2.15.0",
"react-native-snap-carousel": "^3.9.1", "react-native-snap-carousel": "^3.9.1",
"react-native-swiper-hooks": "^1.2.8", "react-native-swiper-hooks": "^1.2.8",

14251
Native/AlfaPrentice/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,23 @@
import React from 'react';
const HourRegister = (porops) => {
return(
<div className="container">
<h3>Vandaag</h3>
<div className="row">
<div className="col-md-6">
<p>Omschrijving</p>
<textarea/>
</div>
<div className="col-md-3">
<p>Aantal uren</p>
</div>
<div className="col-md-3">
opslaan
</div>
</div>
</div>
)
}
export default HourRegister;

View File

@ -0,0 +1,22 @@
//Modules
import React from 'react';
//Components
import { HourRegister, HeroOne } from "../../../index";
class Weekstaten extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<HeroOne title="Weekstaten" content="Al je golpen urenj in een overzicht"/>
<HourRegister/>
</div>
)
}
}
export default Weekstaten;

View File

@ -17,7 +17,7 @@ import {
CompanyProfile, CompanyProfile,
UserProfile, UserProfile,
ContactPage, ContactPage,
Weekstaten, WeekStaten
} from '../'; } from '../';
//Sub routes //Sub routes
@ -44,7 +44,7 @@ class GlobalRouter extends React.Component {
<Route path="/bedrijfsprofiel" component={CompanyProfile} /> <Route path="/bedrijfsprofiel" component={CompanyProfile} />
<Route path="/gebruikersprofiel" component={UserProfile} /> <Route path="/gebruikersprofiel" component={UserProfile} />
<Route path="/contact" component={ContactPage} /> <Route path="/contact" component={ContactPage} />
<Route path="/weekstaten" component={Weekstaten} /> <Route path="/Weekstaten" component={WeekStaten} />
</Switch> </Switch>
</DefaultLayout> </DefaultLayout>
</Router> </Router>

View File

@ -8,6 +8,7 @@ import Dropdown from "./Dropdown/Dropdown";
import CompanyResults from "./Cards/CompanyResult"; import CompanyResults from "./Cards/CompanyResult";
import FinishedInternShip from "./Cards/FinishedInternCard"; import FinishedInternShip from "./Cards/FinishedInternCard";
import WeekStatenCard from "./Cards/WeekStatenCard"; import WeekStatenCard from "./Cards/WeekStatenCard";
import HourRegister from "./Cards/TimeRegister";
//Layout imports //Layout imports
import DefaultLayout from "./Layouts/DefaultLayout"; import DefaultLayout from "./Layouts/DefaultLayout";
@ -18,7 +19,7 @@ import InternSearch from "./Pages/Search/InternSearchPage";
import CompanyProfile from "./Pages/Profile/CompanyProfile"; import CompanyProfile from "./Pages/Profile/CompanyProfile";
import UserProfile from "./Pages/Profile/UserProfile"; import UserProfile from "./Pages/Profile/UserProfile";
import ContactPage from "./Pages/Contact/Contact"; import ContactPage from "./Pages/Contact/Contact";
import Weekstaten from "./Pages/Weekstaten/Weekstaten"; import WeekStaten from "./Pages/Profile/UserFunctions/WeekStaten"
//Style //Style
import "./GlobalStyles.css"; import "./GlobalStyles.css";
@ -34,6 +35,7 @@ export {
CompanyResults, CompanyResults,
FinishedInternShip, FinishedInternShip,
WeekStatenCard, WeekStatenCard,
HourRegister,
} }
@ -50,5 +52,5 @@ export {
CompanyProfile, CompanyProfile,
UserProfile, UserProfile,
ContactPage, ContactPage,
Weekstaten, WeekStaten,
} }