Website update. There is now a community section.

This commit is contained in:
Armin Ronacher 2010-05-18 17:56:51 +02:00
parent 33bb6dec37
commit 2fb50e55d9
28 changed files with 1441 additions and 33 deletions

View file

@ -0,0 +1,32 @@
{% extends "community/layout.html" %}
{% block title %}Badges{% endblock %}
{% macro badge(filename, title) -%}
<a href="{{ url_for('general.index', _external=true) }}"><img
src="{{ url_for('.static', filename='badges/' ~ filename, _external=true) }}"
border="0"
alt="{{ title }}"
title="{{ title }}"></a>
{%- endmacro %}
{% macro show_badge(filename, title) -%}
<div class=badge>
<p>{{ badge(filename, title) }}
<pre>{{ badge(filename, title)|forceescape }}</pre>
</div>
{%- endmacro %}
{% block body %}
<h2>Badges</h2>
<p>
If you want to share the word and want to add a “powered by
Flask” badge to your website you can display one of these
nifty badges. We also have some badges if your website is not
yet powered by Flask :)
<h3>Large Badges</h3>
{{ show_badge('flask-powered.png', 'Flask powered') }}
{{ show_badge('i-wish.png', 'I wish this site were Flask powered') }}
{{ show_badge('unfortunately-not.png', 'Unfortunately not Flask powered') }}
<h3>Small Badges</h3>
{{ show_badge('flask-project-s.png', 'a Flask project') }}
{{ show_badge('made-with-flask-s.png', 'made with Flask') }}
{{ show_badge('powered-by-flask-s.png', 'powered by Flask') }}
<p><small>Idea for badges inspired by the Django Framework badges.</small></p>
{% endblock %}

View file

@ -0,0 +1,21 @@
{% extends "community/layout.html" %}
{% block body %}
<p>
Even though Flask is a rather new project, there has already a healty
community evolved around it. There is an active
<a href="{{ url_for('mailinglist.index') }}">mailinglist</a> both for
developers using Flask as well as working on the core, and an
<a href="{{ url_for('community.irc') }}">IRC</a> channel.
<p>
If you want to spread the word, there is also a selection of
<a href="{{ url_for('community.badges') }}">badges</a> and
<a href="{{ url_for('community.logos') }}">logos</a> you can use
on your own website.
<ul>
<li><a href="{{ url_for('mailinglist.index') }}">Mailinglist</a>
<li><a href="{{ url_for('community.irc') }}">IRC Channel</a>
<li><a href="{{ url_for('community.twitter') }}">Flask on Twitter</a>
<li><a href="{{ url_for('community.badges') }}">Badges</a>
<li><a href="{{ url_for('community.logos') }}">Logos</a>
</ul>
{% endblock %}

View file

@ -0,0 +1,26 @@
{% extends "community/layout.html" %}
{% block title %}IRC Channel{% endblock %}
{% block body %}
<h2>IRC Channel</h2>
<p>
The Flask IRC channel is <code>#pocoo</code> on irc.freenode.net.
Flask shares that channel with other Pocoo projects, so please
let the others know that you are talking about Flask when asking
a question.
<p>
You can use any IRC client to connect to freenode. If you don't
have one yet, pick one from the list:
<ul>
<li><a href="http://pidgin.im/">Pidgin</a>, Windows, Linux, OS X
<li><a href="http://xchat.org/">X-Chat</a>, Linux
<li><a href="http://mirc.com/">mirc</a>, Windows
<li><a href="http://colloquy.info/">colloquy</a>, OS X
</ul>
<p>
Alternatively you can also use the freenode web interface to
join the IRC channel: <a href="http://bit.ly/pocooirc">open
#pocoo in your browser</a>.
<p>
If you want to read up on older discussions you can access
the IRC logs on <a href=http://dev.pocoo.org/irclogs/>dev.pocoo.org/irclogs</a>.
{% endblock %}

View file

@ -0,0 +1,10 @@
{% extends "layout.html" %}
{% block head %}
{{ super() }}
<style type=text/css>
h1 { background-image: url({{ url_for('.static', filename='community.png') }}); }
</style>
{% endblock %}
{% block body_title %}
<h1><span>Flask Community</span></h1>
{% endblock %}

View file

@ -0,0 +1,27 @@
{% extends "community/layout.html" %}
{% block title %}Logos{% endblock %}
{% macro logo(format) -%}
<a href="{{ url_for('.static', filename='logo/flask.' ~ format)
}}">{{ format|upper }} format</a>
{%- endmacro %}
{% block body %}
<h2>Logos</h2>
<p>
The Flask logo is available for download and use in the formats
below. You can use the logo to promote Flask like you want.
The image is licensed under the Creative Commons
“Attribution-No Derivative Works 3.0 Austria” license.
<a href="http://creativecommons.org/licenses/by-nd/3.0/at/deed.en"
>Read license text</a>.
<ul>
<li>{{ logo('png') }}: for online and screen usage
<li>{{ logo('svg') }}: for online and screen usage
<li>{{ logo('eps') }}: for print use
<li>{{ logo('pdf') }}: for print use
</ul>
<p>
The font used in the logo is “Hightower Text roman” from the
Font Bureau foundry. The font can be purchased from
<a href="http://www.ascenderfonts.com/font/hightower-text-roman.aspx"
>Ascender Fonts</a>.
{% endblock %}

View file

@ -0,0 +1,23 @@
{% extends "community/layout.html" %}
{% from "_twitter.html" import tweet_box %}
{% block head %}
{{ super() }}
{% endblock %}
{% block body %}
<h2>Twitter</h2>
<p>
Currently there is no dedicated Twitter account for updates
regarding Flask, but here are some accounts that you might
want to follow:
<ul>
<li><a href="http://twitter.com/mitsuhiko">@mitsuhiko</a> &mdash;
development lead
<li><a href="http://twitter.com/PocooProject">@PocooProject</a> &mdash;
official Pocoo Project account
</ul>
<h3>Recent Tweets</h3>
<p>
Here some aggregated tweets from various people all over the planet
mentioning Flask:
{{ tweet_box(tweets, 15) }}
{% endblock %}