-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
7 changed files
with
52 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
} |
10 changes: 5 additions & 5 deletions
10
src/components/tests/App.test.js → src/components/Home/App.test.js
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import React from 'react' | ||
import { shallow } from 'enzyme' | ||
import App from '../Home' | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import App from './Home'; | ||
|
||
describe('App', () => { | ||
it('Should render without crashing', function () { | ||
const app = shallow(<App />) | ||
expect(app.length).toBe(1) | ||
}) | ||
}) | ||
}); | ||
}); |
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,16 @@ | ||
import React, { Component } from 'react'; | ||
import '../../App.css'; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<p>WELCOME TO AUTHORS HAVEN</p> | ||
</header> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default App; |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
import React from 'react'; | ||
|
||
export default () => { | ||
return ( | ||
<div> | ||
<form> | ||
<input type="text" placeholder="Username" /> | ||
<input type="password" placeholder="Password" /> | ||
<button>Login</button> | ||
</form> | ||
</div> | ||
); | ||
}; |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import React, { Component } from 'react' | ||
import Login from '../components/Login' | ||
import Home from '../components/Home' | ||
import { BrowserRouter, Route, Switch } from 'react-router-dom' | ||
import React, { Component } from 'react'; | ||
import Login from '../components/Login/Login'; | ||
import Home from '../components/Home/Home'; | ||
import { BrowserRouter, Route, Switch } from 'react-router-dom'; | ||
|
||
const Approuter = () => ( | ||
<BrowserRouter> | ||
<div> | ||
<Switch> | ||
<Route path='/' component={Home} exact /> | ||
<Route path='/login' component={Login} /> | ||
<Route path="/" component={Home} exact /> | ||
<Route path="/login" component={Login} /> | ||
</Switch> | ||
</div> | ||
</BrowserRouter> | ||
) | ||
); | ||
|
||
export default Approuter | ||
export default Approuter; |