Skip to content

Commit 7da8d75

Browse files
committed
modular lectures completed
1 parent 0b7d615 commit 7da8d75

18 files changed

+215
-95
lines changed

__pycache__/data.cpython-38.pyc

2.11 KB
Binary file not shown.
862 Bytes
Binary file not shown.
297 Bytes
Binary file not shown.

data.py

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,59 @@
1-
#imageName varible only gets used for menu.html macro on search results
2-
3-
lecturesData = [
1+
#imageName, courseName varible only gets used for menu.html macro on search results
2+
#NAmes should match the courseName in lecturesData.py
3+
watchHistory = [
44
{
5-
'courseName': 'HTML/CSS',
6-
'topic': 'ReactJS',
5+
'topic': 'HTML/CSS',
6+
'courseName': 'ReactJS',
77
'date': '23/Feb',
88
'duration': '1 Hour',
99
'price': 'Free'
1010
},
1111
{
12-
'courseName': 'JavaScript',
13-
'topic': 'ReactJS',
12+
'topic': 'JavaScript',
13+
'courseName': 'ReactJS',
1414
'date': '23/Feb',
1515
'duration': '2 Hour',
1616
'price': 'Free'
1717
},
1818
{
19-
'courseName': 'UI/UX',
20-
'topic': 'ReactJS',
19+
'topic': 'UI/UX',
20+
'courseName': 'ReactJS',
2121
'date': '23/Feb',
2222
'duration': '1.6 Hour',
2323
'price': '$10'
2424
}
2525
]
26-
27-
reactjs = {
26+
ruby = {
27+
'courseName': 'Ruby',#used on search results
28+
'name': 'Ruby Programming',
29+
'logo': 'ruby-plain',
30+
'difficulty': 'Advance',
31+
'duration': '2 weeks',
32+
'rating': '4.5',
33+
'price': 'Free',
34+
'imageName': 'popular-01.jpg',
35+
'description': 'Learn the basics of Ruby programming language for building robust applications.'
36+
}
37+
Python = {
38+
'courseName': 'Python',#used on search results
39+
'name': 'Python Programming',
40+
'logo': 'python-plain',
41+
'difficulty': 'Beginner',
42+
'duration': '3 weeks',
43+
'rating': '4.7',
44+
'price': 'Free',
45+
'imageName': 'popular-03.jpg',
46+
'description': 'Learn the basics of Python programming language for building robust applications.'
47+
}
48+
ReactJS = {
2849
'courseName': 'ReactJS',#used on search results
2950
'name': 'ReactJS',
3051
'logo' : 'react-original',
3152
'difficulty': 'Intermediate',
3253
'duration': '1 week',
3354
'rating': '5.0',
3455
'price': 'Free',
35-
'imageName': 'popular-02.jpg',
56+
'imageName': 'popular-01.jpg',
3657
'description': 'ReactJS is a powerful, efficient and user-friendly JavaScript library for building interactive interfaces.'
3758
}
3859
ML = {
@@ -42,7 +63,7 @@
4263
'difficulty' : 'Advance',
4364
'duration': '3 week',
4465
'rating': '4.9',
45-
'price': '$25',
66+
'price': '$7.5',
4667
'imageName': 'popular-02.jpg',
4768
'description': 'Training computers to learn from data, improving performance without explicit instructions.'
4869
}
@@ -53,8 +74,8 @@
5374
'difficulty': 'Beginner',
5475
'duration': '4 weeks',
5576
'rating': '4.7',
56-
'price': '$20',
57-
'imageName': 'popular-02.jpg',
77+
'price': '$5.0',
78+
'imageName': 'popular-04.jpg',
5879
'description': 'Learn the basics of JavaScript programming for front-end and back-end development.'
5980
}
6081

@@ -65,8 +86,8 @@
6586
'difficulty': 'Intermediate',
6687
'duration': '5 weeks',
6788
'rating': '4.8',
68-
'price': '$30',
69-
'imageName': 'popular-02.jpg',
89+
'price': 'Free',
90+
'imageName': 'popular-03.jpg',
7091
'description': 'Get started with Java and object-oriented programming for building robust applications.'
7192
}
7293

@@ -89,6 +110,17 @@
89110
'duration': '3 weeks',
90111
'rating': '4.6',
91112
'price': '$25',
92-
'imageName': 'popular-02.jpg',
113+
'imageName': 'popular-01.jpg',
93114
'description': 'Learn the basics of Django framework for building robust web applications.'
115+
}
116+
HTML = {
117+
'courseName': 'HTML',#used on search results
118+
'name': 'HTML/CSS Fundamentals',
119+
'logo': 'html5-plain',
120+
'difficulty': 'Beginner',
121+
'duration': '3 Days',
122+
'rating': '4.5',
123+
'price': '$10',
124+
'imageName': 'popular-04.jpg',
125+
'description': 'Learn the basics of HTML and CSS for front-end web development.'
94126
}

