searchpage implementation
This commit is contained in:
parent
6c1247657d
commit
0481ad2bc5
@ -7,14 +7,21 @@ import "./Cta.css"
|
|||||||
class CTA extends React.Component {
|
class CTA extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
this.state = {
|
||||||
|
BTNText : this.props.BtnText,
|
||||||
|
ContentText : this.props.ContentText,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="Cta mt-5">
|
<div className="Cta mt-5">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<h1 className="mb-5">{this.props.title}</h1>
|
<h1 className="mb-5">{this.props.title}</h1>
|
||||||
<a className="AP-Btn-outline">{this.props.BtnText}</a>
|
<a className="AP-Btn-outline">{this.props.BtnText}</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
.HomeHero{
|
.HomeHero{
|
||||||
position: relative;
|
position: relative;
|
||||||
background-image: url("../Components/images/Stock.png");
|
background-image: url("../images/Stock.png");
|
||||||
padding: 150px 50px;
|
padding: 150px 50px;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.OpleidingItemInner{
|
.OpleidingItemInner{
|
||||||
background:linear-gradient( rgba(0, 0, 0, 0.5) 100%, rgba(0, 0, 0, 0.5)100%),url("../Components/images/stock2.png");
|
background:linear-gradient( rgba(0, 0, 0, 0.5) 100%, rgba(0, 0, 0, 0.5)100%),url("../images/stock2.png");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
@ -8,7 +8,7 @@ import "./HomePage.css";
|
|||||||
import {
|
import {
|
||||||
HeroOne,
|
HeroOne,
|
||||||
CTA,
|
CTA,
|
||||||
} from "../Components";
|
} from "../";
|
||||||
|
|
||||||
class HomePage extends React.Component {
|
class HomePage extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
//Module
|
||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
//Component
|
||||||
|
import {
|
||||||
|
HeroOne,
|
||||||
|
CTA,
|
||||||
|
} from "../../";
|
||||||
|
|
||||||
|
class InternSearch extends React.Component {
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div className="SearchPage">
|
||||||
|
<HeroOne title="Stageplek zoeken" content="Voor de opleiding Applicatie en mediaontwikkeling"/>
|
||||||
|
<CTA title="Geen plek kunnen vinden of vragen of je ook bij een eigen benadert bedrijf stage mag lopen" ContentText="Neem dan contact op met je mentor of stage begeleider om te vragen naar de mogelijkheden"/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default InternSearch;
|
||||||
@ -11,7 +11,10 @@ import {
|
|||||||
import { DefaultLayout } from '../';
|
import { DefaultLayout } from '../';
|
||||||
|
|
||||||
//Main routes
|
//Main routes
|
||||||
import {HomePage} from '../';
|
import {
|
||||||
|
HomePage,
|
||||||
|
InternSearch
|
||||||
|
} from '../';
|
||||||
|
|
||||||
//Sub routes
|
//Sub routes
|
||||||
|
|
||||||
@ -33,6 +36,7 @@ class GlobalRouter extends React.Component {
|
|||||||
<DefaultLayout>
|
<DefaultLayout>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path="/" component={HomePage} />
|
<Route exact path="/" component={HomePage} />
|
||||||
|
<Route path="/zoeken" component={InternSearch} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</DefaultLayout>
|
</DefaultLayout>
|
||||||
</Router>
|
</Router>
|
||||||
|
|||||||
@ -9,7 +9,8 @@ import Footer from "./Footer/Footer";
|
|||||||
import DefaultLayout from "./Layouts/DefaultLayout";
|
import DefaultLayout from "./Layouts/DefaultLayout";
|
||||||
|
|
||||||
//Pages imports
|
//Pages imports
|
||||||
import HomePage from '../Pages/HomePage';
|
import HomePage from './Pages/HomePage';
|
||||||
|
import InternSearch from "./Pages/Search/InternSearchPage";
|
||||||
|
|
||||||
//Style
|
//Style
|
||||||
import "./GlobalStyles.css";
|
import "./GlobalStyles.css";
|
||||||
@ -33,4 +34,5 @@ export {
|
|||||||
//Pages export
|
//Pages export
|
||||||
export {
|
export {
|
||||||
HomePage,
|
HomePage,
|
||||||
|
InternSearch,
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user