diff --git a/landing/static/landing/assets/img/Python_for_Beginner_Programmers.png b/landing/static/landing/assets/img/Python_for_Beginner_Programmers.png new file mode 100644 index 0000000..a8932ad Binary files /dev/null and b/landing/static/landing/assets/img/Python_for_Beginner_Programmers.png differ diff --git a/landing/static/landing/assets/img/python_hour/python_hour_1.png b/landing/static/landing/assets/img/python_hour/python_hour_1.png new file mode 100644 index 0000000..0e8ce2a Binary files /dev/null and b/landing/static/landing/assets/img/python_hour/python_hour_1.png differ diff --git a/landing/static/landing/assets/img/python_hour/python_hour_2.png b/landing/static/landing/assets/img/python_hour/python_hour_2.png new file mode 100644 index 0000000..57158c0 Binary files /dev/null and b/landing/static/landing/assets/img/python_hour/python_hour_2.png differ diff --git a/landing/static/landing/assets/img/python_hour/python_hour_3.png b/landing/static/landing/assets/img/python_hour/python_hour_3.png new file mode 100644 index 0000000..9de618a Binary files /dev/null and b/landing/static/landing/assets/img/python_hour/python_hour_3.png differ diff --git a/landing/templates/landing/index.html b/landing/templates/landing/index.html index ddaf6f6..ae1fd8b 100644 --- a/landing/templates/landing/index.html +++ b/landing/templates/landing/index.html @@ -580,11 +580,20 @@

+ {% include "landing/python_hour.html" %}
+
+ + +
+ +
+ {% for event in python_hour %} +
+
+
+
+ + {{ event.tag }} + +
+

+ {{ event.title }} +

+
+ {{ event.description }} +
+
+ + {{ event.date }} + + + {{ event.time }} + + + {{ event.location }} + +
+
+
+ +
+ {% endfor %} +
+ +
diff --git a/landing/views.py b/landing/views.py index f01acc8..ae41cde 100644 --- a/landing/views.py +++ b/landing/views.py @@ -9,10 +9,40 @@ def index(request): sections = Section.available_objects.all() board_members = Volunteer.available_objects.filter(is_staff=True) commitees = Commitee.available_objects.prefetch_related('volunteers') + python_hour = [ + { + "link": "#", + "tag": "Python Hour", + "title": "Let's create animated Memes using Python and MoviePy", + "date": "Thursday, October 13, 2022", + "time": "7PM-8PM PHT", + "location": "Via Zoom and Youtube Live", + "cover_image": "landing/assets/img/python_hour/python_hour_1.png" + }, + { + "link": "#", + "tag": "Python Hour", + "title": "API Development using Flask", + "date": "Thursday, October 20, 2022", + "time": "7PM-8PM PHT", + "location": "Via Zoom and Youtube Live", + "cover_image": "landing/assets/img/python_hour/python_hour_2.png" + }, + { + "link": "#", + "tag": "Python Hour", + "title": "Data Science using Python!", + "date": "Thursday, October 27, 2022", + "time": "7PM-8PM PHT", + "location": "Via Zoom and Youtube Live", + "cover_image": "landing/assets/img/python_hour/python_hour_3.png" + } + ] return render(request, 'landing/index.html', { 'events': events, 'sections': sections, 'board_members': board_members, 'commitees': commitees, + 'python_hour': python_hour, })