changeset 7:64272fc2350c

Begin importing the website. Add the files from the website's top-level directory. Note that recent.cgi still uses the old rlgall module.
author John "Elwin" Edwards <elwin@sdf.org>
date Sun, 19 Aug 2012 21:29:06 -0700
parents 4778ab7de7aa
children 7371f972393b
files web/404.html web/index.html web/main.css web/recent.cgi
diffstat 4 files changed, 117 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/404.html	Sun Aug 19 21:29:06 2012 -0700
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>File Not Found</title>
+<link rel="stylesheet" type="text/css" href="/main.css">
+</head>
+<body>
+<h1>File Not Found</h1>
+<div class="content">
+<p>The page or file you're looking for doesn't exist.</p>
+<p>Maybe it was devoured by a dragon that got loose on the hard disk. If that happened, the problem should get fixed quickly.</p>
+<p>Or maybe you have been fighting umber hulks, and mistyped the name. Quaff a potion of healing and try again.</p>
+</div>
+</body>
+</html> 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/index.html	Sun Aug 19 21:29:06 2012 -0700
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<title>Roguelike Gallery</title>
+<link rel="stylesheet" type="text/css" href="/main.css">
+</head>
+<body>
+<h1>Roguelike Gallery</h1>
+<div class="content">
+<p>The Roguelike Gallery is a living museum of <a href="http://en.wikipedia.org/wiki/Roguelike">roguelike</a> games. A collection 
+of historical roguelikes is being restored and made available for play on this server.</p>
+<p>Try the new <a href="http://rlgallery.org:8080/">Web player</a>!</p>
+<p>You can also play by ssh to rlgallery.org.  The username is "rodney", and "yendor" is the password.</p>
+<h2>Available Games</h2>
+<ul>
+<li><a href="/about/rogue3.html">Rogue V3</a></li>
+<li><a href="/about/rogue4.html">Rogue V4</a></li>
+<li><a href="/about/rogue5.html">Rogue V5</a></li>
+<li><a href="/about/srogue.html">Super-Rogue</a></li>
+</ul>
+<h2>Scoring</h2>
+<ul>
+<li><a href="/scoring/">Scores</a></li>
+<li><a href="/recent.cgi">Recent games</a></li>
+<li><a href="/archive.cgi">ttyrec files</a></li>
+</ul>
+<h2>News</h2>
+<p><strong>Aug. 19, 2012</strong>: The upgrade is complete, games are back online. Watch for more changes.</p>
+<p><strong>Jul. 27, 2012</strong>: The latency problems with the Web player should be resolved now.</p>
+<p><strong>Jun. 30, 2012</strong>: I've fixed a bug that prevented new accounts from being created.</p>
+<p><strong>Jun. 27, 2012</strong>: A <a href="tourn32.html">tournament</a> is being planned!</p>
+<p><strong>Jun. 24, 2012</strong>: It is now possible to <a href="http://rlgallery.org:8080/">play in your browser</a>, without needing any other software.</p>
+<p><strong>Feb. 2, 2012</strong>: Everything should be recovered from the failed upgrade. Please report any problems.</p>
+<p><strong>Feb. 4, 2011</strong>: Some updates to the website. The <a href="/archive.cgi">ttyrec finder</a> is now usable.</p>
+</div>
+</body>
+</html> 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/main.css	Sun Aug 19 21:29:06 2012 -0700
@@ -0,0 +1,45 @@
+@import url("http://fonts.googleapis.com/css?family=Inconsolata");
+
+html {
+	background-color: #C0FFC0;
+	color: #101040;
+	font-family: sans-serif;
+}
+
+h1 {
+	text-align: center;
+}
+
+h1, h2, h3 {
+	font-family: Inconsolata, monospace;
+}
+
+div.content {
+	margin: 0 auto;
+	width: 75%;
+}
+
+div.nav {
+	font-size: 0.8em;
+	background-color: #E0FFE0;
+	padding: 0.3em;
+}
+
+ul {
+	list-style-type: none;
+}
+
+form {
+	width: 90%;
+	margin: 1.5em auto;
+	border-top: 1px solid #101040;
+	border-bottom: 1px solid #101040;
+}
+
+form div {
+	margin: 0.6em auto;
+}
+
+span.metavar {
+	font-style: italic;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/recent.cgi	Sun Aug 19 21:29:06 2012 -0700
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+# CGI script creating page of recent games
+
+import sys
+import time
+import rlgall
+
+# The required header
+sys.stdout.write("Content-type: text/html\r\n\r\n")
+# The top of the page
+sys.stdout.write(rlgall.phead.format("Recent Games"))
+sys.stdout.write(rlgall.ptop);
+sys.stdout.write(rlgall.navtop.format("Recent"));
+sys.stdout.write(rlgall.pti.format("Recent Expeditions"))
+
+for game in rlgall.gamelist:
+  game.tablerecent(sys.stdout)
+
+sys.stdout.write(rlgall.pend)
+exit()