the current state of affairs
commit
3754cd4468
|
@ -0,0 +1,18 @@
|
|||
runtime: python27
|
||||
api_version: 1
|
||||
threadsafe: true
|
||||
|
||||
handlers:
|
||||
- url: /i
|
||||
static_dir: i
|
||||
secure: always
|
||||
|
||||
- url: /.*
|
||||
script: main.app
|
||||
secure: always
|
||||
|
||||
libraries:
|
||||
- name: webapp2
|
||||
version: latest
|
||||
- name: jinja2
|
||||
version: latest
|
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
|
@ -0,0 +1,87 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>bgp.wtf</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 80px auto;
|
||||
line-height: 1.6;
|
||||
font-size: 18px;
|
||||
max-width: 650px;
|
||||
color: #444;
|
||||
background-color: #eee;
|
||||
padding: 0 10px;
|
||||
font-family: helvetica, arial, sans-serif;
|
||||
}
|
||||
a {
|
||||
color: #444;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
span.snippet {
|
||||
font-family: system, courier new, serif;
|
||||
}
|
||||
div.container {
|
||||
background-color: #f8f8f8;
|
||||
padding: 10px 20px 10px 20px;
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
div.container h1, h2, h3 {
|
||||
margin: 0;
|
||||
}
|
||||
div.logos {
|
||||
text-align: center;
|
||||
}
|
||||
div.logos img {
|
||||
height: 100px;
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
div.pepper {
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
background-image: url('i/pepper.png');
|
||||
position: absolute;
|
||||
bottom: 100px;
|
||||
right: 100px;
|
||||
opacity: 0.05;
|
||||
}
|
||||
div.pepper:hover {
|
||||
opacity: 1.0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>bgp.wtf</h1>
|
||||
<p>
|
||||
The “ISP” arm of the <a href="https://hackerspace.pl/">Warsaw Hackerspace</a>.
|
||||
</p>
|
||||
<p>
|
||||
<span class="snippet">$ whois AS204880</span>
|
||||
</p>
|
||||
<p>
|
||||
<span class="snippet"> >>> 'abp@unpxrefcnpr.cy'.decode('rot13')</span>
|
||||
</p>
|
||||
<p>
|
||||
<span class="snippet">#bgpwtf on freenode</span>
|
||||
</p>
|
||||
<p>
|
||||
We peer. Meet us at EPIX-WAR or near Wolność 2A in Warsaw.
|
||||
</p>
|
||||
</div>
|
||||
<div class="container">
|
||||
<h3>sponsors & partners</h3>
|
||||
<div class="logos">
|
||||
<a href="http://www.nitronet.pl"><img src="i/nitronet.png" alt="Nitronet logo" title="Nitronet"></a>
|
||||
<a href="https://www.epix.net.pl"><img src="i/epix.png" alt="EPIX logo" title="EPIX"></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pepper"> </div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
import jinja2
|
||||
import webapp2
|
||||
import os
|
||||
|
||||
JINJA_ENVIRONMENT = jinja2.Environment(
|
||||
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
|
||||
extensions=['jinja2.ext.autoescape'],
|
||||
autoescape=True)
|
||||
|
||||
class LandingPage(webapp2.RequestHandler):
|
||||
def get(self):
|
||||
template_values = {}
|
||||
template = JINJA_ENVIRONMENT.get_template('index.html')
|
||||
self.response.write(template.render(template_values))
|
||||
|
||||
app = webapp2.WSGIApplication([
|
||||
('/', LandingPage),
|
||||
], debug=False)
|
Loading…
Reference in New Issue