Skip to content

Commit 8a079ba

Browse files
committed
Add original readhacker.news page
1 parent 2442bbd commit 8a079ba

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

main.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
app = Flask(__name__)
1313

1414

15-
@app.route('/')
16-
def hello():
17-
"""Return a friendly HTTP greeting."""
18-
return "Hello!"
19-
2015
@app.route('/s/<short_id>')
2116
def story_redirect(short_id):
2217
"""Redirect to story url"""

sample_app.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ libraries:
77
version: latest
88

99
handlers:
10+
- url: /
11+
static_files: static/index.html
12+
upload: static/index.html
13+
- url: /favicon.ico
14+
static_files: static/favicon.ico
15+
upload: static/favicon.ico
16+
- url: /robots.txt
17+
static_files: static/robots.txt
18+
upload: static/robots.txt
19+
- url: /cron
20+
script: main.app
21+
login: admin
1022
- url: .*
1123
script: main.app
1224

static/favicon.ico

14.7 KB
Binary file not shown.

static/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!DOCTYPE html><html><meta name="viewport" content="width=device-width, initial-scale=1"><head><meta http-equiv="Content-type" content="text/html; charset=utf-8"><title>Read Hacker News</title><style>.message{max-width:400px;margin:0 auto;padding:16px 24px}.logo{width:150px;height:150px;border:10px solid #f07530;box-sizing:border-box;margin:40px auto;display:block;-webkit-transition:border-radius .4s ease-in-out;transition:border-radius .4s ease-in-out}.logo:hover{border-radius:75px}.link{display:inline-block;padding:4px 1px;text-decoration:none;color:#f07530;border-bottom:2px solid #f07530;font-size:16px;box-sizing:border-box}.columns{-webkit-column-count:4;-moz-column-count:4;column-count:4;-webkit-column-gap:0;-moz-column-gap:0;column-gap:0}.columns-panel{-webkit-column-break-inside:avoid;page-break-inside:avoid;break-inside:avoid;padding:5px}.columns-panel-content{padding:10px;background-color:#f9f9f9}@media (max-width:1500px){.columns{-webkit-column-count:3;-moz-column-count:3;column-count:3}}@media (max-width:1023px){.columns{-webkit-column-count:2;-moz-column-count:2;column-count:2}}@media (max-width:500px){.columns{-webkit-column-count:1;-moz-column-count:1;column-count:1}}.icon{width:18px;height:18px;-webkit-transform:translateY(6px);transform:translateY(6px)}.icon-link{text-align:center;text-decoration:none;display:inline-block;width:28px;height:28px}body{font-family:Helvetica,Arial,Roboto,sans-serif;background:#fff;color:#000;color:rgba(0,0,0,.87)}h1{font-size:22px;text-align:center}h1,h2{font-weight:500;margin:0 0 16px}h2{font-size:20px}p{font-weight:300;line-height:150%;text-align:center}ul{list-style:none;margin:16px 0 0;padding:0}ul li{margin:8px 0 0}footer{margin:50px auto;text-align:center}</style></head><body><svg class="logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 2 64 83"><path fill="#F07530" d="M21.17 68.69L21.17 45.86L10.30 45.86L10.30 68.69L4.54 68.69L4.54 18.29L10.30 18.29L10.30 41.26L21.17 41.26L21.17 18.29L26.86 18.29L26.86 68.69L21.17 68.69ZM41.54 68.69L35.93 68.69L35.93 18.29L41.90 18.29L53.64 55.15L53.64 18.29L59.26 18.29L59.26 68.69L53.28 68.69L41.54 31.90L41.54 68.69Z"/></svg>
2+
<header class="message"><h1>Read Hacker News</h1><p>There are many ways to read hacker news</p></header><div class="columns"><div class="columns-panel"><div class="columns-panel-content"><h2>Web</h2><ul><li><a class="link" target="_blank" href="https://news.ycombinator.com">Official Website</a></li><li><a class="link" target="_blank" href="http://hack.ernews.info">hack.ernews.info</a> by <a class="link" target="_blank" href="https://github.com/AntouanK">Antonis Karamitros</a></li><li><a class="link" target="_blank" href="http://hckrnews.com">hckrnews.com</a> by <a class="link" target="_blank" href="https://github.com/wvl">Wayne Larsen</a></li><li><a class="link" target="_blank" href="http://hackerbra.in">hackerbra.in</a> by Adrian Wajsbrem</li><li><a class="link" target="_blank" href="http://www.daemonology.net/hn-daily">Hacker News Daily</a> by Colin Percival</li><li><a class="link" target="_blank" href="http://hnrankings.info/">Hacker News Rankings</a> by <a class="link" target="_blank" href="https://github.com/marcneuwirth">Marc Neuwirth</a></li><li><a class="link" target="_blank" href="http://hn.elijames.org/">Hacker News Confidence</a> by <a class="link" target="_blank" href="https://github.com/ejamesc">Eli James</a></li><li><a class="link" target="_blank" href="http://hnhiring.com/">hnhiring.com</a> by <a class="link" target="_blank" href="https://github.com/jordinl">Jordi Noguera</a></li><li><a class="link" target="_blank" href="http://hnhiring.me/">hnhiring.me</a> by <a class="link" target="_blank" href="https://github.com/mwylde">Micah Wylde</a></li><li><a class="link" target="_blank" href="http://www.fullhn.com/">Full Hacker News</a> by <a class="link" target="_blank" href="https://github.com/mauricesvay">Maurice Svay</a></li><li><a class="link" target="_blank" href="https://www.hnwatcher.com/">HNWatcher</a></li><li><a class="link" target="_blank" href="http://hn-filter.appspot.com/">HN Filter</a></li><li><a class="link" target="_blank" href="http://gaganpreet.github.io/hn-hiring-mapped/src/web/">HN Hiring Mapped</a> by <a class="link" target="_blank" href="https://github.com/gaganpreet">Gaganpreet</a></li><li><a class="link" target="_blank" href="http://www.tiledhn.com/">TiledHN</a> by <a class="link" target="_blank" href="https://github.com/pbjr23">Prakhar Bhandari</a></li><li><a class="link" target="_blank" href="http://insin.github.io/react-hn/">React HN</a> by <a class="link" target="_blank" href="https://github.com/insin">Jonny Buchanan</a></li><li><a class="link" target="_blank" href="http://hnpaper.forge.partlab.io/">HN Paper</a> by <a class="link" target="_blank" href="https://github.com/rgaidot">Régis Gaidot</a></li><li><a class="link" target="_blank" href="http://chancancode.github.io/hn-reader">hn-reader</a> by <a class="link" target="_blank" href="https://github.com/chancancode">Godfrey Chan</a></li><li><a class="link" target="_blank" href="http://www.serializer.io">serializer.io</a> by <a class="link" target="_blank" href="https://github.com/charlieegan3">Charlie Egan</a></li><li><a class="link" target="_blank" href="http://www.waybackhn.com/">Wayback HN</a> by <a class="link" target="_blank" href="https://github.com/jondubin">Jonathan Dubin</a></li><li><a class="link" target="_blank" href="http://bemmu.github.io/hncakeday/">How Hacker News looked when you joined</a> by <a class="link" target="_blank" href="https://github.com/bemmu">Bemmu Sepponen</a></li></ul></div></div><div class="columns-panel"><div class="columns-panel-content"><h2>Mobile Web</h2><ul><li><a class="link" target="_blank" href="http://ihackernews.com/">ihackernews.com</a> by Ronnie Roller</li><li><a class="link" target="_blank" href="http://hn.premii.com/">hn.premii.com</a> by <a class="link" target="_blank" href="https://github.com/premii">Dharmesh Patel</a></li><li><a class="link" target="_blank" href="http://hackerwebapp.com/">HackerWeb</a> by <a class="link" target="_blank" href="https://github.com/cheeaun">Lim Chee Aun</a></li><li><a class="link" target="_blank" href="http://www.hackernews.im/">hackernews.im</a><a class="icon-link" target="_blank" href="https://github.com/polyrabbit/hacker-news-digest"><svg class="icon" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1664 896q0 251-146.5 451.5t-378.5 277.5q-27 5-39.5-7t-12.5-30v-211q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-121-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-86-13.5q-44 113-7 204-79 85-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-40 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 .5 89t.5 54q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>
3+
</a> by <a class="link" target="_blank" href="https://github.com/polyrabbit/">Poly Miao</a></li><li><a class="link" target="_blank" href="http://ainomma.azurewebsites.net/">Ainomma</a> by <a class="link" target="_blank" href="https://github.com/adam7">Adam Cooper</a></li></ul></div></div><div class="columns-panel"><div class="columns-panel-content"><h2>Telegram</h2><ul><li><a class="link" target="_blank" href="https://telegram.me/hacker_news_feed">@hacker_news_feed</a> by <a class="link" target="_blank" href="https://github.com/phil-r">Phil Rukin</a></li></ul></div></div><div class="columns-panel"><div class="columns-panel-content"><h2>Twitter</h2><ul><li><a class="link" target="_blank" href="https://twitter.com/newsycombinator">@newsycombinator</a></li><li><a class="link" target="_blank" href="https://twitter.com/hackernewsbot">@hackernewsbot</a></li><li><a class="link" target="_blank" href="https://twitter.com/newsyc20">@newsyc20</a></li><li><a class="link" target="_blank" href="https://twitter.com/newsyc50">@newsyc50</a></li><li><a class="link" target="_blank" href="https://twitter.com/newsyc100">@newsyc100</a></li><li><a class="link" target="_blank" href="https://twitter.com/newsyc150">@newsyc150</a></li><li><a class="link" target="_blank" href="https://twitter.com/newsyc200">@newsyc200</a></li><li><a class="link" target="_blank" href="https://twitter.com/newsyc250">@newsyc250</a></li><li><a class="link" target="_blank" href="https://twitter.com/JustShowHN">@JustShowHN</a></li><li><a class="link" target="_blank" href="https://twitter.com/HackerNewsYCBot">@HackerNewsYCBot</a></li></ul></div></div><div class="columns-panel"><div class="columns-panel-content"><h2>RSS</h2><ul><li><a class="link" target="_blank" href="http://hnapp.com">hnapp.com</a> by <a class="link" target="_blank" href="https://github.com/raquo">Nikita Gazarov</a></li><li><a class="link" target="_blank" href="https://edavis.github.io/hnrss">hnrss</a> by <a class="link" target="_blank" href="https://github.com/edavis">Eric Davis</a></li></ul></div></div><div class="columns-panel"><div class="columns-panel-content"><h2>Email</h2><ul><li><a class="link" target="_blank" href="http://www.hackernewsletter.com">hackernewsletter.com</a> by <a class="link" target="_blank" href="https://github.com/kale">Kale Davis</a></li><li><a class="link" target="_blank" href="http://hnnotify.com">hnnotify.com</a> by The Buzz Media</li><li><a class="link" target="_blank" href="http://hndigest.wordpress.com">hndigest</a> by Julian Corlet</li><li><a class="link" target="_blank" href="http://www.hndigest.com">hndigest.com</a></li><li><a class="link" target="_blank" href="http://www.hackersdaily.com">hackersdaily.com</a> by Mike Singer</li><li><a class="link" target="_blank" href="http://www.hnreplies.com">HN Replies</a> by <a class="link" target="_blank" href="https://github.com/dangrossman">Dan Grossman</a></li></ul></div></div><div class="columns-panel"><div class="columns-panel-content"><h2>Desktop</h2><ul><li><a class="link" target="_blank" href="https://florian.github.io/HNClient">HNClient</a> by <a class="link" target="_blank" href="https://github.com/florian">Florian Hartmann</a></li></ul></div></div><div class="columns-panel"><div class="columns-panel-content"><h2>Command Line</h2><ul><li><a class="link" target="_blank" href="https://github.com/donnemartin/haxor-news">haxor-news</a> by <a class="link" target="_blank" href="https://github.com/donnemartin">Donne Martin</a></li><li><a class="link" target="_blank" href="https://github.com/toxinu/pyhn">pyhn</a> by <a class="link" target="_blank" href="https://github.com/toxinu">Geoffrey Lehée</a></li><li><a class="link" target="_blank" href="https://gitlab.com/shank/go-hn">go-hn</a> by <a class="link" target="_blank" href="https://gitlab.com/u/shank">Shashank Sharma</a></li></ul></div></div></div><footer>Created by <a class="link" target="_blank" href="https://github.com/phil-r">Phil Rukin</a> <br>
4+
Contribute to the list <a class="link" target="_blank" href="https://github.com/phil-r/awesome-hacker-news">here</a></footer></body></html>

static/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow: /cron

0 commit comments

Comments
 (0)