aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codemash/templates/base.html15
-rw-r--r--codemash/templates/index.html6
2 files changed, 19 insertions, 2 deletions
diff --git a/codemash/templates/base.html b/codemash/templates/base.html
index bb85256..145df9e 100644
--- a/codemash/templates/base.html
+++ b/codemash/templates/base.html
@@ -1,7 +1,22 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html>
3 <head> 3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
4 <title>Hello Codemash: {% block title %}TODO: add custom content using child templates{% endblock %}</title> 5 <title>Hello Codemash: {% block title %}TODO: add custom content using child templates{% endblock %}</title>
6 <style type="text/css">
7 html * { padding:0; margin:0; height:100%; }
8 body * { padding:10px 20px; }
9 body * * { padding:0; }
10 body { font:small sans-serif; }
11 body>div { border-bottom:1px solid #ddd; }
12 h1 { font-weight:normal; }
13 h2 { margin-bottom:.8em; }
14 #summary { background: #e0ebff; }
15 #summary h2 { font-weight:normal; color:#666; }
16 #header, #footer { background:#e0ebff; height: 10px; }
17 #header { margin-bottom:10px; }
18 #footer { position:absolute; bottom:0; width:100%; }
19 </style>
5 </head> 20 </head>
6 <body> 21 <body>
7 <div id="header">...header...</div> 22 <div id="header">...header...</div>
diff --git a/codemash/templates/index.html b/codemash/templates/index.html
index 29c949d..5f598b1 100644
--- a/codemash/templates/index.html
+++ b/codemash/templates/index.html
@@ -3,6 +3,8 @@
3{% block title %}Hello{% endblock %} 3{% block title %}Hello{% endblock %}
4 4
5{% block main %} 5{% block main %}
6 <h1>It worked!</h1> 6 <div id="summary">
7 <h2>Congratulations on your second Django-powered page.</h2> 7 <h1>It worked!</h1>
8 <h2>Congratulations on your second Django-powered page.</h2>
9 </div>
8{% endblock %} 10{% endblock %}