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

Commit 3330037

Browse files
committed
Rename courses component to course component
1 parent ff8fafb commit 3330037

File tree

21 files changed

+219
-72
lines changed

21 files changed

+219
-72
lines changed

src/Routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ProfileView from 'src/views/pages/ProfileView';
1212
import ApplicationsView from 'src/views/pages/ApplicationsView';
1313
import Error404View from 'src/views/pages/Error404View';
1414
import StudentDashboardView from 'src/views/pages/StudentDashboardView';
15-
import CoursePage from 'src/views/pages/Courses/CoursePage';
15+
import CoursePage from 'src/views/pages/Course/CoursePage';
1616
import TermsView from './views/pages/documents/termsView';
1717
import DocsLayout from './layouts/DocsLayout';
1818
import PrivacyView from './views/pages/documents/privacyView';

src/data/bootcamps/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import js from './js';
2+
3+
const coursesContent = [js];
4+
5+
export default coursesContent;

src/data/bootcamps/js/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
import { instagram } from './instagram';
3+
const information = { title : "JavaScript", camps:[instagram] };
4+
5+
export default information;

src/data/bootcamps/js/instagram.js

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
export const instagram = {
2+
difficulty: 'Foundation',
3+
duration: '30 Live Lectures',
4+
level: 'Level 1',
5+
link: '/application-dev-using-python',
6+
domain: 'Development and Automation',
7+
title: 'Application Development with Python',
8+
upcoming: 'Jan 15th',
9+
mentors: ['kunal'],
10+
schedule: [
11+
{
12+
courseId: 'pdev0121',
13+
dates: '15th Jan - 20th Apr',
14+
days: 'Sat, Sun, Wed',
15+
timing: '06:00 PM - 08:00 PM (IST)',
16+
link: '',
17+
priceCut: '₹ 15,000',
18+
price: '₹ 6,850',
19+
active: false
20+
}
21+
],
22+
projects: [
23+
{
24+
title: 'Under Developemnt',
25+
img: '/static/images/courses/projects/sudoku.jpg'
26+
}
27+
],
28+
topics: [
29+
{
30+
title: 'Getting started with Python',
31+
classes: 'Classes 01-03',
32+
subtopics: [
33+
'Flowcharts & Pseudocode',
34+
'Control Flow Statements ',
35+
'Setting up IntelliJ idea & Java',
36+
'Primitive data-types',
37+
'Input-Output on online judge',
38+
'Coding standards in Java',
39+
'Methods along with problems',
40+
'Setting up debugger'
41+
]
42+
},
43+
{
44+
title: 'Arrays & ArrayList',
45+
classes: 'Classes 04-07',
46+
subtopics: [
47+
'Introduction of arrays',
48+
'Input-output & traversing',
49+
'Linear Search & Binary Search',
50+
'Bubble sort, Insertion sort, Selection sort, Count sort',
51+
'Multi-Dimensional arrays',
52+
'Rotation in arrays',
53+
'Intro to ArrayList',
54+
'Interview problems on Arrays & ArrayList'
55+
]
56+
},
57+
{
58+
title: 'Number theory & Bitmasking',
59+
classes: 'Classes 08-09',
60+
subtopics: [
61+
'Euclidean algorithms',
62+
'Sieve of eratosthenes',
63+
'Puzzle problems',
64+
'Bitwise operators',
65+
'Advantages & cost-effectiveness',
66+
'Backtracking with Bitmasking',
67+
'Interview problems'
68+
]
69+
},
70+
{
71+
title: 'String & String-Builder',
72+
classes: 'Classes 10-11',
73+
subtopics: [
74+
'Intro to Strings in Java',
75+
'Mutability and behavior',
76+
'String pool and need of equals',
77+
'String operations',
78+
'StringBuilder operations and optimization',
79+
'String Manipulation'
80+
]
81+
},
82+
{
83+
title: 'Space and Time complexity analysis',
84+
classes: 'Classes 12-13',
85+
subtopics: [
86+
'Best case, worst case, average case',
87+
'Sandwich theorem, recurrence relation',
88+
'Theta, Big-oh, Omega notations',
89+
'Understanding complexity of loops',
90+
'Auxiliary vs Total space',
91+
'Static & Dynamic Memory Allocation'
92+
]
93+
},
94+
{
95+
title: 'Recursion & Backtracking',
96+
classes: 'Classes 14-16',
97+
subtopics: [
98+
'Recursion- what, why, when?',
99+
'Control flow & stack trace',
100+
'understanding recursive tree',
101+
'Merge sort & Quick sort',
102+
'Interview problems on Recursion',
103+
'Backtracking-Sudoku solver, N-Queens, lexo-permute'
104+
]
105+
},
106+
{
107+
title: 'Object Oriented Programming',
108+
classes: 'Classes 17-18',
109+
subtopics: [
110+
'Classes & Objects',
111+
'Constructors, states & behaviors',
112+
'this keyword',
113+
'Abstraction, Inheritance, Polymorphism, Encapsulation',
114+
'Access modifiers',
115+
'Static & non-static',
116+
'final, finally, finalize'
117+
]
118+
},
119+
{
120+
title: 'Under Developemnt',
121+
classes: 'Classes 19-30',
122+
subtopics: []
123+
},
124+
{
125+
title: 'Dynamic Programming',
126+
classes: 'Classes 29-30',
127+
subtopics: [
128+
'Understanding the concept in Dynamic Programming',
129+
'Understanding overlapping subproblems',
130+
'Memorization vs Tabulation',
131+
'Top down & bottom-up approach',
132+
'0-1 KnapSack problem',
133+
'Wildcard pattern problem',
134+
'Egg drop problem',
135+
'Matrix chain multiplication'
136+
]
137+
}
138+
],
139+
slides: [
140+
{
141+
heading: '',
142+
subheading: '',
143+
image: '/static/swipes/apps.png'
144+
}
145+
],
146+
tags: [
147+
'Django',
148+
'Rest API',
149+
'Mongo DB',
150+
'Relational DB',
151+
'Authentication',
152+
'User Management'
153+
],
154+
overview: ['Under Developemnt'],
155+
faqs: [
156+
{
157+
title: 'Will this help me with my career path?',
158+
answer:
159+
'Yes. If you learn well, all that the course intends to teach, you’ll be able to impress quite a few interviewers across quite a few fine companies.'
160+
},
161+
{
162+
title: 'How your doubts will get resolved?',
163+
answer:
164+
'We have an army of TA’s who are available in different time slots to resolve all your doubts. You can also interact with faculty through Slack.'
165+
},
166+
{
167+
title: 'Is this course suitable for me?',
168+
answer:
169+
'Definitely! If you want to shift to software developer career path, then this course is perfect for you!'
170+
}
171+
]
172+
};

