Skip to content
Snippets Groups Projects
Commit 5e49f91b authored by Orlando Piñero's avatar Orlando Piñero
Browse files

Meilenstein 1 done

parent 3c1c9e35
No related branches found
No related tags found
No related merge requests found
...@@ -75,9 +75,6 @@ function login(userID, password) { ...@@ -75,9 +75,6 @@ function login(userID, password) {
headers: { 'Authorization': 'Basic ' + btoa(userID + ":" + password) } headers: { 'Authorization': 'Basic ' + btoa(userID + ":" + password) }
}; };
console.log(userID)
console.log(password)
return fetch('https://localhost/api/authenticate', requestOptions) return fetch('https://localhost/api/authenticate', requestOptions)
.then(handleResponse) .then(handleResponse)
.then(userSession => { .then(userSession => {
...@@ -114,5 +111,5 @@ function handleResponse(response) { ...@@ -114,5 +111,5 @@ function handleResponse(response) {
} }
function logout() { function logout() {
console.error('Should irgendas') console.error('Should logout')
} }
\ No newline at end of file
...@@ -3,8 +3,11 @@ import React, { Component } from "react"; ...@@ -3,8 +3,11 @@ import React, { Component } from "react";
class PrivatePage extends Component { class PrivatePage extends Component {
render() { render() {
return ( return (
<div> <div className="page-content" id="StartPage" style={{ height: '50vw', display: 'flex', justifyContent: 'center', backgroundColor: '#2f2f44' }}>
<h1>PSSSST thats private!</h1> <div style={{ width: '50rem', height: '25rem', padding: '10rem', margin: '5rem', backgroundColor: 'rgba(0, 0, 0, 0.8)' }}>
<h3 style={{ color: 'white' }}>You successfully logged into your private page</h3>
<p style={{ color: 'white' }}> This is going to be your personal page.</p>
</div>
</div> </div>
) )
} }
......
...@@ -4,8 +4,12 @@ import LoginButton from "./loginButton"; ...@@ -4,8 +4,12 @@ import LoginButton from "./loginButton";
class PublicPage extends Component { class PublicPage extends Component {
render() { render() {
return ( return (
<div> <div className="page-content" id="LandingPage" style={{ backgroundImage: 'url("https://www.ffn.de/fileadmin/ffn.de/programm/ausbildungsboerse/studium.jpg")', height: '50vw', backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundColor: '#2b3648', padding: '10rem', display: 'flex', justifyContent: 'center' }}>
<LoginButton /> <div style={{ width: '50rem', height: '25rem', padding: '10rem', backgroundColor: 'rgba(0, 0, 0, 0.8)' }}>
<h3 style={{ color: 'white' }}>Berliner Hochschule für Technik</h3>
<p style={{ color: 'white' }}>Herzlich Willkommen auf der unserer Homepage!</p>
<LoginButton />
</div>
</div> </div>
) )
} }
......
...@@ -3,32 +3,35 @@ import Nav from 'react-bootstrap/Nav'; ...@@ -3,32 +3,35 @@ import Nav from 'react-bootstrap/Nav';
import Navbar from 'react-bootstrap/Navbar'; import Navbar from 'react-bootstrap/Navbar';
import NavDropdown from 'react-bootstrap/NavDropdown'; import NavDropdown from 'react-bootstrap/NavDropdown';
import UserSessionWidget from "./userSessionWidget"; import UserSessionWidget from "./userSessionWidget";
import Container from 'react-bootstrap/Container';
class TopMenu extends Component { class TopMenu extends Component {
render() { render() {
return ( return (
<div> <div>
<Navbar bg="light" expand="lg"> <Navbar bg="light" expand="lg">
<Navbar.Brand href="#home">BHT</Navbar.Brand> <Container style={{margin: 0}}>
<Navbar.Toggle aria-controls="basic-navbar-nav" /> <Navbar.Brand href="#home">BHT</Navbar.Brand>
<Navbar.Collapse id="basic-navbar-nav"> <Navbar.Toggle aria-controls="basic-navbar-nav" />
<Nav className="mr-auto"> <Navbar.Collapse id="basic-navbar-nav" style={{display: 'flex', flexWrap: 'row', justifyContent: 'space-between', width: '100%'}}>
<Nav.Link href="#home">Home</Nav.Link> <Nav className="mr-auto">
<Nav.Link href="#link">Link</Nav.Link> <Nav.Link href="#home">Home</Nav.Link>
<NavDropdown title="Dropdown" id="basic-nav-dropdown"> <Nav.Link href="#link">Link</Nav.Link>
<NavDropdown.Item href="#action/3.1">Action</NavDropdown.Item> <NavDropdown title="Dropdown" id="basic-nav-dropdown">
<NavDropdown.Item href="#action/3.2"> <NavDropdown.Item href="#action/3.1">Action</NavDropdown.Item>
Another action <NavDropdown.Item href="#action/3.2">
</NavDropdown.Item> Another action
<NavDropdown.Item href="#action/3.3">Something</NavDropdown.Item> </NavDropdown.Item>
<NavDropdown.Divider /> <NavDropdown.Item href="#action/3.3">Something</NavDropdown.Item>
<NavDropdown.Item href="#action/3.4"> <NavDropdown.Divider />
Separated link <NavDropdown.Item href="#action/3.4">
</NavDropdown.Item> Separated link
</NavDropdown> </NavDropdown.Item>
</Nav> </NavDropdown>
<UserSessionWidget /> </Nav>
</Navbar.Collapse> <UserSessionWidget />
</Navbar.Collapse>
</Container>
</Navbar> </Navbar>
</div> </div>
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment