Skip to content

Commit 48ddd7c

Browse files
committed
minor bug fixes, UI changes
1 parent 5386e14 commit 48ddd7c

23 files changed

+27
-73
lines changed

__pycache__/data.cpython-311.pyc

-1.15 KB
Binary file not shown.

app.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ def profile():
3636
def login():
3737
return render_template('login.html')
3838

39-
#@app.errorhandler(404)
39+
@app.errorhandler(404)
4040
def page_not_found(e):
41-
error = e
42-
return render_template('error.html', errorCode=error), 404
41+
return render_template('components/error.html'), 404
4342

4443
if __name__ == '__main__':
45-
app.run()
44+
app.run()

data.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
'imageName': 'popular-02.jpg'
4646
},
4747
{
48-
'courseName': 'Big Data',
48+
'courseName': 'ML & AI',
4949
'price': '$4.99',
5050
'rating': '5.0',
51-
'link': '#',
51+
'link': 'url_for("ML")',
5252
'imageName': 'popular-03.jpg'
5353
},
5454
{
@@ -86,9 +86,19 @@
8686

8787
course = {
8888
'name': 'ReactJS',
89+
'logo' : 'react',
8990
'difficulty': 'Intermediate',
9091
'duration': '1 week',
9192
'rating': '5.0',
9293
'price': 'Free',
9394
'description': 'ReactJS is a powerful, efficient and user-friendly JavaScript library for building interactive interfaces.'
9495
}
96+
ML = {
97+
'name': 'Machine Learning',
98+
'logo': 'python',
99+
'diffculty' : 'Advanced',
100+
'duration': '3 week',
101+
'rating': '4.9',
102+
'price': '$25',
103+
'description': 'Training computers to learn from data, improving performance without explicit instructions.'
104+
}

static/assets/css/templatemo-cyborg-gaming.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ Banner Style
811811
*/
812812

813813
.main-banner {
814-
background-image: url(../images/banner-bg.jpg);
814+
background-image: url(../images/card.png);
815815
background-position: center center;
816816
background-size: cover;
817817
min-height: 380px;

static/assets/images/avatar-01.jpg

-3.17 KB
Binary file not shown.

static/assets/images/avatar-02.jpg

-2.62 KB
Binary file not shown.

static/assets/images/avatar-03.jpg

-3.04 KB
Binary file not shown.

static/assets/images/avatar-04.jpg

-2.22 KB
Binary file not shown.

static/assets/images/card.png

220 KB
Loading

static/assets/images/clip-01.jpg

-21 KB
Binary file not shown.

0 commit comments

Comments
 (0)