Skip to content

Commit

Permalink
Added css3 font and updated homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
glenbot committed Jul 31, 2011
1 parent 5a3c21f commit a5a5585
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
17 changes: 17 additions & 0 deletions apps/codrspace/static/codrspace.css
Expand Up @@ -4,7 +4,20 @@ body {
margin: 0;
}

@font-face {
font-family: 'OCRAStdRegular';
src: url('ocrastd-webfont.eot');
src: url('ocrastd-webfont.eot?#iefix') format('embedded-opentype'),
url('ocrastd-webfont.woff') format('woff'),
url('ocrastd-webfont.ttf') format('truetype'),
url('ocrastd-webfont.svg#OCRAStdRegular') format('svg');
font-weight: normal;
font-style: normal;

}

#home-content { padding: 20px; }
#home-content h3 { font-family: 'OCRAStdRegular'; font-size: 30px;}
#header { border-bottom: 1px solid #ccc; padding: 10px; }
#header .logo { font-size: 36px; }
#header .logo a { color: white; text-decoration: none; }
Expand All @@ -19,6 +32,10 @@ a.get-started { font-size: 24px; }
padding: 10px;
}

.coder-font {
font-family: 'OCRAStdRegular';
}

.shadowee {
background-color: #CCC;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(50, 50, 50, 0.9) 0%), to(rgba(30, 30, 30, 0.9) 50%));
Expand Down
4 changes: 2 additions & 2 deletions apps/codrspace/templates/auth_base.html
Expand Up @@ -3,7 +3,7 @@
{% block header %}
<div id="auth-header" class="shadowee">
<ul>
<li><a href="{% url homepage %}">CodrSpace.com</a></li>
<li><a href="{% url homepage %}"><span class="coder-font">CodrSpace.com<span></a></li>
<li>Wecome, {{ user.username }}</li>
<li><a href="{% url add %}">Add Post</a></li>
<li><a href="{% url post_list user.username %}">Go to posts &rarr;</a></li>
Expand All @@ -19,6 +19,6 @@

{% block footer %}
<div id="auth-footer" class="shadowee">
2011 CodrSpace.com&nbsp;&nbsp;<a href="{% url signout %}">Sign Out</a>
<span class="coder-font">2011 CodrSpace.com</span>&nbsp;&nbsp;<a href="{% url signout %}">Sign Out</a>
</div>
{% endblock %}
11 changes: 9 additions & 2 deletions apps/codrspace/templates/home.html
Expand Up @@ -14,9 +14,16 @@
{% block content %}
<div id="home-content">
<h3>What is Codrspace?</h3>
<p>It's a place where you can write tutorials, show-off code, and let the world know you are 1337.</p>
<p>It's a blogging plarform for coders.</p>
<h3>What makes it special?</h3>
<ol>
<li>Integrated with GitHub. An already accelerated coding community</li>
<li>Easily add gists and raw code through shortcodes.</li>
<li>No wysiwyg. Use markdown to create your posts easily.</li>
<li>No themeing. Auto generated styling of code and text.</li>
</ol>
<h3>Why Codrspace?</h3>
<p>Because a 1337 developer deserves a 1337 product.</p>
<p>Less headache, more <strong>focus on writing about code</strong>, and because it's a <a href="http://djangodash.com/">Django Dash Project</a> and we would love your support!.</p>
{% if not user.is_authenticated %}
<a class="get-started" href="{% url signin_start %}">Get Started &rarr;</a>
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion settings.py
Expand Up @@ -175,7 +175,7 @@
# Login Redirect
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/signin/'
LOGOUT_UTL = '/signout/'
LOGOUT_URL = '/signout/'

# Domain Configuration
SITE_PROTOCOL = 'http'
Expand Down

0 comments on commit a5a5585

Please sign in to comment.