Skip to content

Commit

Permalink
react-router
Browse files Browse the repository at this point in the history
  • Loading branch information
fazer1929 committed Oct 5, 2021
1 parent 3b7c0b2 commit 75b9416
Show file tree
Hide file tree
Showing 7 changed files with 255 additions and 6 deletions.
210 changes: 210 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"axios": "^0.21.4",
"bootstrap": "^5.1.1",
"react": "^17.0.2",
"react-bootstrap": "^2.0.0-rc.0",
"react-dom": "^17.0.2",
"react-google-login": "^5.2.2",
"react-redux": "^7.2.5",
"react-router": "^5.2.1",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"react-strap": "0.0.1",
"redux": "^4.1.1",
Expand Down
17 changes: 14 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import "./App.css";
import {BrowserRouter as Router, Switch,Route} from 'react-router-dom'
import LoginPage from "./Pages/Login";
import Sample from "./Pages/Sample";

function App() {
return <div className="App">
<LoginPage/>
</div>;
return(
<Router>
<Switch>
<Route path='/' exact>
<Sample/>
</Route>
<Route path='login' exact>
<LoginPage/>
</Route>
</Switch>
</Router>
)
}

export default App;
11 changes: 11 additions & 0 deletions src/Components/CurationCard/CurationCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'
import {Card,Button, Row, Col, Container} from 'react-bootstrap'
import { Link } from 'react-router-dom'
import styles from './CurationCard.module.css';
export default function CurationCard({upvotes,title,description,subject,author}) {
return (
<Card>

</Card>
)
}
Empty file.
10 changes: 10 additions & 0 deletions src/Pages/Sample.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
import CurationCard from '../Components/CurationCard/CurationCard'

export default function Sample() {
return (
<div>
<CurationCard/>
</div>
)
}
Loading

0 comments on commit 75b9416

Please sign in to comment.