Begin importing the website.
Add the files from the website's top-level directory. Note that recent.cgi still uses the old rlgall module.
This commit is contained in:
parent
44aa9d52d1
commit
ba999f774b
4 changed files with 117 additions and 0 deletions
15
web/404.html
Normal file
15
web/404.html
Normal file
|
|
@ -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>
|
||||
37
web/index.html
Normal file
37
web/index.html
Normal file
|
|
@ -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>
|
||||
45
web/main.css
Normal file
45
web/main.css
Normal file
|
|
@ -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;
|
||||
}
|
||||
20
web/recent.cgi
Executable file
20
web/recent.cgi
Executable file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue