# HG changeset patch # User Brian Neal <bgneal@gmail.com> # Date 1240171800 0 # Node ID aa2b41c5212baa0d5831dee2dfa229bf0d96ed48 # Parent 5c03abb0cd0a7265e9e75b929f29531efe6bbac3 First steps at scratching out a home page. Will need to develop some template tags now to fill it out. diff -r 5c03abb0cd0a -r aa2b41c5212b gpp/templates/base.html --- a/gpp/templates/base.html Sun Apr 19 18:36:26 2009 +0000 +++ b/gpp/templates/base.html Sun Apr 19 20:10:00 2009 +0000 @@ -48,7 +48,7 @@ <div id="content-secondary" class="span-4 append-1"> <ul class="nav-left"> - <li><a href="{% url news-index_page page=1 %}">Home</a></li> + <li><a href="{% url home %}">Home</a></li> <li><a href="{% url news-index_page page=1 %}">News</a></li> <li><a href="{% url gcalendar-index %}">Calendar</a></li> <li><a href="{% url contact-form %}">Contact</a></li> @@ -74,7 +74,11 @@ <div id="footer" class="span-24"> - <p>Website © 2008 by Brian Neal</p> + <p> + TODO: Should put links to various policies down here. Additional navigation could go here. + Add a colophon. + </p> + <p>SurfGuitar101.com © 2009 by Brian Neal</p> </div> {% if debug %} diff -r 5c03abb0cd0a -r aa2b41c5212b gpp/templates/home.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/templates/home.html Sun Apr 19 20:10:00 2009 +0000 @@ -0,0 +1,23 @@ +{% extends 'base.html' %} +{% block title %}Home{% endblock %} +{% block content %} +<h2>Welcome to SurfGuitar101!</h2> +<p>You are looking at a test version of the new SurfGuitar101 website, dubbed <strong>SG101 2.0</strong>. +All major functionality is here except for the forums (which are still in development). +The purpose of this test site is to test the new site software, to get feedback from the user base, and +to develop a better theme (colors, logos, layout, etc.) for the site. All bugs and feature requests are being tracked at +<a href="http://code.surfguitar101.com">code.surfguitar101.com</a>. Existing SG101 members are encouraged +to sign up here and give the new site a test drive. Any and all feedback is appreciated! Thank you for +helping to make this site be the best home on the web for fans and friends of surf music! +</p> +<p>Remember that this is a test site, and not everything is going to work. Nothing here is +permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features. +Also, I hope that the look and feel of this site can be greatly improved to something really cool! I'll need +lots of help for this aspect, as I'm more of a coder than a designer.</p> +<div class="span-9"> + Some stuff. +</div> +<div class="span-10 last"> + Some more stuff. +</div> +{% endblock %} diff -r 5c03abb0cd0a -r aa2b41c5212b gpp/urls.py --- a/gpp/urls.py Sun Apr 19 18:36:26 2009 +0000 +++ b/gpp/urls.py Sun Apr 19 20:10:00 2009 +0000 @@ -10,6 +10,7 @@ } urlpatterns = patterns('', + url(r'^$', 'views.home', name='home'), (r'^admin/doc/', include('django.contrib.admindocs.urls')), (r'^admin/', include(admin.site.urls)), (r'^accounts/', include('accounts.urls')), diff -r 5c03abb0cd0a -r aa2b41c5212b gpp/views.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/views.py Sun Apr 19 20:10:00 2009 +0000 @@ -0,0 +1,15 @@ +""" +This file contains views that don't belong to any specific application. +In particular, the home page view. +""" +from django.shortcuts import render_to_response +from django.template import RequestContext + + +def home(request): + """ + The home page view of the site. + """ + return render_to_response('home.html', { + }, + context_instance = RequestContext(request)) diff -r 5c03abb0cd0a -r aa2b41c5212b media/css/base.css --- a/media/css/base.css Sun Apr 19 18:36:26 2009 +0000 +++ b/media/css/base.css Sun Apr 19 20:10:00 2009 +0000 @@ -52,7 +52,7 @@ color: #fff; } #footer p { - padding: 24px; + margin: 1em; } ul.app-menu { text-align: center;