From 990bb60728b1d8ea8bb1c61fa43e749e7e8be670 Mon Sep 17 00:00:00 2001 From: Sh-Ac Date: Wed, 4 Sep 2019 14:56:29 +0530 Subject: create pages for library of topics --- fossee_manim/templates/fossee_manim/about.html | 2 - fossee_manim/templates/fossee_manim/base.html | 3 +- fossee_manim/templates/fossee_manim/library.html | 62 ++++++++++++++++++++++ .../templates/fossee_manim/libraryMath.html | 16 ++++++ .../templates/fossee_manim/libraryPhys.html | 16 ++++++ fossee_manim/urls.py | 6 ++- fossee_manim/views.py | 18 ++++++- 7 files changed, 117 insertions(+), 6 deletions(-) create mode 100644 fossee_manim/templates/fossee_manim/library.html create mode 100644 fossee_manim/templates/fossee_manim/libraryMath.html create mode 100644 fossee_manim/templates/fossee_manim/libraryPhys.html diff --git a/fossee_manim/templates/fossee_manim/about.html b/fossee_manim/templates/fossee_manim/about.html index aaae771..9bed61d 100644 --- a/fossee_manim/templates/fossee_manim/about.html +++ b/fossee_manim/templates/fossee_manim/about.html @@ -13,9 +13,7 @@
-
-
{% endblock %} diff --git a/fossee_manim/templates/fossee_manim/base.html b/fossee_manim/templates/fossee_manim/base.html index f9c17dc..d09fad5 100644 --- a/fossee_manim/templates/fossee_manim/base.html +++ b/fossee_manim/templates/fossee_manim/base.html @@ -102,7 +102,8 @@ - + + {% endblock %} diff --git a/fossee_manim/templates/fossee_manim/library.html b/fossee_manim/templates/fossee_manim/library.html new file mode 100644 index 0000000..7cfc95c --- /dev/null +++ b/fossee_manim/templates/fossee_manim/library.html @@ -0,0 +1,62 @@ +{% extends 'fossee_manim/base.html' %} + + {% block title %} + FOSSEE Animations | Topic Library + {% endblock %} + + {% block content %} +
+

Library of Topics

+
+
+ Muddled about what you could possibly animate?
+ Feel free to pick up topics from the lists below!
+ +
+
+
+
+ + + +
+ +
+ + + +
+
+
+ {% endblock %} diff --git a/fossee_manim/templates/fossee_manim/libraryMath.html b/fossee_manim/templates/fossee_manim/libraryMath.html new file mode 100644 index 0000000..8e781f3 --- /dev/null +++ b/fossee_manim/templates/fossee_manim/libraryMath.html @@ -0,0 +1,16 @@ +{% extends 'fossee_manim/base.html' %} + + {% block title %} + FOSSEE Animations | Library of Mathhematics Topics + {% endblock %} + +{% block content %} +
+

Mathematics Topics

+
+
+ +
+
+ + {% endblock %} diff --git a/fossee_manim/templates/fossee_manim/libraryPhys.html b/fossee_manim/templates/fossee_manim/libraryPhys.html new file mode 100644 index 0000000..74ce6c7 --- /dev/null +++ b/fossee_manim/templates/fossee_manim/libraryPhys.html @@ -0,0 +1,16 @@ +{% extends 'fossee_manim/base.html' %} + + {% block title %} + FOSSEE Animations | Library of Mathhematics Topics + {% endblock %} + +{% block content %} +
+

Physics Topics

+
+
+ +
+
+ + {% endblock %} diff --git a/fossee_manim/urls.py b/fossee_manim/urls.py index d9f9bc2..dac61e2 100644 --- a/fossee_manim/urls.py +++ b/fossee_manim/urls.py @@ -27,7 +27,11 @@ urlpatterns = [ url(r'^search_category/(?P.+)$', views.search_category, name='search_category'), url(r'^about/$',views.about, name='about'), - url(r'^workshops/$',views.workshops, name='workshops'), + url(r'^outreach/$',views.outreach, name='outreach'), + url(r'^library/$',views.library, name='library'), + url(r'^libraryMath/$',views.libraryMath, name='libraryMath'), + url(r'^libraryPhys/$',views.libraryPhys, name='libraryPhys'), + url(r'^libraryCS/$',views.libraryCS, name='libraryCS'), url(r'^explore/(?P.+)$', views.explore, name='explore'), ] diff --git a/fossee_manim/views.py b/fossee_manim/views.py index f547db2..3732ce7 100644 --- a/fossee_manim/views.py +++ b/fossee_manim/views.py @@ -541,6 +541,20 @@ def faqs(request): categories = Category.objects.all() return render(request, 'fossee_manim/faqs.html', {'categories': categories}) -def workshops(request): +def outreach(request): categories = Category.objects.all() - return render(request, 'fossee_manim/workshops.html', {'categories': categories}) + return render(request, 'fossee_manim/outreach.html', {'categories': categories}) + +def library(request): + categories = Category.objects.all() + return render(request, 'fossee_manim/library.html', {'categories': categories}) + +def libraryMath(request): + categories = Category.objects.all() + return render(request, 'fossee_manim/libraryMath.html', {'categories': categories}) +def libraryPhys(request): + categories = Category.objects.all() + return render(request, 'fossee_manim/libraryPhys.html', {'categories': categories}) +def libraryCS(request): + categories = Category.objects.all() + return render(request, 'fossee_manim/libraryCS.html', {'categories': categories}) -- cgit