Skip to content

Commit

Permalink
rework of index with twitter bootstrap and fontawesome
Browse files Browse the repository at this point in the history
  • Loading branch information
PoGo606 committed Jun 25, 2013
1 parent 2d383b9 commit 9835654
Show file tree
Hide file tree
Showing 9 changed files with 848 additions and 29 deletions.
9 changes: 9 additions & 0 deletions static/bootstrap.min.css

Large diffs are not rendered by default.

403 changes: 403 additions & 0 deletions static/font-awesome.min.css

Large diffs are not rendered by default.

Binary file added static/font/FontAwesome.otf
Binary file not shown.
Binary file added static/font/fontawesome-webfont.eot
Binary file not shown.
399 changes: 399 additions & 0 deletions static/font/fontawesome-webfont.svg
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/font/fontawesome-webfont.ttf
Binary file not shown.
Binary file added static/font/fontawesome-webfont.woff
Binary file not shown.
11 changes: 3 additions & 8 deletions static/static.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,16 @@ html {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
#title {
height:200px;
line-height:200px;
}

form {
margin: 0 0 0px;
height: 60px;
}

footer {
position: absolute;
bottom: 0;
width: 100%;
font-size: 60%;
text-align: center;
border-top: 1px solid #ddd;
}
padding-top: 10px;
}
55 changes: 34 additions & 21 deletions templates/index.tpl
Original file line number Diff line number Diff line change
@@ -1,32 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='static.css') }}">
<meta http-equiv=”content-type” content=”text/html; charset=utf-8″>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='static.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='font-awesome.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='bootstrap.min.css') }}">
<title>
Twitter-RSS
</title>

<body>

<h1>RSS generator for Twitter</h1>

<form action="/user" method="POST">
<input type="text" id="username" name="user_data" size="40" placeholder="Enter an username">
<input type="submit" id="userIt" value="RSS it!">
</form>

<form action="/htag" method="POST">
<input type="text" id="hashtag" name="user_data" size="40" placeholder="Enter a hashtag">
<input type="submit" id="htagIt" value="RSS it!">
</form>

{% if err %} <p class=error><strong>Error:</strong> </p> <p>{{ err }}</p> {% endif %}

<div id="title">
<h1>RSS generator for Twitter</i></h1>
<h2> <i class="icon-twitter" style="color: #00ACED;"></i>&nbsp;&nbsp;&nbsp;<i class="icon-caret-right"></i><i class="icon-caret-right"></i><i class="icon-caret-right"></i>&nbsp;&nbsp;<i class="icon-rss" style="color: #EC6522"></i>
</div>
<div class="thumbnail" style="width: 800px;margin: auto;"><br>
{% if err %} <div class="alert alert-error"><strong>Error:</strong> {{ err }} </div>{% endif %}
<form action="/user" method="POST">
<div class="control-group">
<div class="controls">
<div class="input-prepend input-append">
<span class="add-on"><i class="icon-user"></i></span>
<input type="text" class="span3" id="username" name="user_data" placeholder="Enter an username">
<button type="submit" class="btn btn-primary" id="userIt" value="RSS it!"><i class="icon-rss"></i> RSS it !</button>
</div>
</div>
</div>
</form> - or -<br><br>
<form action="/htag" method="POST">
<div class="control-group">
<div class="controls">
<div class="input-prepend input-append">
<span class="add-on">#</i></span>
<input type="text" class="span3" id="hashtag" name="user_data" placeholder="Enter a hashtag">
<button type="submit" class="btn btn-primary" id="htagIt" value="RSS it!"><i class="icon-rss"></i> RSS it !</button>
</div>
</div>
</div>
</form>
</div><!--/Thumbnail-->
</body>

<footer>
<p><a href="https://github.com/Astalaseven/twitter-rss">Source code on GitHub</a></p>
<p><a href="https://github.com/Astalaseven/twitter-rss">Source code on GitHub <i class="icon-github-sign"></i></a></p>
</footer>

</html>

0 comments on commit 9835654

Please sign in to comment.