Skip to content

Commit fa31922

Browse files
committed
Integrate Redux + Add Authentication flow
1 parent de79aef commit fa31922

20 files changed

+716
-287
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GRAPHQL_API_ENDPOINT = "http://127.0.0.1:8000"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# community-forum-frontend
1+
# Spansberry Frontend

package-lock.json

Lines changed: 110 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
{
2-
"name": "community-forum-frontend",
2+
"name": "spansberry-frontend",
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
66
"@material-ui/core": "^4.10.2",
7+
"@reduxjs/toolkit": "^1.4.0",
78
"@testing-library/jest-dom": "^4.2.4",
89
"@testing-library/react": "^9.3.2",
910
"@testing-library/user-event": "^7.1.2",
1011
"@tinymce/tinymce-react": "^3.6.0",
12+
"axios": "^0.21.0",
13+
"bootstrap": "^4.5.3",
14+
"dotenv": "^8.2.0",
1115
"draft-js": "^0.11.6",
1216
"html-react-parser": "^0.13.0",
17+
"joi": "^17.3.0",
1318
"node-sass": "^4.14.1",
1419
"react": "^16.13.1",
1520
"react-beautiful-dnd": "^13.0.0",
@@ -18,9 +23,12 @@
1823
"react-html-parser": "^2.0.2",
1924
"react-icons": "^3.10.0",
2025
"react-markdown-renderer": "^1.4.0",
26+
"react-redux": "^7.2.2",
2127
"react-router-dom": "^5.2.0",
2228
"react-scripts": "3.4.1",
2329
"react-tagsinput": "^3.19.0",
30+
"redux": "^4.0.5",
31+
"redux-thunk": "^2.3.0",
2432
"remarkable": "^2.0.1",
2533
"socket.io-client": "^2.3.0"
2634
},

src/App.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import React from "react";
2-
import "./App.css";
32
import Router from "./router";
43

54
function App() {
65
return (
76
<React.Fragment>
8-
<link
9-
rel="stylesheet"
10-
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
11-
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
12-
crossorigin="anonymous"
13-
/>
7+
{/* Navbar component to be added */}
148
<Router />
159
</React.Fragment>
1610
);

src/App.css renamed to src/App.scss

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
body {
2+
margin: 0;
3+
font-family: 'Inter', sans-serif;
4+
-webkit-font-smoothing: antialiased;
5+
-moz-osx-font-smoothing: grayscale;
6+
}
7+
8+
code {
9+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
10+
monospace;
11+
}
12+
113
.App {
214
text-align: center;
315
}
@@ -37,3 +49,31 @@
3749
transform: rotate(360deg);
3850
}
3951
}
52+
53+
//buttons
54+
.primary-button {
55+
background-color: $primary-button;
56+
margin-top: 15px;
57+
padding: 8px 25px;
58+
}
59+
60+
//alerts
61+
.alert {
62+
color: $error-red;
63+
font-weight: 500;
64+
}
65+
66+
//forms
67+
.form-group {
68+
label {
69+
color: $form-label;
70+
font-size: 1rem;
71+
font-weight: 500;
72+
padding-top: 1rem;
73+
}
74+
}
75+
76+
.form-field-error {
77+
color: $error-red;
78+
padding-top: 0.5rem;
79+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.login-form {
2+
padding: 15px;
3+
}

0 commit comments

Comments
 (0)