Add digital ocean sponsorship stuff (#239)

This commit is contained in:
Paul Hallett 2016-07-21 12:13:09 +02:00 committed by GitHub
parent eb10bbe232
commit 7e78458e37
5 changed files with 46 additions and 35 deletions

BIN
assets/do-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View file

@ -10,7 +10,7 @@
html { padding-top: 50px; }
body, h1, h2, h3, h4, h5, h6, p {
body, h1, h2, h3, h4, h5, h6, p {
font-family: 'Lato', sans-serif;
color: #263238;
@ -22,7 +22,7 @@ h1, h2, h3, h4, h5, h6 {
h1, h2 { font-weight: 900; }
h2 { margin-bottom: 10px; }
h2 { margin-bottom: 10px; }
a { color: #1b95e0; }
@ -36,7 +36,7 @@ pre {
position: relative;
}
hr {
hr {
border-width: 1px;
border-color: #CCC;
margin: 3px 0;
@ -56,11 +56,11 @@ hr {
}
.header h1,
.header h2,
.header h3,
.header h2,
.header h3,
.header h4,
.header h5 {
color: #FFF;
text-align: center;
margin: 0 10%;
@ -82,11 +82,11 @@ hr {
}
.navbar-inverse .navbar-nav li a {
color: #FFF;
}
.navbar-inverse .navbar-nav .active a,
.navbar-inverse .navbar-nav .active a,
.navbar-inverse .navbar-nav .active a:hover,
.navbar-inverse .navbar-nav .active a:focus {
background-color: #C62828!important;
@ -121,6 +121,14 @@ pre {
padding-top: 15px;
}
.pad_bot {
padding-bottom: 15px;
}
.do_image {
width: 300px;
}
.twitter-tweet {
margin: 0 auto !important;
padding-top: 12px !important;
@ -224,7 +232,7 @@ pre {
}
@media (min-width: 628px) {
#about .header {
padding-top: 80px;
@ -247,7 +255,7 @@ pre {
}
@media (min-width: 516px) {
#docs .header {
padding-top: 80px;
@ -255,7 +263,7 @@ pre {
}
#docs h1#pokeapi-v2-api-reference {
display: none;
}
@ -266,13 +274,13 @@ pre {
#docs table th:first-child,
#docs table tr:first-child {
width: 140px;
}
#docs table th:last-child,
#docs table tr:last-child {
width: 180px;
}
@ -300,24 +308,24 @@ pre {
}
#docs h6 {
display: none;
}
#docs .side-nav ul {
list-style: none;
margin: 0;
padding: 0;
}
#docs .side-nav ul li ul {
margin-left: 10px;
}
#docs .side-nav .doc-select li a {
padding-left: 10px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@ -325,56 +333,56 @@ pre {
}
#docs .side-nav .doc-select li.active > a {
border-left: 2px solid #1b95e0;
padding-left: 8px;
}
#docs .side-nav .doc-select li ul {
display: none;
}
#docs .side-nav .doc-select li.active ul {
display: block;
}
#docs .side-nav hr {
width: 50%;
}
#docs .nav-group {
#docs .nav-group {
position: relative;
position: relative;
z-index: 20;
}
#docs .nav-group.stick {
position: fixed;
z-index: 20;
top: 65px;
}
#docs .side-nav .version-select li {
width: 50%;
display: inline-block;
float: left;
background-color: #EF5350;
text-align: center;
margin-bottom: 15px;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2),
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2),
0px -15px 0 0 #FFF;
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2),
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2),
0px -15px 0 0 #FFF;
}
#docs .version-select li a {
display: inline-block;
text-decoration: none;
padding: 13px;
@ -383,7 +391,7 @@ pre {
}
#docs .version-select li.active {
background-color: #C62828;
}
@ -404,4 +412,4 @@ pre {
position: absolute;
top: 5px;
right: 10px;
}
}

View file

@ -11,7 +11,7 @@ django-redis==4.4.0
django-cachalot==1.2.1
django-tastypie==0.12.1
django-markdown-deux==1.0.5
djangorestframework>=3.1.0
djangorestframework==3.1.0
drf-ujson==1.2.0
gunicorn==19.4.5
markdown2==2.3.0

View file

@ -131,9 +131,7 @@
With direction from Paul, Zane created the V2 api using an exact mirror of <a href="http://github.com/eevee">Veekun's</a> data related to the main series of games.
</p>
<p>
This is not to say there hasn't been any help from others. Don't shy away from jumping in and helping the project in any way you can. We're sure there are plenty of ways we can improve the api that haven't been thought of yet!
<br><br>
Contributors:
We have a <a href="https://github.com/pokeapi">GitHub Organisation</a> of contributors. You're welcome to join!
</p>
</div>
<p class="lead">
@ -163,7 +161,7 @@
a super awesome framework built around <a hre="http://python.org" target="none">Python</a>.<br />
We use a <a href="http://www.postgresql.org" target="none">Postgres</a> database to store all our data.<br />
We use <a href="http://www.django-rest-framework.org/" target="none">Django REST Framework</a> to expose our data through a RESTful API.<br />
We're hosted on <a href="https://www.digitalocean.com/?refcode=eab2fea41bc6" target="none">DigitalOcean</a> servers, click the link to help keep the site running!.
We're hosted on <a href="https://www.digitalocean.com/?refcode=eab2fea41bc6" target="none">DigitalOcean</a> servers, who cover the cost of the servers, for free! We <3 them.
</p>
</div>
</div>

View file

@ -183,6 +183,11 @@
</div><!--interactive row-->
<div class="row">
<div class="col-md-10 center-block center pad_top pad_bot">
<a href="https://www.digitalocean.com/?refcode=eab2fea41bc6" target="none"><img class="do_image" src="/static/do-logo.png"></a>
</div>
<div class="row">