Skip to content

Commit 1b3a058

Browse files
committed
Creating Questions Page
1 parent 7966c7f commit 1b3a058

File tree

8 files changed

+73
-3
lines changed

8 files changed

+73
-3
lines changed

.eslintcache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"F:\\ju-query\\src\\index.js":"1","F:\\ju-query\\src\\App.js":"2","F:\\ju-query\\src\\app\\store.js":"3","F:\\ju-query\\src\\firebase.js":"4","F:\\ju-query\\src\\features\\userSlice.js":"5","F:\\ju-query\\src\\features\\questionSlice.js":"6","F:\\ju-query\\src\\components\\auth\\Login.js":"7","F:\\ju-query\\src\\components\\sidebar\\Sidebar.js":"8","F:\\ju-query\\src\\components\\sidebar\\SidebarOptions.js":"9","F:\\ju-query\\src\\components\\widget\\Widget.js":"10","F:\\ju-query\\src\\components\\widget\\WidgetOptions.js":"11","F:\\ju-query\\src\\components\\navbar\\Navbar.js":"12","F:\\ju-query\\src\\components\\querybox\\QueryBox.js":"13","F:\\ju-query\\src\\components\\post\\Post.js":"14","F:\\ju-query\\src\\components\\post\\Feed.js":"15","F:\\ju-query\\src\\pages\\homepage\\HomePage.js":"16","F:\\ju-query\\src\\pages\\followingpage\\Following.js":"17","F:\\ju-query\\src\\pages\\followingpage\\FollowingPage.js":"18"},{"size":488,"mtime":1634272975483,"results":"19","hashOfConfig":"20"},{"size":1930,"mtime":1634273346286,"results":"21","hashOfConfig":"20"},{"size":402,"mtime":1631293726498,"results":"22","hashOfConfig":"20"},{"size":1471,"mtime":1631255273595,"results":"23","hashOfConfig":"20"},{"size":464,"mtime":1631255273594,"results":"24","hashOfConfig":"20"},{"size":623,"mtime":1631293563878,"results":"25","hashOfConfig":"20"},{"size":6600,"mtime":1631281832854,"results":"26","hashOfConfig":"20"},{"size":261,"mtime":1633964247517,"results":"27","hashOfConfig":"20"},{"size":2697,"mtime":1633964251328,"results":"28","hashOfConfig":"20"},{"size":360,"mtime":1633964296836,"results":"29","hashOfConfig":"20"},{"size":2457,"mtime":1633964304693,"results":"30","hashOfConfig":"20"},{"size":6085,"mtime":1634272975483,"results":"31","hashOfConfig":"20"},{"size":5658,"mtime":1633965033487,"results":"32","hashOfConfig":"20"},{"size":6300,"mtime":1633965019913,"results":"33","hashOfConfig":"20"},{"size":1033,"mtime":1633965160338,"results":"34","hashOfConfig":"20"},{"size":589,"mtime":1634272976253,"results":"35","hashOfConfig":"20"},{"size":204,"mtime":1634272976253,"results":"36","hashOfConfig":"20"},{"size":496,"mtime":1634272737531,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"18kk1cw",{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"F:\\ju-query\\src\\index.js",[],"F:\\ju-query\\src\\App.js",[],"F:\\ju-query\\src\\app\\store.js",[],["75","76"],"F:\\ju-query\\src\\firebase.js",[],"F:\\ju-query\\src\\features\\userSlice.js",[],"F:\\ju-query\\src\\features\\questionSlice.js",[],"F:\\ju-query\\src\\components\\auth\\Login.js",[],"F:\\ju-query\\src\\components\\sidebar\\Sidebar.js",[],"F:\\ju-query\\src\\components\\sidebar\\SidebarOptions.js",[],"F:\\ju-query\\src\\components\\widget\\Widget.js",[],"F:\\ju-query\\src\\components\\widget\\WidgetOptions.js",[],"F:\\ju-query\\src\\components\\navbar\\Navbar.js",[],"F:\\ju-query\\src\\components\\querybox\\QueryBox.js",[],"F:\\ju-query\\src\\components\\post\\Post.js",[],"F:\\ju-query\\src\\components\\post\\Feed.js",[],"F:\\ju-query\\src\\pages\\homepage\\HomePage.js",[],"F:\\ju-query\\src\\pages\\followingpage\\Following.js",[],"F:\\ju-query\\src\\pages\\followingpage\\FollowingPage.js",[],{"ruleId":"77","replacedBy":"78"},{"ruleId":"79","replacedBy":"80"},"no-native-reassign",["81"],"no-negated-in-lhs",["82"],"no-global-assign","no-unsafe-negation"]
1+
[{"F:\\ju-query\\src\\index.js":"1","F:\\ju-query\\src\\App.js":"2","F:\\ju-query\\src\\app\\store.js":"3","F:\\ju-query\\src\\firebase.js":"4","F:\\ju-query\\src\\features\\userSlice.js":"5","F:\\ju-query\\src\\features\\questionSlice.js":"6","F:\\ju-query\\src\\components\\auth\\Login.js":"7","F:\\ju-query\\src\\components\\sidebar\\Sidebar.js":"8","F:\\ju-query\\src\\components\\sidebar\\SidebarOptions.js":"9","F:\\ju-query\\src\\components\\widget\\Widget.js":"10","F:\\ju-query\\src\\components\\widget\\WidgetOptions.js":"11","F:\\ju-query\\src\\components\\navbar\\Navbar.js":"12","F:\\ju-query\\src\\components\\querybox\\QueryBox.js":"13","F:\\ju-query\\src\\components\\post\\Post.js":"14","F:\\ju-query\\src\\components\\post\\Feed.js":"15","F:\\ju-query\\src\\pages\\homepage\\HomePage.js":"16","F:\\ju-query\\src\\pages\\followingpage\\Following.js":"17","F:\\ju-query\\src\\pages\\followingpage\\FollowingPage.js":"18"},{"size":488,"mtime":1634272975483,"results":"19","hashOfConfig":"20"},{"size":2069,"mtime":1634277541201,"results":"21","hashOfConfig":"20"},{"size":402,"mtime":1631293726498,"results":"22","hashOfConfig":"20"},{"size":1471,"mtime":1631255273595,"results":"23","hashOfConfig":"20"},{"size":464,"mtime":1631255273594,"results":"24","hashOfConfig":"20"},{"size":623,"mtime":1631293563878,"results":"25","hashOfConfig":"20"},{"size":6600,"mtime":1631281832854,"results":"26","hashOfConfig":"20"},{"size":261,"mtime":1633964247517,"results":"27","hashOfConfig":"20"},{"size":2697,"mtime":1633964251328,"results":"28","hashOfConfig":"20"},{"size":360,"mtime":1633964296836,"results":"29","hashOfConfig":"20"},{"size":2457,"mtime":1633964304693,"results":"30","hashOfConfig":"20"},{"size":6085,"mtime":1634272975483,"results":"31","hashOfConfig":"20"},{"size":5658,"mtime":1633965033487,"results":"32","hashOfConfig":"20"},{"size":6300,"mtime":1633965019913,"results":"33","hashOfConfig":"20"},{"size":1033,"mtime":1633965160338,"results":"34","hashOfConfig":"20"},{"size":589,"mtime":1634272976253,"results":"35","hashOfConfig":"20"},{"size":204,"mtime":1634272976253,"results":"36","hashOfConfig":"20"},{"size":496,"mtime":1634272737531,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"18kk1cw",{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"F:\\ju-query\\src\\index.js",[],"F:\\ju-query\\src\\App.js",[],"F:\\ju-query\\src\\app\\store.js",[],["75","76"],"F:\\ju-query\\src\\firebase.js",[],"F:\\ju-query\\src\\features\\userSlice.js",[],"F:\\ju-query\\src\\features\\questionSlice.js",[],"F:\\ju-query\\src\\components\\auth\\Login.js",[],"F:\\ju-query\\src\\components\\sidebar\\Sidebar.js",[],"F:\\ju-query\\src\\components\\sidebar\\SidebarOptions.js",[],"F:\\ju-query\\src\\components\\widget\\Widget.js",[],"F:\\ju-query\\src\\components\\widget\\WidgetOptions.js",[],"F:\\ju-query\\src\\components\\navbar\\Navbar.js",[],"F:\\ju-query\\src\\components\\querybox\\QueryBox.js",[],"F:\\ju-query\\src\\components\\post\\Post.js",[],"F:\\ju-query\\src\\components\\post\\Feed.js",[],"F:\\ju-query\\src\\pages\\homepage\\HomePage.js",[],"F:\\ju-query\\src\\pages\\followingpage\\Following.js",[],"F:\\ju-query\\src\\pages\\followingpage\\FollowingPage.js",[],{"ruleId":"77","replacedBy":"78"},{"ruleId":"79","replacedBy":"80"},"no-native-reassign",["81"],"no-negated-in-lhs",["82"],"no-global-assign","no-unsafe-negation"]

src/App.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
import React, { useEffect } from 'react';
22
import { useDispatch, useSelector } from 'react-redux';
33
import { Switch, Route } from 'react-router-dom';
4+
45
import { login, logout, selectUser } from './features/userSlice';
56
import { auth } from './firebase';
6-
import HomePage from './pages/homepage/HomePage';
7+
78
import Login from './components/auth/Login';
8-
import './App.css';
9+
import HomePage from './pages/homepage/HomePage';
910
import Following from './pages/followingpage/FollowingPage';
11+
import Questions from './pages/questionpage/QuestionsPage';
12+
13+
import './App.css';
1014

1115
function App() {
1216
const user = useSelector(selectUser);
@@ -44,6 +48,7 @@ function App() {
4448
<Switch>
4549
<Route exact={true} path='/' component={HomePage} />
4650
<Route exact path='/following' component={Following} />
51+
<Route exact path='/question' component={Questions} />
4752
</Switch>
4853
</div>
4954
)

src/components/sidebar/Question.css

Whitespace-only changes.

src/components/sidebar/Question.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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;

src/components/sidebar/QuestionOptions.css

Whitespace-only changes.
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.Questions__content {
2+
display: flex;
3+
justify-content: center;
4+
margin-top: 50px;
5+
}
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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;

0 commit comments

Comments
 (0)