src/views/pages/BootCampsView/Bootcamps.js

Lines changed: 36 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
44

55
import { Grid, Typography } from '@material-ui/core';
66

7-
import coursesContent from 'src/data/courses';
7+
import coursesContent from 'src/data/bootcamps';
88
import CourseCard from '../../../components/Course/CourseCardTemplate1';
99

1010
const useStyles = makeStyles(theme => ({
@@ -101,82 +101,47 @@ const useStyles = makeStyles(theme => ({
101101
export default function Bootcamps() {
102102
const classes = useStyles();
103103

104-
const foundation = coursesContent.foundation;
105-
const advanced = coursesContent.advanced;
106-
107104
return (
108105
<Grid container className={classes.root}>
109-
<Grid item lg={12} md={12} sm={12} xs={12}>
110-
<Typography
111-
variant="h1"
112-
align="center"
113-
color="textPrimary"
114-
style={{
115-
marginBottom: '20px'
116-
}}
117-
>
118-
Foundational Courses
119-
</Typography>
120-
</Grid>
121-
122-
<Grid container>
123-
<Grid
124-
item
125-
lg={12}
126-
md={12}
127-
sm={12}
128-
xs={12}
129-
align="center"
130-
display="flex"
131-
justifyContent="center"
132-
alignItems="center"
133-
>
134-
<CoursesGrid courses={foundation} />
135-
</Grid>
136-
</Grid>
137-
138-
<Grid
139-
item
140-
lg={12}
141-
md={12}
142-
sm={12}
143-
xs={12}
144-
style={{
145-
marginTop: '48px'
146-
}}
147-
>
148-
<Typography
149-
variant="h1"
150-
align="center"
151-
color="textPrimary"
152-
style={{
153-
marginBottom: '20px'
154-
}}
155-
>
156-
Advanced Courses
157-
</Typography>
158-
</Grid>
106+
{coursesContent.map((category, index) => {
107+
return (
108+
<Grid container>
109+
<Grid item lg={12} md={12} sm={12} xs={12}>
110+
<Typography
111+
variant="h1"
112+
align="center"
113+
color="textPrimary"
114+
style={{
115+
marginBottom: '20px'
116+
}}
117+
>
118+
{category.title}
119+
</Typography>
120+
</Grid>
159121

160-
<Grid container>
161-
<Grid
162-
item
163-
lg={12}
164-
md={12}
165-
sm={12}
166-
xs={12}
167-
align="center"
168-
display="flex"
169-
justifyContent="center"
170-
alignItems="center"
171-
>
172-
<CoursesGrid courses={advanced} />
173-
</Grid>
174-
</Grid>
122+
<Grid container>
123+
<Grid
124+
item
125+
lg={12}
126+
md={12}
127+
sm={12}
128+
xs={12}
129+
align="center"
130+
display="flex"
131+
justifyContent="center"
132+
alignItems="center"
133+
>
134+
<CoursesGrid camps={category.camps} />
135+
</Grid>
136+
</Grid>
137+
</Grid>
138+
);
139+
})}
175140
</Grid>
176141
);
177142
}
178143

179-
const CoursesGrid = ({ courses }) => {
144+
const CoursesGrid = ({ camps }) => {
180145
const classes = useStyles();
181146
return (
182147
<Grid
@@ -187,7 +152,7 @@ const CoursesGrid = ({ courses }) => {
187152
alignItems: 'center'
188153
}}
189154
>
190-
{Object.entries(courses).map(([cname, course], index) => {
155+
{camps.map((course, index) => {
191156
return (
192157
<Grid
193158
item
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)