summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/website/css/main.css8
-rw-r--r--static/website/images/Advanced-Cpp.jpg (renamed from static/website/images/Advanced-C++.jpg)bin1855 -> 1855 bytes
-rw-r--r--static/website/images/Advanced-Cpp.png (renamed from static/website/images/Advanced-C++.png)bin3972 -> 3972 bytes
-rw-r--r--static/website/images/C-and-Cpp.jpg (renamed from static/website/images/C-and-C++.jpg)bin1449 -> 1449 bytes
-rw-r--r--static/website/templates/ajax-duration.html4
-rw-r--r--static/website/templates/ajax-tutorials.html4
-rw-r--r--static/website/templates/index.html8
7 files changed, 19 insertions, 5 deletions
diff --git a/static/website/css/main.css b/static/website/css/main.css
index d1e7e52..9e7ed71 100644
--- a/static/website/css/main.css
+++ b/static/website/css/main.css
@@ -359,3 +359,11 @@ table .title a {
background: #FDF5E6;
transition: background 2.5s ease;
}
+.category-title{
+ height: 100px;
+ text-shadow: 1px 1px 1px #000, 3px 3px 5px blue;
+ line-height: 100px;
+ text-align: center;
+ font-size: 22px;
+ overflow: hidden;
+}
diff --git a/static/website/images/Advanced-C++.jpg b/static/website/images/Advanced-Cpp.jpg
index 4550d61..4550d61 100644
--- a/static/website/images/Advanced-C++.jpg
+++ b/static/website/images/Advanced-Cpp.jpg
Binary files differ
diff --git a/static/website/images/Advanced-C++.png b/static/website/images/Advanced-Cpp.png
index 5f41a18..5f41a18 100644
--- a/static/website/images/Advanced-C++.png
+++ b/static/website/images/Advanced-Cpp.png
Binary files differ
diff --git a/static/website/images/C-and-C++.jpg b/static/website/images/C-and-Cpp.jpg
index b1e972b..b1e972b 100644
--- a/static/website/images/C-and-C++.jpg
+++ b/static/website/images/C-and-Cpp.jpg
Binary files differ
diff --git a/static/website/templates/ajax-duration.html b/static/website/templates/ajax-duration.html
index 22fe04f..e02fcff 100644
--- a/static/website/templates/ajax-duration.html
+++ b/static/website/templates/ajax-duration.html
@@ -1,14 +1,14 @@
{% load count_tags %}
<div>
<div id="minutes">
- <option value="None">min</option>
+ <option value="">min</option>
{% for i in minutes|inc|get_range %}
<option value="{{ i }}-{{ i|inc }}">{{ i }}-{{ i|inc }} </option>
{% endfor %}
</div> <!-- /#minutes -->
<div id="seconds">
- <option value="None">sec</option>
+ <option value="">sec</option>
{% for i in seconds|get_range:"0,10" %}
<option value="{{ i }}-{{ i|add:"10" }}">{{ i }}-{{ i|add:"10" }}</option>
{% endfor %}
diff --git a/static/website/templates/ajax-tutorials.html b/static/website/templates/ajax-tutorials.html
index c19fe3c..62192bb 100644
--- a/static/website/templates/ajax-tutorials.html
+++ b/static/website/templates/ajax-tutorials.html
@@ -1,5 +1,5 @@
-<option value="None">Select a Tutorial</option>
+<option value="">Select a Tutorial</option>
{% for tutorial in tutorials %}
- <option value="{{ tutorial.tutorial_name }}">{{ tutorial.tutorial_name }}</option>
+ <option value="{{ tutorial.tutorial }}">{{ tutorial.tutorial }}</option>
{% endfor %}
<option value="General">General</option>
diff --git a/static/website/templates/index.html b/static/website/templates/index.html
index 7f4a497..63890fd 100644
--- a/static/website/templates/index.html
+++ b/static/website/templates/index.html
@@ -10,7 +10,13 @@
{% for category in categories %}
<div>
<div class="thumbnail">
- <img src="{% static 'website/images/' %}{{ category }}.jpg">
+ {% with file=category|get_category_image %}
+ {% if file %}
+ <img src="{% static category|get_category_image %}">
+ {% else %}
+ <div class="category-title">{{category}}</div>
+ {% endif %}
+ {% endwith %}
<div class="caption">
<small class="category">
{{ category }}