diff --git a/dr_botzo/urls.py b/dr_botzo/urls.py index 88ee8ec..c20605c 100644 --- a/dr_botzo/urls.py +++ b/dr_botzo/urls.py @@ -4,9 +4,9 @@ from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', - # Examples: - # url(r'^$', 'dr_botzo.views.home', name='home'), - # url(r'^blog/', include('blog.urls')), + url(r'^$', 'dr_botzo.views.home', name='home'), url(r'^admin/', include(admin.site.urls)), ) + +# vi:tabstop=4:expandtab:autoindent diff --git a/dr_botzo/views.py b/dr_botzo/views.py new file mode 100644 index 0000000..b69d91a --- /dev/null +++ b/dr_botzo/views.py @@ -0,0 +1,8 @@ +from django.shortcuts import render + +def home(request): + """Site index, nothing special (or at all).""" + + return render(request, 'index.html', {}) + +# vi:tabstop=4:expandtab:autoindent diff --git a/static/css/core.css b/static/css/core.css new file mode 100644 index 0000000..98d7c54 --- /dev/null +++ b/static/css/core.css @@ -0,0 +1,323 @@ +* { + margin: 0; + padding: 0; +} + +html, body { + font-family: "Helvetica", "Arial", sans-serif; + color: #333333; + background: #EFEFEF; + height: 100%; +} + +a:link, a:visited, a:hover, a:active { + color: #333333; +} + +table { + padding: 5px; +} + +#mainwrapper { + min-height: 100%; + position: relative; + + width: 900px; + margin-left: auto; + margin-right: auto; +} + +#header { + color: white; + background: #811610; + font-size: 11pt; + + padding: 5px 10px; + + border-left: 1px solid #CCCCCC; + border-right: 1px solid #CCCCCC; +} + +#header a:link, #header a:visited, #header a:hover, #header a:active { + color: white; + text-decoration: none; +} + +#header ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +#header li { + display: inline; +} + +#header #subnav { + float: right; +} + +#messages { + background: #EFEFEF; + border: 1px solid #BBBBBB; + + width: 50%; + margin-left: auto; + margin-right: auto; + + padding: 10px; + padding-left: 20px; + margin-bottom: 50px; +} + +#messages ul { + list-style-type: none; + padding-left: 10px; +} + +#messages .debug { + color: cyan; +} + +#messages .info { + color: black; +} + +#messages .success { + color: green; +} + +#messages .warning { + color: orange; +} + +#messages .error { + color: red; +} + +#body { + background: white; + + font-size: 11pt; + padding-top: 20px; + padding-bottom: 50px; + + border-left: 1px solid #CCCCCC; + border-right: 1px solid #CCCCCC; +} + +#loginform { + background: #EFEFEF; + + width: 50%; + margin-left: auto; + margin-right: auto; + margin-top: 50px; + padding: 10px; + + border: 1px solid #BBBBBB; +} + +#content { + margin-left: 25px; + margin-right: 25px; + line-height: 150%; +} + +#content h1, #content h2, #content h3, #content h4, #content h5, #content h6 { + color: #811610; + margin-top: 25px; + margin-bottom: 25px; + clear: both; +} + +#content p, #content ul, #content ol { + margin-bottom: 20px; +} + +#content hr { + margin-top: 10px; + margin-bottom: 10px; +} + +#content blockquote { + margin: 5px; + padding: 5px; + margin-left: 20px; + border: 1px solid #e0e0e0; +} + +#content .journal-entry { + margin-bottom: 20px; +} + +#content .unpub-warning { + color: red; +} + +#content .entry-header a:link, +#content .entry-header a:visited, +#content .entry-header a:hover, +#content .entry-header a:active { + color: #811610; + text-decoration: none; +} + +#content .entry-sep { + width: 30%; + margin-left: auto; + margin-right: auto; + border-top: 1px solid #e0e0e0; + margin-top: 35px; + margin-bottom: 50px; +} + +#content ol, #content ul { + margin-left: 20px; +} + +#content hr { + width: 50%; + margin-top: 25px; + margin-bottom: 25px; + margin-left: auto; + margin-right: auto; + color: #CCCCCC; +} + +#actions { + margin-left: 100px; + margin-right: 100px; +} + +div.actions { + margin-bottom: 50px; +} + +div.actionblock { + margin-top: 10px; + padding: 5px; +} + +div.actionform { + margin-top: 10px; +} + +#editform #id_title, #editform #id_tag_str { + width: 75%; +} + +.submission table th { + text-align: right; +} + +.errorlist { + border: 1px solid red; + background: #FF8888; + margin-bottom: 5px; +} + +.journal-entry .entry-header { + margin-bottom: 0px; +} + +.journal-entry .entry-header h1 { + font-size: 24pt; +} + +.journal-entry .entry-body { + clear: both; + padding: 5px; +} + +.journal-entry .entry-subheader { + font-size: 9pt; + padding: 5px 5px 5px 25px; + position: relative; + top: -5px; +} + +.journal-entry .entry-footer { + font-size: 8pt; + color: #888888; + padding: 5px 5px 5px 0; +} + +.journal-entry .entry-footer a:link, +.journal-entry .entry-footer a:visited, +.journal-entry .entry-footer a:hover, +.journal-entry .entry-footer a:active { + font-size: 8pt; + color: #888888; +} + +#pagination { + background: white; + width: 60%; + margin-left: auto; + margin-right: auto; + text-align: center; +} + +.page-previous { + margin-right: 15px; +} + +.page-next { + margin-left: 15px; +} + +.article-image-left { + float: left; + margin: 10px; + margin-top: 0; + margin-left: 0; +} + +.article-image-right { + float: right; + margin: 10px; + margin-top: 0; + margin-right: 0; +} + +.px400 { + width: 400px; + height: auto; +} + +.shadow { + box-shadow: 2px 2px 3px #aaaaaa; +} + +.thumbnail-image { + width: 150px; + height: auto; + margin: 5px; +} + +#footer { + width: 100%; + height: 25px; + background: #EFEFEF; + + padding: 10px 0; + + border-top: 1px solid #BBBBBB; + + font-size: 9pt; + color: #666666; + text-align: center; +} + +#footer p { + margin-bottom: 0; +} + +#footer a:link, #footer a:visited, #footer a:hover, #footer a:active { + color: #666666; +} + +/* + vi:tabstop=4:expandtab:autoindent + */ diff --git a/templates/403.html b/templates/403.html new file mode 100644 index 0000000..7b2144a --- /dev/null +++ b/templates/403.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block title %}403 Forbidden{% endblock title %} + +{% block content %} +

Sorry, you do not have permission to take that action. Please contact + support with the page with the link you clicked to get here if you believe + this is in error.

+{% endblock content %} diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..9b8b8a1 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block title %}404 Not Found{% endblock title %} + +{% block content %} +

Path {{ request_path }} not found. Please contact support with + the listed path and the page with the link you clicked to get here.

+{% endblock content %} diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 0000000..c3e834d --- /dev/null +++ b/templates/500.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block title %}500 Server Error{% endblock title %} + +{% block content %} +

Please contact support with the current URL and date/time and what you + were doing that brought you to this page.

+{% endblock content %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..6a72057 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,33 @@ + +{% load url from future %} + +{% load static %} + {% block title %}{% endblock %} - dr.botzo + + {% block extra_media %}{% endblock %} + + + +
+
+ {% if messages %} +
+
    + {% for message in messages %} + {{ message }} + {% endfor %} +
+
+ {% endif %} + +
+ {% block content %}{% endblock %} +
+
+
+ + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..e50527d --- /dev/null +++ b/templates/index.html @@ -0,0 +1,6 @@ +{% extends 'base.html' %} + +{% block title %}index{% endblock %} +