File tree 10 files changed +97
-3
lines changed
10 files changed +97
-3
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
1
import React , { useEffect } from 'react' ;
2
2
import { useDispatch , useSelector } from 'react-redux' ;
3
3
import { Switch , Route } from 'react-router-dom' ;
4
+
4
5
import { login , logout , selectUser } from './features/userSlice' ;
5
6
import { auth } from './firebase' ;
6
- import HomePage from './pages/homepage/HomePage' ;
7
+
7
8
import Login from './components/auth/Login' ;
9
+ import HomePage from './pages/homepage/HomePage' ;
10
+ import Following from './pages/followingpage/FollowingPage' ;
11
+ import Questions from './pages/questionpage/QuestionsPage' ;
12
+
8
13
import './App.css' ;
9
- import Following from './pages/followingpage/Following' ;
10
14
11
15
function App ( ) {
12
16
const user = useSelector ( selectUser ) ;
@@ -44,6 +48,7 @@ function App() {
44
48
< Switch >
45
49
< Route exact = { true } path = '/' component = { HomePage } />
46
50
< Route exact path = '/following' component = { Following } />
51
+ < Route exact path = '/question' component = { Questions } />
47
52
</ Switch >
48
53
</ div >
49
54
)
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import QuestionOptions from './QuestionOptions' ;
3
+ import './Question.css' ;
4
+
5
+ function Question ( ) {
6
+ return (
7
+ < div className = "sidebar" >
8
+ < QuestionOptions />
9
+ </ div >
10
+ )
11
+ }
12
+
13
+ export default Question ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import './QuestionOptions.css' ;
3
+
4
+ function QuestionOptions ( ) {
5
+ return (
6
+ < div >
7
+ < div className = "options" >
8
+ < div className = "heading" >
9
+ < strong > Questions</ strong >
10
+ </ div >
11
+ < div className = "option" >
12
+ < img src = "https://qphs.fs.quoracdn.net/main-thumb-t-2177-100-JiR07D1TQSfeQzRvWXomVaY4Poj2f8Yb.jpeg" alt = "Tech" />
13
+ < p > Questions for you</ p >
14
+ </ div >
15
+ < div className = "option" >
16
+ < img src = "https://qphs.fs.quoracdn.net/main-thumb-t-18797-100-B7cd2Zkrhke1Bd3yn2Vq0HIwXIVg0JaW.jpeg" alt = "Events" />
17
+ < p > Answer requests</ p >
18
+ </ div >
19
+ < div className = "option" >
20
+ < img src = "https://qphs.fs.quoracdn.net/main-thumb-t-3906-100-3WJwKe2alb83spIH7rfECXY49noETA9x.jpeg" alt = "innovation" />
21
+ < p > Answer Drafts</ p >
22
+ </ div >
23
+ </ div >
24
+ </ div >
25
+ )
26
+ }
27
+
28
+ export default QuestionOptions ;
Original file line number Diff line number Diff line change
1
+ .Following__content {
2
+ display : flex;
3
+ justify-content : center;
4
+ margin-top : 50px ;
5
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import Navbar from '../../components/navbar/Navbar' ;
3
+ import Sidebar from '../../components/sidebar/Sidebar' ;
4
+ import Feed from '../../components/post/Feed' ;
5
+ import './FollowingPage.css' ;
6
+
7
+ function FollowingPage ( ) {
8
+ return (
9
+ < div className = "home" >
10
+ < Navbar />
11
+ < div className = "Following__content" >
12
+ < Sidebar />
13
+ < Feed />
14
+ </ div >
15
+ </ div >
16
+ )
17
+ }
18
+
19
+ export default FollowingPage ;
Original file line number Diff line number Diff line change
1
+ .Questions__content {
2
+ display : flex;
3
+ justify-content : center;
4
+ margin-top : 50px ;
5
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import Navbar from '../../components/navbar/Navbar' ;
3
+ import Question from '../../components/sidebar/Question' ;
4
+ import Feed from '../../components/post/Feed' ;
5
+ import './QuestionsPage.css' ;
6
+
7
+ function QuestionsPage ( ) {
8
+ return (
9
+ < div className = "home" >
10
+ < Navbar />
11
+ < div className = "Questions__content" >
12
+ < Question />
13
+ < Feed />
14
+ </ div >
15
+ </ div >
16
+ )
17
+ }
18
+
19
+ export default QuestionsPage ;
You can’t perform that action at this time.
0 commit comments