lecturesData.py

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
lecturesData = {
2+
3+
'Python': [
4+
{
5+
'courseName': 'Python',
6+
'topic': 'Fundamentals',
7+
'date': '23/Feb',
8+
'duration': '1 Hour',
9+
'price': 'Free'
10+
},
11+
{
12+
'courseName': 'Python',
13+
'topic': 'OOPS Model',
14+
'date': '23/Feb',
15+
'duration': '2 Hour',
16+
'price': 'Free'
17+
},
18+
{
19+
'courseName': 'Python',
20+
'topic': 'Data Structures',
21+
'date': '23/Feb',
22+
'duration': '1.6 Hour',
23+
'price': '$10'
24+
}
25+
],
26+
'ReactJS': [
27+
{
28+
'courseName': 'ReactJS',
29+
'topic': 'HTML/CSS',
30+
'date': '23/Feb',
31+
'duration': '1 Hour',
32+
'price': 'Free'
33+
},
34+
{
35+
'courseName': 'ReactJS',
36+
'topic': 'JavaScript',
37+
'date': '23/Feb',
38+
'duration': '2 Hour',
39+
'price': 'Free'
40+
},
41+
{
42+
'courseName': 'ReactJS',
43+
'topic': 'UI/UX',
44+
'date': '23/Feb',
45+
'duration': '1.6 Hour',
46+
'price': '$10'
47+
}
48+
],
49+
'ML+AI': [
50+
{
51+
'courseName': 'ML+AI',
52+
'topic': 'Python',
53+
'date': '23/Feb',
54+
'duration': '1 Hour',
55+
'price': 'Free'
56+
},
57+
{
58+
'courseName': 'ML+AI',
59+
'topic': 'Advanced Data structures',
60+
'date': '23/Feb',
61+
'duration': '2 Hour',
62+
'price': 'Free'
63+
},
64+
{
65+
'courseName': 'ML+AI',
66+
'topic': 'Machine Learning',
67+
'date': '23/Feb',
68+
'duration': '1.6 Hour',
69+
'price': '$10'
70+
}
71+
],
72+
'Java' : [
73+
{
74+
'courseName': 'Java',
75+
'topic': 'Fundamentals',
76+
'date': '23/Feb',
77+
'duration': '1 Hour',
78+
'price': 'Free'
79+
},
80+
{
81+
'courseName': 'Java',
82+
'topic': 'OOPS Model',
83+
'date': '23/Feb',
84+
'duration': '2 Hour',
85+
'price': 'Free'
86+
},
87+
{
88+
'courseName': 'Java',
89+
'topic': 'Data Structures',
90+
'date': '23/Feb',
91+
'duration': '3 Hour',
92+
'price': 'Free'
93+
}
94+
],
95+
'HTML' : [
96+
{
97+
'courseName': 'HTML',
98+
'topic': 'Fundamentals',
99+
'date': '23/Feb',
100+
'duration': '1 Hour',
101+
'price': 'Free'
102+
},
103+
{
104+
'courseName': 'HTML',
105+
'topic': 'CSS',
106+
'date': '23/Feb',
107+
'duration': '2 Hour',
108+
'price': 'Free'
109+
},
110+
{
111+
'courseName': 'HTML',
112+
'topic': 'Frontend',
113+
'date': '23/Feb',
114+
'duration': '3 Hour',
115+
'price': 'Free'
116+
}
117+
]
118+
# Add more courses as needed
119+
}

menuData.py

Lines changed: 9 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,13 @@
1-
2-
beginner = [
3-
{
4-
'courseName': 'HTML',
5-
'price': 'Free',
6-
'rating': '4.8',
7-
'imageName': 'popular-02.jpg'
8-
},
9-
{
10-
'courseName': 'Java',
11-
'price': 'Free',
12-
'rating': '5.0',
13-
'imageName': 'popular-01.jpg'
14-
},
15-
{
16-
'courseName': 'JavaScript',
17-
'price': '$4.99',
18-
'rating': '4.8',
19-
'imageName': 'popular-04.jpg'
20-
},
21-
{
22-
'courseName': 'ReactJS',
23-
'price': 'Free',
24-
'rating': '5.0',
25-
'imageName': 'popular-03.jpg'
26-
}
1+
import data
2+
beginner = [data.ReactJS,
3+
data.Java,
4+
data.JavaScript,
5+
data.Python
276
]
287

298

30-
advanced = [
31-
{
32-
'courseName': 'Django',
33-
'price': 'Free',
34-
'rating': '4.8',
35-
'imageName': 'popular-01.jpg'
36-
},
37-
{
38-
'courseName': 'Numpy',
39-
'price': '$4.99',
40-
'rating': '5.0',
41-
'imageName': 'popular-02.jpg'
42-
},
43-
{
44-
'courseName': 'ML+AI',
45-
'price': '$4.99',
46-
'rating': '5.0',
47-
'imageName': 'popular-03.jpg'
48-
},
49-
{
50-
'courseName': 'C#',
51-
'price': '$4.99',
52-
'rating': '5.0',
53-
'imageName': 'popular-04.jpg'
54-
}
9+
advanced = [ data.Django,
10+
data.ML,
11+
data.CSharp,
12+
data.ruby
5513
]
1.4 KB
Binary file not shown.
440 Bytes
Binary file not shown.
522 Bytes
Binary file not shown.
400 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)