Skip to content

Commit

Permalink
initial app
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvadm committed Aug 8, 2012
0 parents commit 2a5d12e
Show file tree
Hide file tree
Showing 9 changed files with 706 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pyc
*.db

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: python app.py
22 changes: 22 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os

from flask import Flask
from flask import render_template

app = Flask(__name__)


@app.route('/')
def home():
return render_template('index.html')


@app.route('/robots.txt')
def robots():
res = app.make_response('User-agent: *\nAllow: /')
res.mimetype = 'text/plain'
return res

if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Flask==0.9
Jinja2==2.6
Werkzeug==0.8.3
wsgiref==0.1.2
632 changes: 632 additions & 0 deletions static/css/bootstrap.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions static/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
body {
direction: rtl;
background: #dff0f5;
font: 300 100.01%/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
color: #002b36;
}
Binary file added static/img/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/favicon.ico
Binary file not shown.
38 changes: 38 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!doctype html>
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" prefix="og: http://ogp.me/ns#"> <!--<![endif]-->
<head>
<meta charset="utf-8">

<title>ויפי-פתוח || מפלגת הפיראטים הישראלית</title>

<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">

<meta name="viewport" content="width=device-width, initial-scale=0.4">
<meta name="robots" content="all">

<meta property="og:title" content=""/>
<meta property="og:url" content=""/>

<link rel="canonical" href="">
<link rel="shortlink" href="">

<link rel="shortcut icon" href="static/img/favicon.ico">

<link rel="stylesheet" href="static/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="static/css/main.css" type="text/css">

</head>

<body lang="en">
{% block page_content %}
<div id="main" class="container" role="main">
<h1>ויפי-פתוח</h1>
</div>
{% endblock %}
</body>
</html>

0 comments on commit 2a5d12e

Please sign in to comment.