Changeset - 654453c1c2fd
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 14 years ago 2010-10-11 19:53:18
bkuhn@ebb.org
Allow for two news items at once on the frontpage.
2 files changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/conservancy.css
Show inline comments
...
 
@@ -122,96 +122,97 @@ h3 { margin-top: .6em; margin-bottom: .4em; }
 
#container #sidebar.Services ul li.Services,
 
#container #sidebar.Applying ul li.Applying
 
{
 
    color: #000033;
 
    font-weight: bold;
 
    background: #fff url(/img/nav-bg-up.png) top repeat-x;
 
}
 
#container #sidebar h2 {
 
    text-align: center;
 
    font-size: 150%;
 
    margin: 1.5em 0 0.8em 0;
 
}
 
#container #sidebar hr {
 
    width: 75%;
 
    float: center;
 
    clear: all;
 
}
 

	
 
/* Navbar Submenus (currently unused) */
 
#navbar li ul { display: none; border: 1px solid #444; }
 
#navbar li:hover ul { display: block; position: absolute; }
 
#navbar li ul li { float: none; }
 
#navbar li ul li a { border: 0px; margin: 0px; }
 

	
 
.shaded { background: #ffeab7; padding: .1em .5em; margin-bottom: .5em; }
 

	
 
.columns {
 
    width: 100%;
 
    overflow: hidden;
 
}
 

	
 
.column-small {
 
    width: 31%;
 
    padding-bottom: 32767px;
 
    margin-bottom: -32767px;
 
 }
 
.column-large {
 
    margin-left: 35%;
 
    margin-right: 50px;
 
    padding-bottom: 32767px;
 
    margin-bottom: -32767px;
 
}
 

	
 
.column-left { float: left; }
 
.column-right { float: right; }
 

	
 
.column h2 { font-size: 1.25em; }
 
.column h3 { font-size: 1.1em; }
 
.column hr { width: 50%; align: center; }
 

	
 
.column h2 a { text-decoration: none; color: #000000; }
 
.column h2 a:hover { text-decoration: underline; }
 

	
 
#conservancyfooter {
 
  margin-top: 1em;
 
  border-top: 1px solid #ccc;
 
  text-align: center;
 
  clear: both;
 
}
 

	
 
span.continued {
 
  display: block;
 
  font-size: .83em;
 
  font-weight: bold;
 
  margin-top: 1em;
 
  margin-bottom: 1em;
 
}
 

	
 
p.date {
 
  font-style: italic;
 
  font-size: .83em;
 
  margin-bottom: .3em;
 
  margin-top: .3em;
 
}
 

	
 
a.feedlink /* RSS icon */ { display: block; float: right; font-size: 10pt; }
 

	
 
blockquote, div.quote /* div.quote is used by conservancy whitepaper */ {
 
  margin-left: 2em;
 
  margin-right: 2em;
 
  padding-left: 1em;
 
  padding-right: 1em;
 
  border: 1px solid #fff;
 
  background: #eee;
 
}
 

	
 
.newsgraphic { float: right; }
 
.newsgraphic img { border: 1px solid #000; }
 

	
 
.secondary_info { font-size: 83%; }
 
.next_page_button { float: right; }
 
.document_format { border: 1px solid #888; padding: .2em; background: #fff99d;}
 
.copyright_info { font-size: 90%; }
 
hr.footnote-separator { width: 80%; margin-left: auto; margin-right: auto; }
 

	
 
/* Resources pages */
 
div.download-formats { margin-top: 2em; margin-bottom: 2em; }
www/conservancy/templates/frontpage.html
Show inline comments
...
 
@@ -7,78 +7,85 @@
 
<link rel="alternate" type="application/rss+xml" title="Software Freedom Conservancy Blogs" href="/feeds/blog/" />
 
{% endblock %}
 

	
 
{% block content %}
 

	
 
<div class="singleColumn">
 

	
 
<h1>The Software Freedom Conservancy</h1>
 

	
 
<p>The Software Freedom Conservancy is a not-for-profit organization that
 
  helps promote, improve, develop, and defend Free, Libre, and Open Source
 
  Software (FLOSS) projects.  Conservancy provides a non-profit home and
 
  infrastructure for FLOSS projects.  This allows FLOSS developers to
 
  focus on what they do best &mdash; writing and improving FLOSS for the
 
  general public &mdash; while Conservancy takes care of the projects' needs that
 
  do not relate directly to software development.</p>
 
</div>
 

	
 
<div class="columns">
 

	
 
<div class="column column-small column-left">
 
<p>
 
<h2>Learn More about Conservancy</h2>
 
<span class="continued"><a href="/overview/">An Overview of Conservancy&hellip;</a></span>
 
<span class="continued"><a href="/members/current/">Conservancy's current member projects&hellip;</a></span>
 
<span class="continued"><a href="/members/services/">Services that Conservancy provides to its member projects&hellip;</a></span>
 
</p>
 
<h2>Follow Conservancy RSS Feeds</h2>
 

	
 
<p>There is a <a href="/feeds/ominibus/">full site feed available</a>, as
 
  well as separate feeds for the <a href="/feeds/news/">news items</a> and
 
  <a href="/feeds/blog/">blog posts</a>.</p>
 

	
 
<h2>Support Conservancy</h2>
 
<p>As a 501(c)(3) non-profit organization, Conservancy relies on
 
  charitable donations for its operations.
 
  Please <a href="/donate/">donate generously</a> to help our work!
 
</p>
 
</div>
 

	
 
<div class="column column-large">
 
{% if press_releases.0.pub_date|date_within_past_days:30 %}
 
<div class="shaded">
 
<h2><a href="/feeds/news/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/news/">Recent News</a></h2>
 
<p class="date">{{ press_releases.0.pub_date|date:"F j, Y" }}</p>
 
<h3><a href="{{ press_releases.0.get_absolute_url }}">{{ press_releases.0.headline|safe }}</a></h3>
 
{{ press_releases.0.summary|safe }}
 
{% if press_releases.0.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %}
 
{% if press_releases.1.pub_date|date_within_past_days:15 %}
 
<hr/>
 
<p class="date">{{ press_releases.1.pub_date|date:"F j, Y" }}</p>
 
<h3><a href="{{ press_releases.1.get_absolute_url }}">{{ press_releases.1.headline|safe }}</a></h3>
 
{{ press_releases.1.summary|safe }}
 
{% if press_releases.1.body %}<p><span class="continued"><a href="{{ press_releases.0.get_absolute_url }}">Read More...</a></span></p>{% endif %}
 
{% endif %}
 
</div>
 
{% endif %}
 
<p><span class="continued"><a href="/news/">Conservancy News
 
      Archive&hellip;</a></p>
 
{% if blog.0.is_recent %}
 
<h2><a href="/feeds/blog/" class="feedlink"><img src="/img/feed-icon-14x14.png" alt="[RSS]"/></a> <a href="/blog/">Conservancy Blog</a></h2>
 
<div class="shaded">
 
<p class="date">{{ blog.0.pub_date|date:"F j, Y" }}</p>
 
<h3><a href="{{ blog.0.get_absolute_url }}">{{ blog.0.headline|safe }}</a></h3>
 
{{ blog.0.summary|safe }}
 
<p><span class="continued"><a href="{{ blog.0.get_absolute_url }}">Read More...</a></span></p>
 
<p class="small date">Posted by {{ blog.0.author.formal_name }}</p>
 
{% endif %}
 

	
 
{% if blog.1.is_recent %}
 
<div class="shaded">
 
<p class="date">{{ blog.1.pub_date|date:"F j, Y" }}</p>
 
<h3><a href="{{ blog.1.get_absolute_url }}">{{ blog.1.headline|safe }}</a></h3>
 
{{ blog.1.summary|safe }}
 
<p><span class="continued"><a href="{{ blog.1.get_absolute_url }}">Read More...</a></span></p>
 
<p class="small date">Posted by {{ blog.1.author.formal_name }}</p>
 
<p><a href="/blog/">Conservancy Blog Archive...</a></p>
 
</div>
 
{% else %}
 
<p><span class="continued"><a href="/blog/">Conservancy Blog Archive&hellip;</a></p>
 
</div>
 
{% endif %}
 
</div>
 
</div>
 
{% endblock %}
0 comments (0 inline, 0 general)