-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit be0f064
Showing
13 changed files
with
466 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.py[cod] | ||
*.~ | ||
|
||
# PyCharm | ||
.idea | ||
|
||
# Temp files | ||
*.pid | ||
celerybeat-schedule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from flask import Flask | ||
from flask.ext.moment import Moment | ||
|
||
|
||
app = Flask(__name__, instance_relative_config=True) | ||
app.config.from_object('config') | ||
app.config.from_pyfile('envvar.py') | ||
|
||
|
||
# Extension initialization | ||
moment = Moment(app) | ||
|
||
|
||
# Import views at the end | ||
from app import views | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,238 @@ | ||
// Raw Colors | ||
@white: white; | ||
@black: black; | ||
@dark1: #A4A4A4; | ||
@dark2: #424242; | ||
@dark3: #2E2E2E; | ||
@dark4: #151515; | ||
@green1: #2ecc71; | ||
@green2: #27ae60; | ||
@yellow1: #f1c40f; | ||
@yellow2: #f39c12; | ||
@blue: #0091ff; | ||
@yellow: #FFF3A5; | ||
@grey1: #ecf0f1; | ||
@grey2: #bdc3c7; | ||
@grey3: #95a5a6; | ||
@grey4: #7f8c8d; | ||
@cream: #F3F1EB; | ||
@orange1: #e67e22; | ||
@orange2: #d35400; | ||
@purple1: #9b59b6; | ||
@purple2: #8e44ad; | ||
@navy1: #34495e; | ||
@navy2: #2c3e50; | ||
@teal1: #1abc9c; | ||
@teal2: #16a085; | ||
@teal3: #00876C; | ||
@red1: #e74c3c; | ||
@red2: #c0392b; | ||
@blue1: #3498db; | ||
@blue2: #2980b9; | ||
@emerald: #2EBD59; | ||
|
||
// Site Colors | ||
@footer-bg-color: @green2; | ||
@footer-font-color: @white; | ||
@footer-link-color: @white; | ||
@link-color: @green2; | ||
@link-hover-color: @green1; | ||
@article-title-color: @green2; | ||
@official-font-color: @blue; | ||
|
||
|
||
body { | ||
color: ghostwhite; | ||
font-family: 'Open Sans', sans-serif; | ||
background-color: #16a085; | ||
// min-width: 460px; /* suppose you want minimum width of 1000px */ | ||
// width: auto !important; /* Firefox will set width as auto */ | ||
// width: 460px; | ||
} | ||
|
||
button { | ||
display: inline-block; | ||
margin: 0 10px 0 0; | ||
padding: 8px 40px; | ||
font-size: 20px; | ||
font-family: "Open Sans", sans-serif; | ||
line-height: 1.8; | ||
appearance: none; | ||
box-shadow: none; | ||
border-radius: 0; | ||
} | ||
button:focus { | ||
outline: none; | ||
} | ||
|
||
// Bootstrap hamburger menu color | ||
.navbar-default .navbar-toggle { | ||
border-color: white; | ||
background-color: @navy1; | ||
.icon-bar { | ||
background-color: white; | ||
} | ||
} | ||
.navbar-default .navbar-toggle:hover { | ||
border-color: @navy1; | ||
background-color: white; | ||
.icon-bar { | ||
background-color: @navy1; | ||
} | ||
} | ||
.navbar-default .navbar-toggle:active { | ||
border-color: white; | ||
background-color: @navy1; | ||
.icon-bar { | ||
background-color: white; | ||
} | ||
} | ||
.navbar-default .navbar-toggle:focus { | ||
border-color: white; | ||
background-color: @navy1; | ||
.icon-bar { | ||
background-color: white; | ||
} | ||
} | ||
|
||
.border-button { | ||
color: @emerald; | ||
background-color: white; | ||
border: solid 3px @emerald; | ||
padding: 7px 30px; | ||
display: inline-block; | ||
margin: 0 10px 0 0; | ||
text-align: center; | ||
text-decoration: none; | ||
} | ||
.border-button:hover { | ||
text-decoration: none; | ||
color: @emerald; | ||
} | ||
|
||
.outline-button { | ||
color: @navy1; | ||
background-color: @teal1; | ||
border: solid 2px @navy1; | ||
padding: 10px 40px; | ||
display: inline-block; | ||
margin: 0 10px 0 0; | ||
text-align: center; | ||
text-decoration: none; | ||
font-size: 16px; | ||
} | ||
.outline-button:hover { | ||
text-decoration: none; | ||
color: @navy2; | ||
} | ||
|
||
.navbar { | ||
background: none; | ||
border: none; | ||
} | ||
.navbar-default .navbar-brand { | ||
color: white; | ||
} | ||
.navbar-default .navbar-brand:hover { | ||
color: white; | ||
} | ||
|
||
.navbar-default .navbar-nav { | ||
color: white; | ||
li a { | ||
color: white; | ||
} | ||
li a:hover { | ||
color: white; | ||
} | ||
} | ||
|
||
.top { | ||
.container { | ||
background: none; | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
} | ||
background: none; | ||
color: @white; | ||
font-family: 'Open Sans', sans-serif; | ||
font-weight: 300; | ||
font-size: 26px; | ||
a { | ||
color: @white; | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
.middle { | ||
.container { | ||
background: none; | ||
} | ||
background: none; | ||
padding-top: 30px; | ||
padding-bottom: 100px; | ||
} | ||
|
||
.bottom { | ||
.container { | ||
background-color: @navy2; | ||
} | ||
background-color: @navy2; | ||
padding-top: 40px; | ||
padding-bottom: 38px; | ||
.footer { | ||
a { | ||
color: ghostwhite; | ||
} | ||
} | ||
} | ||
|
||
.flash-messages { | ||
background-color: @yellow2; | ||
padding: 20px 20px 10px 20px; | ||
font-size: 20px; | ||
color: white; | ||
.container { | ||
background: none; | ||
} | ||
ul { | ||
list-style-type: none; | ||
} | ||
} | ||
|
||
.article-well { | ||
font-size: 18px; | ||
font-weight: 400; | ||
padding-top: 10px; | ||
padding-bottom: 50px; | ||
h2 { | ||
font-size: 32px; | ||
font-weight: 300; | ||
margin-top: 50px; | ||
} | ||
h3 { | ||
font-size: 28px; | ||
font-weight: 300; | ||
padding-top: 10px; | ||
} | ||
a { | ||
color: @yellow1; | ||
} | ||
} | ||
|
||
.home-box { | ||
background: none; | ||
margin-top: 100px; | ||
text-align: center; | ||
p { | ||
font-size: 30px; | ||
font-weight: 300; | ||
} | ||
} | ||
|
||
a.temp { | ||
color: white; | ||
font-size: 20px; | ||
text-decoration: none; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
|
||
<div class="container"> | ||
<div class="article-well"> | ||
<h2 class="article_title">Error 404. Page Not Found.</h2> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<title>{% block title %}{{ config.SITE_TITLE }}{% endblock %}</title> | ||
{% block meta %}{% endblock %} | ||
|
||
<link rel="shortcut icon" type="image/png" href="/static/img/favicon.png"/> | ||
<!-- Bootstrap --> | ||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap-theme.min.css"> | ||
|
||
<link href='//fonts.googleapis.com/css?family=Open+Sans:700,400,300' rel='stylesheet' type='text/css'> | ||
<link href="/static/css/rentmath.css" rel="stylesheet" type="text/css"> | ||
|
||
|
||
{% block extra_css %}{% endblock %} | ||
{% block extra_js %}{% endblock %} | ||
{% block extra_head %}{% endblock %} | ||
|
||
|
||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> | ||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> | ||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> | ||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
|
||
<nav class="navbar navbar-default"> | ||
<div class="container"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="/">RentMath</a> | ||
</div> | ||
|
||
<!-- Collect the nav links, forms, and other content for toggling --> | ||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | ||
<ul class="nav navbar-nav"> | ||
{# <li><a href="{{ url_for('pricing') }}">Pricing</a></li>#} | ||
{# <li><a href="#">About</a></li>#} | ||
</ul> | ||
<ul class="nav navbar-nav navbar-right"> | ||
{# <li><a href="{{ url_for('register') }}">Sign Up</a></li>#} | ||
{# <li><a href="{{ url_for('login') }}">Login</a></li>#} | ||
</ul> | ||
</div><!-- /.navbar-collapse --> | ||
</div><!-- /.container-fluid --> | ||
</nav> | ||
|
||
|
||
{% with messages = get_flashed_messages() %} | ||
{% if messages %} | ||
<div class="flash-messages"> | ||
<div class="container"> | ||
<ul class=flashes> | ||
{% for message in messages %} | ||
<li>{{ message }}</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% endwith %} | ||
|
||
|
||
{% block content %}{% endblock %} | ||
|
||
|
||
<div class="bottom"> | ||
<div class="container"> | ||
<div class="footer"> | ||
<p>{{ moment().format('ll') }} © <a href="{{ url_for('index') }}">RentMath.io</a> {{ moment().format('YYYY') }}.</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | ||
<!-- Include all compiled plugins (below), or include individual files as needed --> | ||
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script> | ||
{{ moment.include_moment() }} | ||
|
||
{# Google Analytics #} | ||
|
||
|
||
</body> | ||
</html> |
Oops, something went wrong.