Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 3ff5e80

Browse files
committed
Create application landing page
1 parent 76d85fd commit 3ff5e80

File tree

7 files changed

+51
-172
lines changed

7 files changed

+51
-172
lines changed

src/Routes.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import CompetitiveJavaView from 'src/views/pages/Courses/CompetitiveJavaView'
1515
import PythonDevelopmentView from 'src/views/pages/Courses/PythonDevelopmentView'
1616
import CoursesView from 'src/views/pages/CoursesView';
1717
import ProfileView from 'src/views/pages/ProfileView'
18+
import ApplicationsView from 'src/views/pages/ApplicationsView'
1819

1920
const routesConfig = [
2021
{
@@ -122,6 +123,19 @@ const routesConfig = [
122123
}
123124
]
124125
},
126+
{
127+
path: '/applications',
128+
layout: MainLayout,
129+
routes: [
130+
{
131+
path: '/applications',
132+
component: ApplicationsView
133+
},
134+
{
135+
component: () => <Redirect to="/404" />
136+
}
137+
]
138+
},
125139
{
126140
path: '/machine-learning-using-python',
127141
layout: MainLayout,

src/data/courses/foundation/AlgoPython.js

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,15 @@ export const algoPython = {
4747
title: 'Git Version Control Replica',
4848
img: '/static/images/courses/projects/git.png'
4949
},
50-
{
51-
title: 'Crossword Puzzle Game',
52-
img: '/static/images/courses/projects/git.png'
53-
},
54-
{
55-
title: 'Automatic Episode Player',
56-
img: '/static/images/courses/projects/git.png'
57-
},
58-
{
59-
title: 'Download Files from Internet with Python',
60-
img: '/static/images/courses/projects/git.png'
61-
},
62-
{
63-
title: 'Automated Code Submission on Platforms',
64-
img: '/static/images/courses/projects/git.png'
65-
},
66-
{
67-
title: 'WhatsApp Bot',
68-
img: '/static/images/courses/projects/git.png'
69-
},
70-
{
71-
title: 'Chat Application',
72-
img: '/static/images/courses/projects/git.png'
73-
},
50+
// {
51+
// title: 'Crossword Puzzle Game',
52+
// img: '/static/images/courses/projects/git.png'
53+
// },
54+
// {
55+
// title: 'Automatic Episode Player',
56+
// img: '/static/images/courses/projects/git.png'
57+
// },
58+
7459
],
7560
topics: [
7661
{
@@ -254,7 +239,13 @@ export const algoPython = {
254239
'Algorithms',
255240
'Problem Solving',
256241
'Python',
257-
'CP',
242+
'Recursion',
243+
'Backtracking',
244+
'Dynamic Programming',
245+
'Stack',
246+
'Queue',
247+
'Sets',
248+
'Bit Masking',
258249
'Interview Prep'
259250
],
260251
overview: [

src/views/pages/ApplicationView/UserRegister.js

Lines changed: 0 additions & 107 deletions
This file was deleted.

src/views/pages/ApplicationView/index.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/views/pages/ApplicationView/UserEdit.js renamed to src/views/pages/ApplicationsView/EditApplication.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import Button from '@material-ui/core/Button';
33
import { ValidatorForm, TextValidator} from 'react-material-ui-form-validator';
44

5-
export class UserEdit extends React.Component {
5+
export class EditApplication extends React.Component {
66

77
state = {
88
email: '',

src/views/pages/ApplicationView/UserProfile.js renamed to src/views/pages/ApplicationsView/ListApplications.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import {
44
} from '@material-ui/core';
55
import { makeStyles } from '@material-ui/core/styles';
66

7-
import axios from 'axios';
8-
97
const useStyles = makeStyles(theme => ({
108
btn: {
119
backgroundColor: '#A60000',
@@ -27,7 +25,7 @@ const useStyles = makeStyles(theme => ({
2725
}
2826
}));
2927

30-
export default function UserProfile() {
28+
export default function ListApplications() {
3129
const classes = useStyles();
3230
const [formData, updateFormData] = useState({});
3331

@@ -38,22 +36,6 @@ export default function UserProfile() {
3836
});
3937
};
4038

41-
42-
// const handleSubmit = e => {
43-
// setSubmitting(1);
44-
// e.preventDefault();
45-
// axios({
46-
// method: 'post',
47-
// url:
48-
// 'https://us-central1-codeforcauseorg.cloudfunctions.net/widgets/leads',
49-
// data: formData
50-
// })
51-
// .then(response => {
52-
// setSubmitting(0);
53-
// })
54-
// .catch(error => {});
55-
// };
56-
5739
return (
5840
<div>
5941
<form noValidate autoComplete="off">
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
import { EditApplication } from './EditApplication';
3+
4+
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
5+
6+
function ApplicationsView({ match }) {
7+
8+
console.log("Matched in routing", match);
9+
10+
return (
11+
<Router>
12+
<Switch>
13+
<Route path={`${match.path}/edit`} component={EditApplication}/>
14+
</Switch>
15+
</Router>
16+
);
17+
}
18+
19+
export default ApplicationsView;

0 commit comments

Comments
 (0)