Website update. There is now a community section.
This commit is contained in:
parent
33bb6dec37
commit
2fb50e55d9
28 changed files with 1441 additions and 33 deletions
32
flask_website/templates/community/badges.html
Normal file
32
flask_website/templates/community/badges.html
Normal 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 %}
|
||||
21
flask_website/templates/community/index.html
Normal file
21
flask_website/templates/community/index.html
Normal 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 %}
|
||||
26
flask_website/templates/community/irc.html
Normal file
26
flask_website/templates/community/irc.html
Normal 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 %}
|
||||
10
flask_website/templates/community/layout.html
Normal file
10
flask_website/templates/community/layout.html
Normal 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 %}
|
||||
27
flask_website/templates/community/logos.html
Normal file
27
flask_website/templates/community/logos.html
Normal 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 %}
|
||||
23
flask_website/templates/community/twitter.html
Normal file
23
flask_website/templates/community/twitter.html
Normal 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> —
|
||||
development lead
|
||||
<li><a href="http://twitter.com/PocooProject">@PocooProject</a> —
|
||||
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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue