diff options
author | David Stanek <dstanek@dstanek.com> | 2012-11-04 07:44:30 -0500 |
---|---|---|
committer | David Stanek <dstanek@dstanek.com> | 2012-11-04 08:37:23 -0500 |
commit | ab4f67772df6ccd74aed7dc7aca8fcefea132685 (patch) | |
tree | 73daec30cf79011e38e252f5bb6f9abb313ab9da | |
parent | d812e14d8678dad36c090b36280dccd22d5aeb67 (diff) | |
download | django-precompiler-3.polished-hello-example.tar.bz2 django-precompiler-3.polished-hello-example.tar.xz django-precompiler-3.polished-hello-example.zip |
a polished hello codemash example3.polished-hello-example
-rw-r--r-- | codemash/templates/base.html | 15 | ||||
-rw-r--r-- | codemash/templates/index.html | 6 |
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 %} |