Skip to content

Commit d877f54

Browse files
committed
initial commit, flask structure, basic UI
1 parent 8d0355b commit d877f54

File tree

101 files changed

+48129
-801
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+48129
-801
lines changed

app.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
from flask import Flask, render_template
2+
import data
3+
app = Flask(__name__)
4+
5+
@app.route('/')
6+
def index():
7+
beginner = data.beginner
8+
lecturesData = data.lecturesData
9+
return render_template('index.html', beginner=beginner, lecturesData=lecturesData )
10+
11+
@app.route('/browse')
12+
def browse():
13+
beginner = data.beginner
14+
advance = data.advance
15+
return render_template('browse.html', beginner=beginner, advance=advance)
16+
17+
@app.route('/myCourses')
18+
def myCourses():
19+
#pass course details here
20+
return render_template('details.html')
21+
22+
@app.route('/details')
23+
def details():
24+
course = data.course
25+
lecturesData = data.lecturesData
26+
return render_template('details.html', course=course, lecturesData=lecturesData)
27+
28+
@app.route('/profile')
29+
def profile():
30+
return render_template('profile.html' )
31+
32+
@app.route('/login')
33+
def login():
34+
return render_template('login.html')
35+
36+
def page_not_found(e):
37+
error = e
38+
return render_template('error.html', errorCode=error), 404
39+
40+
if __name__ == '__main__':
41+
app.run()

assets/icons/Python.png

-31.9 KB
Binary file not shown.

assets/icons/angular.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/home.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/java.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/javascript.png

-2.27 KB
Binary file not shown.

assets/icons/logout.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/profile.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/python.jpg

-60.6 KB
Binary file not shown.

assets/icons/react.png

-212 KB
Binary file not shown.

0 commit comments

Comments
 (0)