Skip to content

Commit a58eb23

Browse files
committed
Small cosmetic changes to support demo
1 parent 1e7bf62 commit a58eb23

File tree

7 files changed

+50
-37
lines changed

7 files changed

+50
-37
lines changed

server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _jinja2_filter_datetime(date, fmt=None):
156156
connect_to_db(app)
157157

158158
# Use the DebugToolbar
159-
DebugToolbarExtension(app)
159+
# DebugToolbarExtension(app)
160160

161161
app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False
162162
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

static/css/styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ body {
22
margin:0;
33
padding:0;
44
background-color: #FFF;
5-
font-family:Verdana, Geneva, sans-serif;
5+
font-family:'Nobile', Verdana, Geneva, sans-serif;
66
}
77

88
.content {

templates/base.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<link href="/static/css/sb-admin.css" rel="stylesheet">
1919

2020
<!-- Custom Fonts -->
21+
<link href="https://fonts.googleapis.com/css?family=Nobile" rel="stylesheet">
2122
<link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
2223

2324
<link rel="stylesheet" href="/static/css/styles.css" type="text/css">
@@ -38,7 +39,7 @@
3839
</div>
3940
<div class="navbar-collapse collapse">
4041
<ul class="nav navbar-nav">
41-
<li class="active"><a href="/">Home</a>
42+
<li><a href="/">Home</a>
4243
</li>
4344
<li><a href="/bubble">Overall</a>
4445
</li>

templates/bubble.html

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ <h1>App Ecosystem</h1>
1515
<p>Ecommerce API applications plotted by conversion, retention, life-time value and type.</p>
1616
<div class="row">
1717
<!-- /.col-lg-8 -->
18-
<div class="col-lg-8">
19-
<canvas id="myChart" width="800" height="600"></canvas>
18+
<div class="col-lg-10">
19+
<canvas id="myChart" width="900" height="600"></canvas>
2020
<script>
2121
// Chart.defaults.global.layout.padding = 3;
2222
var ctx = document.getElementById("myChart");
@@ -134,7 +134,7 @@ <h1>App Ecosystem</h1>
134134
},
135135
{% endfor %}
136136
],
137-
backgroundColor:"#e8c70d",
137+
backgroundColor:"#ffd000",
138138
hoverBackgroundColor: "#ffdd21",
139139
},
140140

@@ -143,11 +143,17 @@ <h1>App Ecosystem</h1>
143143
]
144144
},
145145
options: {
146+
title:{
147+
display:false,
148+
text:'Application Ecosystem'
149+
},
146150
scales: {
147151
yAxes: [{
148152
ticks: {
149-
beginAtZero:false
153+
callback: function(value, index, values) {
154+
return value;
150155
}
156+
}
151157
}]
152158
}
153159
}

templates/env.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ <h1>API Performance</h1>
1919
<p>Volume of different API calls over different environments.</p>
2020
<h2>Call Volume (production)</h2>
2121
<div class="row">
22-
<!-- /.col-lg-6 -->
23-
<div class="col-lg-6">
22+
<!-- /.col-lg-4 -->
23+
<div class="col-lg-4">
2424
<div class="panel panel-default">
2525
<div class="panel-heading">
2626
Ecommerce API
@@ -55,8 +55,8 @@ <h2>Call Volume (production)</h2>
5555
</div>
5656
<h2>Call Volume (staging)</h2>
5757
<div class="row">
58-
<!-- /.col-lg-6 -->
59-
<div class="col-lg-6">
58+
<!-- /.col-lg-4 -->
59+
<div class="col-lg-4">
6060
<div class="panel panel-default">
6161
<div class="panel-heading">
6262
Ecommerce API
@@ -92,8 +92,8 @@ <h2>Call Volume (staging)</h2>
9292

9393
<h2>Call Volume (internal)</h2>
9494
<div class="row">
95-
<!-- /.col-lg-6 -->
96-
<div class="col-lg-6">
95+
<!-- /.col-lg-4 -->
96+
<div class="col-lg-4">
9797
<div class="panel panel-default">
9898
<div class="panel-heading">
9999
Ecommerce API

templates/map.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
color: '#cccccc',
1919
hoverOpacity: 0.7,
2020
selectedColor: '#666666',
21-
enableZoom: true,
21+
enableZoom: false,
2222
showTooltip: true,
2323
scaleColors: ['#afd69a', '#478227'],
2424
values: dev_density,
@@ -29,8 +29,8 @@
2929

3030
<h1>Developer Locations</h1>
3131

32-
33-
<div id="vmap" style="width: 600px; height: 400px;"></div>
32+
<p>Areas worldwide with the greatest density of Ecommerce API developers.</p>
33+
<div id="vmap" style="width: 800px; height: 600px;"></div>
3434

3535

3636
{% endblock %}

templates/social.html

+27-21
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,49 @@ <h1>Outreach</h1>
1212
<p>Social reach determined by Klout score.</p>
1313
<h2>Klout</h2>
1414

15-
<div class="row">
16-
<!-- /.col-lg-4 -->
17-
<div class="col-lg-4">
18-
<div class="panel panel-default">
19-
<div class="panel-heading">
20-
Klout Score
21-
</div>
22-
<!-- /.panel-heading -->
23-
<div class="panel-body">
24-
<p>
25-
{{ '%0.1f' % klout_score |float }}
26-
</p>
27-
<!-- /.panel-body -->
28-
</div>
29-
<!-- /.panel -->
30-
</div>
15+
<div class="row">
16+
<div class="col-lg-3 col-md-6">
17+
<div class="panel panel-yellow">
18+
<div class="panel-heading">
19+
<div class="row">
20+
<div class="col-xs-3">
21+
<!-- Status icon -->
22+
<i class="fa fa-exclamation-circle fa-5x"></i>
23+
</div>
24+
<div class="col-xs-9 text-right">
25+
<div class="huge">{{ '%0.0f' % klout_score |float }}/100</div>
26+
<div>Klout Score</div>
27+
</div>
28+
</div>
29+
</div>
30+
<!-- <a href="/social">
31+
<div class="panel-footer">
32+
<span class="pull-left">View Details</span>
33+
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
34+
<div class="clearfix"></div>
35+
</div>
36+
</a> -->
37+
</div>
3138
</div>
32-
</div>
39+
</div>
3340

3441

3542
<h2>Tweets</h2>
36-
<p>Recent Developer Program tweets.</p>
43+
<p>Recent <a href="https://www.twitter.com/geekshe">@geekshe</a> tweets.</p>
3744
{% for tweet in my_tweets %}
3845
<div class="row">
3946
<!-- /.col-lg-4 -->
4047
<div class="col-lg-4">
4148
<div class="panel panel-default">
4249
<div class="panel-heading">
43-
Tweet ID: {% if tweet is defined %}{{tweet.id}}{% endif %}
50+
{% if tweet is defined %}<a href="https://www.twitter.com/{{tweet.user.screen_name}}/status/{{tweet.id}}">{{tweet.id}}</a>{% endif %}
4451
</div>
4552
<!-- /.panel-heading -->
4653
<div class="panel-body">
4754
<p>
4855
{{ tweet.text }}
4956
<br>
50-
<strong>@{{ tweet.user.screen_name }}</strong>
51-
| <a href="https://www.twitter.com/{{tweet.user.screen_name}}/status/{{tweet.id}}">link</a>
57+
<strong><a href="https://www.twitter.com/{{tweet.user.screen_name}}">@{{ tweet.user.screen_name }}</a></strong>
5258
<br>
5359
{{tweet.created_at|strftime}}
5460
</p>

0 commit comments

Comments
 (0)