This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34da24e
commit 0f313b7
Showing
4 changed files
with
108 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React, { Component } from 'react'; | ||
import { Route, NavLink, BrowserRouter as Router} from "react-router-dom"; | ||
// import Search from "./Search"; | ||
// import Rental from "./Rental"; | ||
// import RentalsList from "./RentalsList"; | ||
// import RentalLibrary from "./RentalLibrary"; | ||
// import CustomerList from "./CustomerList"; | ||
|
||
class Dashboard extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
teacher: undefined, | ||
course: undefined, | ||
}; | ||
} | ||
|
||
// selectCustomer = (customer) => { | ||
// this.setState({ | ||
// selectedCustomer: customer, | ||
// }); | ||
// } | ||
|
||
// selectMovie = (movie) => { | ||
// this.setState({ | ||
// selectedMovie: movie | ||
// }); | ||
// } | ||
|
||
// clearSelection = () => { | ||
// this.setState({ | ||
// selectedCustomer: undefined, | ||
// selectedMovie: undefined, | ||
// rentalSubmitted: true, | ||
// }) | ||
// } | ||
|
||
render () { | ||
return ( | ||
// <Router> | ||
// <div className="App"> | ||
// <h1>Classroom Live - Welcome, User</h1> | ||
// {/* <section><Rental movie={this.state.selectedMovie} customer={this.state.selectedCustomer} clearSelection={this.clearSelection}/></section> */} | ||
// <ul className="header"> | ||
// {/* only show if course selected */} | ||
// <li><NavLink to="/live">Go Live</NavLink></li> | ||
// {/* <li><NavLink to="/settings">Settings</NavLink></li> */} | ||
// <li><NavLink to="/logout">Logout</NavLink></li> | ||
// {/* <li><NavLink to="/video-store-consumer/rentals">Rentals</NavLink></li> */} | ||
// </ul> | ||
// <div className="content"> | ||
// <Route path="/video-store-consumer/search" component={Search}/> | ||
// <Route path="/video-store-consumer/movies" render={() => <RentalLibrary selectMovie={this.selectMovie}/>}/> | ||
// <Route path="/video-store-consumer/customers" render={() => <CustomerList selectCustomer={this.selectCustomer} />}/> | ||
// <Route path="/video-store-consumer/rentals" component={RentalsList}/> | ||
// </div> | ||
// </div> | ||
// </Router> | ||
) | ||
} | ||
} | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.nav { | ||
display: grid; | ||
grid-template-columns: 8fr 1fr 1fr; | ||
align-items: baseline; | ||
} | ||
|
||
h2 { | ||
text-align: left; | ||
padding-left: 25px; | ||
} | ||
|
||
h4{ | ||
text-align: right; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React, { Component } from 'react'; | ||
import './NavBar.css'; | ||
|
||
class NavBar extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
user: "Katie", | ||
course: 1, | ||
}; | ||
} | ||
|
||
render () { | ||
return ( | ||
<nav className="nav"> | ||
<h2>Classroom Live - Welcome, {this.state.user}!</h2> | ||
<p>Go Live</p> | ||
<p>Logout</p> | ||
</nav> | ||
)}; | ||
} | ||
|
||
export default NavBar; |