Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #18

Open
wants to merge 335 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
335 commits
Select commit Hold shift + click to select a range
f4222fc
fix
OBakir90 Oct 22, 2020
d4232e0
fix
OBakir90 Oct 22, 2020
a69970a
fix
OBakir90 Oct 22, 2020
ad40e8f
changing the endPoints
Buchraatkeh1984 Oct 22, 2020
0887572
fix
OBakir90 Oct 22, 2020
f33d016
fix
OBakir90 Oct 22, 2020
196dfc7
fix
OBakir90 Oct 22, 2020
b988f3b
auth context ready
OBakir90 Oct 22, 2020
53a9a90
auth context ready
OBakir90 Oct 22, 2020
5f9325d
auth context ready
OBakir90 Oct 22, 2020
68fa033
login page added
OBakir90 Oct 22, 2020
cfe5228
view detail page header added
OBakir90 Oct 22, 2020
4fff2d5
view detail page
OBakir90 Oct 22, 2020
faf0ac6
view detail
OBakir90 Oct 22, 2020
1cb4e16
fix
OBakir90 Oct 22, 2020
5c9beb3
fix
OBakir90 Oct 23, 2020
921b3c6
some fixes
OBakir90 Oct 23, 2020
9f93073
bug fixing
OBakir90 Oct 23, 2020
065a7a6
fixed issues
OBakir90 Oct 23, 2020
1b38b0a
again fix
OBakir90 Oct 23, 2020
10e78c0
edit profile page added
OBakir90 Oct 23, 2020
2646f34
changing the endPoints
Buchraatkeh1984 Oct 23, 2020
3320261
changing the endPoints
Buchraatkeh1984 Oct 23, 2020
fd657bc
back button path added
OBakir90 Oct 23, 2020
79c7707
fixed logout
OBakir90 Oct 23, 2020
700c844
cancel
OBakir90 Oct 23, 2020
b0376b2
protected route added
OBakir90 Oct 23, 2020
26bc204
fix
OBakir90 Oct 23, 2020
d8f9cb4
fix
OBakir90 Oct 23, 2020
fc9fb96
fix
OBakir90 Oct 23, 2020
7ef03a9
fix
OBakir90 Oct 23, 2020
f3f6f7e
fix
OBakir90 Oct 23, 2020
eb61558
fix
OBakir90 Oct 23, 2020
6ce792e
cancel button changed
OBakir90 Oct 23, 2020
ccb11d8
fix
OBakir90 Oct 23, 2020
0f99aa7
changing the endPoints
Buchraatkeh1984 Oct 23, 2020
5c275e0
changing the endPoints
Buchraatkeh1984 Oct 23, 2020
059c179
fix
OBakir90 Oct 23, 2020
5cb28c4
home test
OBakir90 Oct 23, 2020
72a4f6b
viewdetail
OBakir90 Oct 23, 2020
7cc4b5d
view profile
OBakir90 Oct 23, 2020
e195ba7
fix
OBakir90 Oct 23, 2020
54e3bf7
fix
OBakir90 Oct 23, 2020
5ef51a7
fix
OBakir90 Oct 23, 2020
edc56ee
fix
OBakir90 Oct 23, 2020
5d3f808
fix
OBakir90 Oct 23, 2020
92757f8
changes
OBakir90 Oct 23, 2020
be05626
fix
OBakir90 Oct 23, 2020
0a00983
changed back button
OBakir90 Oct 23, 2020
ec053d1
x
OBakir90 Oct 23, 2020
d38ffd6
link
OBakir90 Oct 23, 2020
2278110
link
OBakir90 Oct 23, 2020
17b0586
x
OBakir90 Oct 23, 2020
23eddc4
some changes
OBakir90 Oct 23, 2020
49a47f2
auth context has changed
OBakir90 Oct 23, 2020
89f88da
fix
OBakir90 Oct 23, 2020
7ed4569
fix
OBakir90 Oct 23, 2020
a927060
fix
OBakir90 Oct 23, 2020
24d5efa
fix
OBakir90 Oct 23, 2020
7054bab
fix
OBakir90 Oct 23, 2020
920fa0f
fix
OBakir90 Oct 23, 2020
5b94d7b
fizz
OBakir90 Oct 23, 2020
60f3601
buzz
OBakir90 Oct 23, 2020
2e17c8a
fizz
OBakir90 Oct 23, 2020
36fed94
buzz
OBakir90 Oct 23, 2020
901795d
fizzz
OBakir90 Oct 23, 2020
d09cfac
buzz
OBakir90 Oct 23, 2020
282c65d
fiz
OBakir90 Oct 23, 2020
c59b255
fizzz
OBakir90 Oct 23, 2020
65251ec
fizz
OBakir90 Oct 23, 2020
96a7c4c
buzzzz
OBakir90 Oct 23, 2020
cc64460
fizzbuzz
OBakir90 Oct 24, 2020
eeae8d8
fix
OBakir90 Oct 24, 2020
b72b427
err
OBakir90 Oct 24, 2020
8aaa428
edit profile handling
OBakir90 Oct 24, 2020
fdabe1b
fix
OBakir90 Oct 24, 2020
ac8b4d6
fix
OBakir90 Oct 24, 2020
c096775
fix
OBakir90 Oct 24, 2020
8b9df8d
fix
OBakir90 Oct 24, 2020
f440234
refactored
OBakir90 Oct 24, 2020
5cc22ae
status has changed
OBakir90 Oct 24, 2020
fb70727
url has changed
OBakir90 Oct 24, 2020
8c416a4
logout
OBakir90 Oct 24, 2020
cd0f5eb
fiizz
OBakir90 Oct 24, 2020
86c4e9e
changed get profiles url
OBakir90 Oct 24, 2020
074d0e3
viewskills removed
OBakir90 Oct 24, 2020
95cbe36
Merge branch 'develop' into endpoints
OBakir90 Oct 24, 2020
16f0ad1
Merge pull request #11 from OBakir90/endpoints
OBakir90 Oct 24, 2020
0d52373
fixed issue
OBakir90 Oct 24, 2020
5073664
Merge branch 'develop' into auth-context
OBakir90 Oct 24, 2020
80d4236
Merge pull request #10 from OBakir90/auth-context
OBakir90 Oct 24, 2020
ccd4ada
Merge branch 'develop' into pages-designs
OBakir90 Oct 24, 2020
d0cddb3
Merge pull request #12 from OBakir90/pages-designs
OBakir90 Oct 24, 2020
a1066cb
changed accounts url
OBakir90 Oct 24, 2020
3896c68
get profile and auth flow changed
OBakir90 Oct 26, 2020
dee4c61
fix
OBakir90 Oct 26, 2020
1bd356a
fix
OBakir90 Oct 26, 2020
60b2ea5
try
OBakir90 Oct 26, 2020
6038e64
try
OBakir90 Oct 26, 2020
c37f3ea
last
OBakir90 Oct 26, 2020
9d8d579
d
OBakir90 Oct 26, 2020
ffc444a
get profile with id
OBakir90 Oct 26, 2020
a8d56cc
fix
OBakir90 Oct 26, 2020
4a24d02
url changed
OBakir90 Oct 26, 2020
2348c7e
fix
OBakir90 Oct 26, 2020
89da89a
try
OBakir90 Oct 26, 2020
574812f
axios
OBakir90 Oct 26, 2020
4d7f44c
fix
OBakir90 Oct 26, 2020
e37fa3f
try
OBakir90 Oct 26, 2020
cc5dba1
try
OBakir90 Oct 26, 2020
271fb82
try
OBakir90 Oct 26, 2020
3435a06
fix
OBakir90 Oct 26, 2020
e076526
fix
OBakir90 Oct 26, 2020
27b6a8e
fix
OBakir90 Oct 26, 2020
c433c5a
test
OBakir90 Oct 26, 2020
2f6023a
test
OBakir90 Oct 26, 2020
1e0fb11
fix
OBakir90 Oct 26, 2020
4bf6d7e
test
OBakir90 Oct 26, 2020
45b4333
test
OBakir90 Oct 26, 2020
166e36a
test
OBakir90 Oct 26, 2020
4ab8343
last
OBakir90 Oct 26, 2020
905d580
fix
OBakir90 Oct 26, 2020
656fd2f
auth link changed
OBakir90 Oct 26, 2020
f9e1463
fix
OBakir90 Oct 26, 2020
c5cdf7d
changed action
OBakir90 Oct 26, 2020
02eda5e
database connected locally
OBakir90 Oct 26, 2020
bdc88ed
view-create profiles works fine
OBakir90 Oct 26, 2020
b182522
api test
OBakir90 Oct 27, 2020
e0ef864
removed db connect
OBakir90 Oct 27, 2020
4e6e2b8
url s has been changed
OBakir90 Oct 27, 2020
7aa6283
db connect added again
OBakir90 Oct 27, 2020
b65d34b
test
OBakir90 Oct 27, 2020
473d965
test
OBakir90 Oct 27, 2020
1f668af
about me added and put request connected
OBakir90 Oct 28, 2020
a5f1b00
test
OBakir90 Oct 28, 2020
8054cf1
test
OBakir90 Oct 28, 2020
32c0fc2
test
OBakir90 Oct 28, 2020
db35461
test
OBakir90 Oct 28, 2020
311d0f7
added location, links, interests, aboutme
OBakir90 Oct 28, 2020
fb2e32d
styling front end
Buchraatkeh1984 Oct 29, 2020
58f5be3
Merge pull request #13 from OBakir90/styling-frontend
OBakir90 Oct 30, 2020
f5d8575
styling_frontend 1
Buchraatkeh1984 Oct 30, 2020
8af63b8
Merge pull request #14 from OBakir90/styling-frontend
OBakir90 Oct 30, 2020
77d0830
package lock removed
OBakir90 Oct 30, 2020
8ac25b5
skills view added
OBakir90 Oct 30, 2020
797be10
skills view added
OBakir90 Oct 30, 2020
e68b67b
location removed
OBakir90 Oct 30, 2020
309146f
skills removed from overview card and added to form
OBakir90 Oct 30, 2020
0e5ee7e
add interest removed
OBakir90 Oct 30, 2020
7c19625
conditional run newskills
OBakir90 Oct 30, 2020
e0ab807
skills change
OBakir90 Oct 30, 2020
8ee7d1c
add skills overview page
OBakir90 Oct 30, 2020
7cf0a1e
fix
OBakir90 Oct 30, 2020
0a3d7a2
added text
OBakir90 Oct 30, 2020
4143d76
put request cleaned
OBakir90 Oct 30, 2020
79e06ee
post request end point changed
OBakir90 Oct 30, 2020
d1857d8
post request changed
OBakir90 Oct 30, 2020
17d0ccb
fix
OBakir90 Oct 30, 2020
6039b73
fix
OBakir90 Oct 30, 2020
8ee2b62
git put request needs to change
OBakir90 Oct 31, 2020
6c91684
flow works fine
OBakir90 Oct 31, 2020
7086fd8
works very well
OBakir90 Oct 31, 2020
3632a6c
auth url has been changed to heroku one
OBakir90 Oct 31, 2020
f6e18b8
avatar fetched and stored in the db
OBakir90 Nov 1, 2020
191d09e
code cleaned
OBakir90 Nov 1, 2020
e05f345
working on hired
Buchraatkeh1984 Nov 2, 2020
08b997f
error handling
Buchraatkeh1984 Nov 2, 2020
0fc8abc
richt text editor added
OBakir90 Nov 3, 2020
7fec5fe
is hired button added
OBakir90 Nov 3, 2020
bcd4568
Merge pull request #17 from OBakir90/improvemnts
OBakir90 Nov 3, 2020
fbc15c1
Merge branch 'merging-front-and-back' of https://github.com/OBakir90/…
OBakir90 Nov 3, 2020
2aca284
merged
OBakir90 Nov 3, 2020
e686396
Merge branch 'merging-front-and-back' into rich-text-editor
OBakir90 Nov 3, 2020
5cd247a
Merge pull request #18 from OBakir90/rich-text-editor
OBakir90 Nov 3, 2020
80b304f
delete function added
OBakir90 Nov 3, 2020
d47a418
routes changed, mvp completed
OBakir90 Nov 4, 2020
ca491c4
code cleaned
OBakir90 Nov 4, 2020
8157cdc
url's changed
OBakir90 Nov 4, 2020
43022f9
package-lock removed
OBakir90 Nov 4, 2020
a7978a2
urls changed
OBakir90 Nov 4, 2020
0ecc99d
admin context created
OBakir90 Nov 4, 2020
2de4c50
admin flow and page added
OBakir90 Nov 4, 2020
403ecd2
admin page added
OBakir90 Nov 5, 2020
20d1883
admin page and conditional rendering added
OBakir90 Nov 5, 2020
3dca1b6
fix
OBakir90 Nov 5, 2020
2173820
test
OBakir90 Nov 5, 2020
7e4a12d
test
OBakir90 Nov 5, 2020
57a77ef
get graduate end point changed
OBakir90 Nov 5, 2020
906f3d9
test
OBakir90 Nov 5, 2020
aa33661
fixed issues
OBakir90 Nov 5, 2020
c71cb85
fix
OBakir90 Nov 5, 2020
bf7df65
fix
OBakir90 Nov 5, 2020
32078e7
some issues fixed
OBakir90 Nov 5, 2020
17f04c5
console log removed in api
OBakir90 Nov 5, 2020
44f6a53
error handling added get endpoint
OBakir90 Nov 5, 2020
4bedf87
admin graduates table and mail sender added
OBakir90 Nov 6, 2020
754710c
Merge pull request #20 from OBakir90/admin-graduates-table
OBakir90 Nov 6, 2020
88de98c
mail commented out
OBakir90 Nov 6, 2020
4e9df84
skills error handling
OBakir90 Nov 6, 2020
d1d8f6b
test
OBakir90 Nov 6, 2020
cd0edbe
test
OBakir90 Nov 6, 2020
17a98ca
admin field clear function added and links are connected
OBakir90 Nov 6, 2020
f70a24a
test
OBakir90 Nov 6, 2020
388f80b
test
OBakir90 Nov 6, 2020
cf96baa
fix
OBakir90 Nov 6, 2020
95ef8cd
fix
OBakir90 Nov 6, 2020
9e91f4f
fix
OBakir90 Nov 6, 2020
e43bb89
node mailer activated
OBakir90 Nov 7, 2020
db2ef84
auto email commented out
OBakir90 Nov 7, 2020
c34dd90
style changes
OBakir90 Nov 9, 2020
20384fe
Merge pull request #15 from OBakir90/merging-front-and-back
OBakir90 Nov 9, 2020
311aeca
base url setted
OBakir90 Nov 9, 2020
163a9a6
buttons styled
OBakir90 Nov 9, 2020
d3ac0e7
calback url changed
OBakir90 Nov 9, 2020
0ea1095
base url changed
OBakir90 Nov 9, 2020
4c4c30d
/ removed
OBakir90 Nov 9, 2020
9cec043
url has been changed
OBakir90 Nov 9, 2020
5cb2aed
commented base
OBakir90 Nov 9, 2020
d103706
test
OBakir90 Nov 9, 2020
e8b45cf
test
OBakir90 Nov 9, 2020
1793b07
url has been changed
OBakir90 Nov 9, 2020
22cf18a
protected route added
OBakir90 Nov 9, 2020
0ef0107
fix error
OBakir90 Nov 9, 2020
05c0cf4
url changed
OBakir90 Nov 9, 2020
6921719
console logs removed
OBakir90 Nov 9, 2020
da1baa7
test
OBakir90 Nov 9, 2020
b78958d
test
OBakir90 Nov 9, 2020
0f00311
test
OBakir90 Nov 9, 2020
9eeb6a9
fix
OBakir90 Nov 9, 2020
524159b
fixed hired
OBakir90 Nov 9, 2020
f76a21c
fix
OBakir90 Nov 10, 2020
09bdbcc
fix
OBakir90 Nov 10, 2020
9fd629f
try
OBakir90 Nov 11, 2020
36539dd
_blank added
OBakir90 Nov 11, 2020
e1fd9e4
email link changed
OBakir90 Nov 11, 2020
91f39ca
email activated
OBakir90 Nov 11, 2020
062abfe
fix
OBakir90 Nov 11, 2020
1b9ea9c
set auto email
OBakir90 Nov 12, 2020
716eb99
stop email
OBakir90 Nov 12, 2020
21a1856
fix
OBakir90 Nov 13, 2020
19f0a2b
filter by location and skills features added and add skill method has…
OBakir90 Nov 28, 2020
8300ba8
Merge pull request #21 from OBakir90/select-skills
OBakir90 Dec 2, 2020
bd4e6ff
skill list test
OBakir90 Dec 2, 2020
ab217a7
updated README
FarhanaFKhan Jan 23, 2021
2ec2bd5
updated README
FarhanaFKhan Jan 23, 2021
e53efc6
updating the readme
FarhanaFKhan Jan 23, 2021
88595a3
updating the readme
FarhanaFKhan Jan 23, 2021
674d94c
updated README
FarhanaFKhan Jan 23, 2021
951e4d2
Merge branch 'develop' into updated-readme
OBakir90 Jan 24, 2021
956f043
Merge pull request #22 from OBakir90/updated-readme
OBakir90 Jan 24, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"extends": [
"@codeyourfuture/standard"
],
"parser": "babel-eslint"
"parser": "babel-eslint",
"linebreak-style": 0,
"quotes": [0, "double"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
dist/
node_modules/
.DS_Store

2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "node",
"request": "attach",
"name": "Debug server",
"port": 9229,
"port": 3105,
"skipFiles": [
"<node_internals>/**"
]
Expand Down
53 changes: 28 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
# Starter Kit
# Setup Project Locally
- clone repo
- yarn install

[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
# Entry points in the app to get started adding features:
- Client folder ---> src contains all the front-end code.
- Server Folder contains all the back-end code.

- [x] Full stack ES8+ with [Babel]
- [x] [Node] LTS support (verified working on 10.x, 12.x and 14.x LTS releases)
- [x] [Express] server
- [x] [React] client with [Webpack]
- [x] Linting with [ESLint]
- [x] Dev mode (watch modes for client and server, proxy to avoid CORS issues)
- [x] Production build (single deployment artifact, React loaded via CDN)
- [x] [Heroku Postgres] database
- [x] [Heroku] deployment
- [x] [Cloud Foundry] deployment
- [x] [Docker] build
# Features
Graduate Directory aims to help CYF graduates get hired.

## Setup
- The platform allows graduates to publicise their profiles by logging in with their GitHub.
The app uses Oauth2 authentication flow to sign in eligible CYF graduates. First time login takes the graduate to a form where they are prompted to fill in their details which are displayed on the overview as well as individual profile pages.
Subsquent login shows graduate their profile which they can edit by selecting the Edit option in the dropdown menu at top right.
The graduate also has the option to delete their profile or change their employment status to 'Hired' which is also displayed on their card on the overview page.

Pick one member of the team to own the repository and pipeline. That person should do the following:
- Potential employers can view the overview page and individual profile pages. They can also
contact suitable candidates by directly sending an email.

1. Create a fork of this repository for the team, and rename it something appropriate for your project.
2. Click the "Deploy to Heroku" button and create a Heroku account when prompted.
3. Fill in the name of the application, select Europe, then click "Deploy App".
4. Create a Heroku | Postgres | Hobby dev database. You have to connect the database to your existing application (Provision this add-on to an app).
5. If everything goes fine, you will have a DATABASE_URL config variable, in your project settings | config vars. You don't need to set it manually, it will be picked up when your app runs in Heroku. Since it's set only in the Heroku, the default local settings will be applied otherwise (see db.js in case you need to change it !!)
6. Once it has deployed successfully, click the "Manage app" button to view the application details.
7. Go to the "Deploy" tab, select "Connect to GitHub" and choose your repo.
8. Click "Enable automatic deploys".
- Mentors/Admin can login to the admin panel to add eligible GitHub usernames and skills.
They can also send emails to graduates.

Whenever you commit to master (or e.g. merge a [pull request]) it will get automatically deployed!
![Overview Page](readme-1.png "Overview Page")

![View Page](readme-2.png "View Page")

![Edit Page](readme-3.png "Edit Page")
![Edit Page](readme-4.png "Edit Page")
![Edit Page](readme-5.png "Edit Page")

You should now make sure all of the project team are [collaborators] on the repository.

## Scripts

Expand Down Expand Up @@ -67,3 +65,8 @@ See the guidance in the [wiki].
[React]: https://reactjs.org/
[Webpack]: https://webpack.js.org/
[wiki]: https://github.com/textbook/starter-kit/wiki

### Packages
`yarn add react-bootstrap bootstrap`
`yarn add styled-components`
`yarn add formik yup`
9 changes: 9 additions & 0 deletions base_url.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports={
base_url:'https://dev-graduate-directory.herokuapp.com',
base_url_back:'https://dev-graduate-directory.herokuapp.com'
}

// module.exports={
// base_url:'http://localhost:3000',
// base_url_back:'http://localhost:3100'
// }
5 changes: 4 additions & 1 deletion client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"react/jsx-tag-spacing": "error",
"react/no-unused-prop-types": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error"
"react-hooks/exhaustive-deps": "error",
"linebreak-style": 0,
// "quotes": [2, "single", { "avoidEscape": true }],
"quotes": [0, "double"]
},
"settings": {
"react": {
Expand Down
39 changes: 20 additions & 19 deletions client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
import React, { useEffect, useState } from "react";

import "./App.css";
import { getMessage } from "./service";
import logo from "./logo.svg";

export function App() {
const [message, setMessage] = useState("Loading...");

useEffect(() => {
getMessage().then((message) => setMessage(message));
}, []);
import React from "react";
import Routes from "./Routes";
import ProfileState from './context/ProfileContext';
import AuthState from './context/AuthContext'
import AdminState from './context/AdminContext'
import { ThemeProvider } from "styled-components";
import { GlobalStyles } from "./styles/GlobalStyle";
import { theme } from "./styles/Theme";

const App = () => {
return (
<main role="main">
<div>
<img className="logo" data-qa="logo" src={logo} alt="Just the React logo" />
<h1 className="message" data-qa="message">{message}</h1>
</div>
</main>
<AuthState>
<ProfileState>
<AdminState>
<ThemeProvider theme={theme}>
<GlobalStyles />
<Routes />
</ThemeProvider>
</AdminState>
</ProfileState>
</AuthState>
);
}
};

export default App;
70 changes: 70 additions & 0 deletions client/src/RichText.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**

*/

.RichEditor-root {
width: 700px;
background: #fff;
border: 1px solid #333333;
font-family: 'Georgia', serif;
font-size: 14px;
padding: 15px;
box-sizing: border-box;
border-radius: 4px;
}

.RichEditor-editor {
border-top: 1px solid #333333;
cursor: text;
font-size: 16px;
margin-top: 10px;
}

.RichEditor-editor .public-DraftEditorPlaceholder-root,
.RichEditor-editor .public-DraftEditor-content {
margin: 0 -15px -15px;
padding: 15px;
}

.RichEditor-editor .public-DraftEditor-content {
min-height: 100px;
}

.RichEditor-hidePlaceholder .public-DraftEditorPlaceholder-root {
display: none;
}

.RichEditor-editor .RichEditor-blockquote {
border-left: 5px solid #333333;
color: #666;
font-family: 'Hoefler Text', 'Georgia', serif;
font-style: italic;
margin: 16px 0;
padding: 10px 20px;
}

.RichEditor-editor .public-DraftStyleDefault-pre {
background-color: rgba(0, 0, 0, 0.05);
font-family: 'Inconsolata', 'Menlo', 'Consolas', monospace;
font-size: 16px;
padding: 20px;
}

.RichEditor-controls {
font-family: 'Helvetica', sans-serif;
font-size: 14px;
margin-bottom: 5px;
user-select: none;
}

.RichEditor-styleButton {
color: #999;
cursor: pointer;
margin-right:35px;
padding: 2px 0;
display: inline-block;
}

.RichEditor-activeButton {
color: #5890ff;
}
34 changes: 34 additions & 0 deletions client/src/Routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from "react";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import {ProtectedRoute} from './helpers/ProtectedRoute'
import Home from "./pages/Home";
import Login from './pages/Login'
import CreateProfile from "./pages/CreateProfile";
import ViewDetail from './pages/ViewDetail'
import ViewAllProfiles from './pages/ViewAllProfiles'
import ViewProfile from "./pages/ViewProfile";
import EditProfile from "./pages/EditProfile";
import NotEligible from './pages/NotEligible'
import RichEditorField from './constant/RichEditorField'
import RichEditorReader from './constant/RichEditorReader'
import Admin from './pages/Admin'

const Routes = () => {
return (
<BrowserRouter>
<Switch>
<Route exact path='/' component={Home} />
<Route path='/login' component={Login} />
<ProtectedRoute path='/admin' component={Admin} />
<Route exact path='/profiles' component={ViewAllProfiles}/>
<ProtectedRoute path='/profiles/new' component={CreateProfile} />
<ProtectedRoute path='/profile/edit' component={EditProfile} />
<Route path='/profiles/:name' component={ViewDetail} />
<ProtectedRoute path='/myprofile' component={ViewProfile} />
<Route path='/notfound' component={NotEligible} />
</Switch>
</BrowserRouter>
);
};

export default Routes;
Binary file added client/src/assets/icons/GitHub-Mark-32px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions client/src/assets/icons/IconArrowDown.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions client/src/assets/icons/IconArrowLeft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions client/src/assets/icons/IconArrowUp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions client/src/assets/icons/IconBurger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions client/src/assets/icons/IconX.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading