This repository has been archived by the owner on Jan 19, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Very basic skeleton site, ready for design/content/apps. Pretty much …
…everything
- Loading branch information
1 parent
ce7e578
commit 1ed759e
Showing
16 changed files
with
196 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html{% block schema_org %}{% endblock %}> | ||
<!--[if (lt IE 9)]><html class="no-js bad-ie" lang="{{ LANG }}" dir="{{ DIR }}"><![endif]--> | ||
<!--[if (gt IE 8)|!(IE)]><!--><html class="no-js" lang="{{ LANG }}" dir="{{ DIR }}"><!--<![endif]--> | ||
<head> | ||
<title>{% block page_title %}{% endblock %} | Mozilla Gameon</title> | ||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> | ||
<meta name="viewport" content="initial-scale=1.0, width=device-width"> | ||
<link rel="stylesheet" href="//www.mozilla.org/tabzilla/media/css/tabzilla.css"> | ||
{% block site_css %}{% endblock %} | ||
<!--[if lt IE 9]> | ||
<script type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<link rel="icon" href="{{ MEDIA_URL }}img/favicon.ico" /> | ||
{% block social_meta %}{% endblock %} | ||
</head> | ||
<body id="{% block page_id %}{% endblock %}" class="{% block section_class %}{% endblock %}"> | ||
<script type="text/javascript"> | ||
document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/, ''); | ||
</script> | ||
{% block header %} | ||
<header> | ||
<p>I am a header</p> | ||
<nav> | ||
<ul> | ||
<li><a href="{{ url('static_site.home') }}">Home</a></li> | ||
<li><a href="{{ url('static_site.rules') }}">Rules</a></li> | ||
<li><a href="{{ url('static_site.prizes') }}">Prizes</a></li> | ||
<li><a href="{{ url('static_site.resources') }}">Resources</a></li> | ||
<li><a href="{{ url('static_site.previous') }}">Previous winners</a></li> | ||
<li><a href="{{ url('static_site.categories') }}">Categories</a></li> | ||
</ul> | ||
</nav> | ||
</header> | ||
{% endblock %} | ||
{% block content %} | ||
{% endblock %} | ||
{% block footer %} | ||
<footer> | ||
<p>I am a footer</p> | ||
</footer> | ||
{% endblock %} | ||
{% block site_js %}{% endblock %} | ||
{% block page_js %}{% endblock %} | ||
<script src="//www.mozilla.org/tabzilla/media/js/tabzilla.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block page_title %}Categories{% endblock %} | ||
{% block page_id %}category_list{% endblock %} | ||
{% block section_class %}categories{% endblock %} | ||
|
||
{% block content %} | ||
<h1>CATEGORIES!! FEELS SO GOOD TO SPELL IT WITH AN S</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block page_title %}Judges{% endblock %} | ||
{% block page_id %}judges_list{% endblock %} | ||
{% block section_class %}judges{% endblock %} | ||
|
||
{% block content %} | ||
<h1>THIS IS ALL THE JUDGES - LOOK AT THEIR FACES</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block page_title %}Homepage{% endblock %} | ||
{% block page_id %}home{% endblock %} | ||
{% block section_class %}landing{% endblock %} | ||
|
||
{% block content %} | ||
<h1>HONEY, I'M HOME!!</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block page_title %}Previous winners{% endblock %} | ||
{% block page_id %}previous_winners{% endblock %} | ||
{% block section_class %}previous{% endblock %} | ||
|
||
{% block content %} | ||
<h1>PREVIOUS, I HAVE PLENTY OF PREVIOUS</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block page_title %}Prizes{% endblock %} | ||
{% block page_id %}prize_list{% endblock %} | ||
{% block section_class %}prizes{% endblock %} | ||
|
||
{% block content %} | ||
<h1>I LIKE PRIZES!!!</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block page_title %}Resources{% endblock %} | ||
{% block page_id %}resource_list{% endblock %} | ||
{% block section_class %}resources{% endblock %} | ||
|
||
{% block content %} | ||
<h1>LOOK AT ALL THESE RESOURCES!!</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block page_title %}Rules{% endblock %} | ||
{% block page_id %}rules_page{% endblock %} | ||
{% block section_class %}rules{% endblock %} | ||
|
||
{% block content %} | ||
<h1>SHOW ME THE RULES!</h1> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from django.conf.urls.defaults import * | ||
|
||
from . import views | ||
|
||
|
||
urlpatterns = patterns('', | ||
url(r'^$', views.home, name='static_site.home'), | ||
url(r'^rules/$', views.rules, name='static_site.rules'), | ||
url(r'^judges/$', views.judges, name='static_site.judges'), | ||
url(r'^prizes/$', views.prizes, name='static_site.prizes'), | ||
url(r'^resources/$', views.resources, name='static_site.resources'), | ||
url(r'^previous/$', views.previous, name='static_site.previous'), | ||
url(r'^categories/$', views.categories, name='static_site.categories'), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
from django.shortcuts import render | ||
|
||
import commonware | ||
|
||
log = commonware.log.getLogger('playdoh') | ||
|
||
|
||
def home(request, template='static_site/landing.html'): | ||
"""Main example view.""" | ||
data = {} # You'd add data here that you're sending to the template. | ||
log.debug("I'm home!") | ||
return render(request, template, data) | ||
|
||
|
||
def rules(request, template='static_site/rules.html'): | ||
"""Main example view.""" | ||
data = {} # You'd add data here that you're sending to the template. | ||
log.debug("I'm reading the rules!") | ||
return render(request, template, data) | ||
|
||
|
||
def judges(request, template='static_site/judges.html'): | ||
"""Main example view.""" | ||
data = {} # You'd add data here that you're sending to the template. | ||
return render(request, template, data) | ||
|
||
|
||
def prizes(request, template='static_site/prizes.html'): | ||
"""Main example view.""" | ||
data = {} # You'd add data here that you're sending to the template. | ||
return render(request, template, data) | ||
|
||
|
||
def resources(request, template='static_site/resources.html'): | ||
"""Main example view.""" | ||
data = {} # You'd add data here that you're sending to the template. | ||
return render(request, template, data) | ||
|
||
|
||
def previous(request, template='static_site/previous.html'): | ||
"""Main example view.""" | ||
data = {} # You'd add data here that you're sending to the template. | ||
return render(request, template, data) | ||
|
||
|
||
def categories(request, template='static_site/categories.html'): | ||
"""Main example view.""" | ||
data = {} # You'd add data here that you're sending to the template. | ||
return render(request, template, data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters