diff --git a/analyzer/views.py b/analyzer/views.py index 60f00ef..0d88c7d 100755 --- a/analyzer/views.py +++ b/analyzer/views.py @@ -1 +1,4 @@ -# Create your views here. +from django.shortcuts import render_to_response + +def index(request): + return render_to_response('main.html') diff --git a/media/mtg.css b/media/mtg.css new file mode 100644 index 0000000..20de357 --- /dev/null +++ b/media/mtg.css @@ -0,0 +1,89 @@ +/* Page styles */ +body { + font-family: serif; +} +h1, h2, h3, h4, h5, h6 { + text-shadow: 2px 2px 2px #999; +} + +header { + border-bottom: 2px solid #999; +} +#navigation { + width: 140px; + position: absolute; +} +#navigation ul { + padding: 0px; +} +#navigation li { + list-style: none; +} +#navigation a { + display: block; + padding: 2px; + background-color: #ddd; + border-bottom: 1px solid #999; +} +#navigation a:hover { + background-color: #ccc; +} +#content { + margin-left: 160px; +} +/* Cards and mana symbols */ +.mana { + height: 1em; + width: 1em; + border-radius: 0.5em; + -moz-border-radius: 5px; + display: block; + float: left; + color: #eee; + background-color: gray; + border: 1px solid black; + margin-right: 2px; + text-align: center; +} +.card { + border: 1px solid gray; + background-color: #999; + padding: 3px; +} +.mana.R, .card.R { background-color: red; } +.mana.G, .card.G { background-color: green; } +.mana.U, .card.U { background-color: blue; } +.mana.B, .card.B { background-color: black; } +.mana.W, .card.W { background-color: white; } +.card .title, +.card .info { + border: 1px solid gray; + background-color: #eee; + padding: 3px; + height: 1em; +} +.card .title .name, +.card .info .type { + font-weight: bold; + float: left; +} +.card .title .cost, +.card .info .rarity { + float: right; +} +.card .rarity { +} +.card .rarity.U { color: gray; } +.card .rarity.R { color: darkgoldenrod; } +.card .rarity.M { color: red; } +.card .picture { + height: 5em; + background-color: #ccc; + margin: 5px; +} +.card .text { + margin-top: 5px; + border: 1px solid gray; + background-color: white; + padding: 3px; +} diff --git a/templates/analyzer/card_list.html b/templates/analyzer/card_list.html index 27ca93a..0c1c0da 100644 --- a/templates/analyzer/card_list.html +++ b/templates/analyzer/card_list.html @@ -1,4 +1,4 @@ - +{% extends "main.html" %} {% block content %}

Cards