Created
August 25, 2019 13:17
-
-
Save Pieter0313/736770385b8ccd45a01fe57d161ce321 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
class Home extends Component { | |
render() { | |
return ( | |
<div className='home'> | |
<p>Komt nog</p> | |
</div> | |
); | |
} | |
} | |
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { render } from 'react-dom'; | |
import './style.css' | |
import { | |
BrowserRouter as Router, | |
Route, | |
Link, | |
Switch | |
} from 'react-router-dom' | |
import Login from './components/Login/login'; | |
import Home from './components/Home/home' | |
render(( | |
<Router> | |
<Switch> | |
<Route exact path="/" component={Login}/> | |
<Route path="/home" component={Home}/> | |
/* Meer wordt toegevoegd als er meer pagina's klaar zijn */ | |
</Switch> | |
</Router> | |
), document.getElementById('root')) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import { Link } from 'react-router-dom' | |
const props = { | |
schoolName: "Ludger College" | |
}; | |
class Login extends Component { | |
render() { | |
return ( | |
<div className='login'> | |
<div className="login-container"> | |
<div className="login-box"> | |
<a className="dalta-title">DALTA</a> | |
<a className="school-name">{props.schoolName}</a> | |
<form> | |
<div className="inputs"> | |
<input type="text" placeholder="Gebruikersnaam"/> | |
<input type="password" placeholder="Wachtwoord"/> | |
</div> | |
<button>Doorgaan ></button> | |
<a className="forgotPswrd">Wachtwoord vergeten?</a> | |
</form> | |
</div> | |
</div> | |
</div> | |
); | |
} | |
} | |
export default Login; | |
// Later doorlinken naar '/home' !! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment