tidy up index.php

This commit is contained in:
Ben Harris 2021-02-25 15:52:24 -05:00
parent c387702cf4
commit 7709e68d95
5 changed files with 67 additions and 32 deletions

View File

@ -1,3 +1,7 @@
<?php
$figfonts = array_map(function($f) { return basename($f, ".flf"); }, glob("api/fonts/*.flf"));
$taglines = file("taglines.txt");
?>
<!DOCTYPE html>
<html lang="en">
<head>
@ -29,7 +33,6 @@
<p><a href="https://tilde.team/">&lt;- back to tilde team</a></p>
</div>
<h1>~ben</h1>
<?php $taglines = file("taglines.txt"); ?>
<p><?=$taglines[array_rand($taglines)]?></p>
<hr>
</div>
@ -41,11 +44,9 @@
<p>the best place to find me is irc: i'm ben on <a href="https://tilde.chat">tilde.chat</a>
and benharri on <a href="https://freenode.net">freenode</a>.
<p>here are some other places to find me</p>
<?php include "links.php"; ?>
<p>here are some of my things</p>
<?php include "mypages.php"; ?>
<div>
@ -57,8 +58,7 @@
<div>
<label for="font">pick a font</label>
<select id="font">
<?php $figfonts = array_map(function($f) { return basename($f, ".flf"); }, glob("api/fonts/*.flf"));
foreach ($figfonts as $font): ?>
<?php foreach ($figfonts as $font): ?>
<option<?=$font == "slant" ? ' selected="selected"' : ""?> value="<?=$font?>"><?=$font?></option>
<?php endforeach; ?>
</select>

View File

@ -45,12 +45,8 @@ $links = [
"icon" => "pleroma",
],
];
?>
<?php foreach ($links as $name => $link): ?>
foreach ($links as $name => $link): ?>
~&gt; <a <?=$link["extra_attrs"] ?? ""?> href="<?=$link["href"]?>">
<i class="<?=faclass($link["icon"])?>"></i> <?=$name?>
</a>
<br>
<i class="<?=faclass($link["icon"])?>"></i> <?=$name?></a><br>
<?php endforeach; ?>

View File

@ -72,17 +72,17 @@ $links = [
"href" => "tilde.json/",
"icon" => "code"
],
"tracery grammars" => [
"href" => "tracery/",
"icon" => "quote-right"
],
"assorted images" => [
"href" => "img/",
"icon" => "file-image-o"
],
];
?>
<?php foreach ($links as $name => $link): ?>
foreach ($links as $name => $link): ?>
~&gt; <a <?=$link["extra_attrs"] ?? ""?> href="<?=$link["href"]?>">
<i class="<?=faclass($link["icon"])?>"></i> <?=$name?>
</a>
<br>
<i class="<?=faclass($link["icon"])?>"></i> <?=$name?></a><br>
<?php endforeach; ?>

38
tracery/index.php Normal file
View File

@ -0,0 +1,38 @@
<?php
foreach (glob("/home/*/.tracery/*") as $g) {
$db[basename($g, ".json")][] = $g;
}
ksort($db);
?>
<!DOCTYPE html>
<html>
<head>
<title>tracery</title>
<link rel="stylesheet" href="../gruvbox/gruvbox.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body id="top">
<main>
<h1>tracery</h1>
<p>tracery is a cool tool to generate text</p>
<p>you can use the <code>tracer</code> bot on irc and grammar files in your <code>~/.tracery</code> directory to generate messages</p>
<p>grammars are chosen randomly if more than one exists per name</p>
<h3>grammars available on tilde.team</h3>
<ul>
<?php foreach ($db as $name => $files) { ?>
<li>
<strong><?=$name?></strong>
<ul>
<?php foreach ($files as $f) { ?>
<li><?=$f?></li>
<?php } ?>
</ul>
</li>
<?php } ?>
</main>
</body>
</html>

31
vms.txt
View File

@ -1,24 +1,25 @@
# qemu VMs
ca1.hashbang.sh - shell-server host
naglfar - tiny test vm for naglfar
docker - drone.tildegit.org and gotify.tildeverse.org
tilde.pink - tiwesdaeg's tilde
tildebeast - small vm for tildebeast
mc.t.o - tildeverse minecraft server, administered by sose
algovpn - bastion wireguard host at home to access lan
bsd.tilde.team - tilde.team's alternate freebsd host
tilde.team - tilde.team proper - 24gb ram and 6 vCPUs allocated
ca1.hashbang.sh - shell-server host
docker - drone.tildegit.org and gotify.tildeverse.org
mail.bhh.sh - my personal mailserver
mc.t.o - tildeverse minecraft server, administered by sose
naglfar - tiny test vm for naglfar
ns1 - my primary nameserver
old.tilde.team - the old tilde.team VM - to be decommissioned soon
odin - my VPS - all personal sites and assorted services
tilde.team - tilde.team proper - 32gb ram and 6 vCPUs allocated
tildebeast - small vm for tildebeast
# lxc containers
archive.tilderadio.org - self explanatory
fr.tild3.org - french-language tilde
asylum - small vm for robdrake's asylum project
mc.bhh.sh - khuxkm's minecraft vm
experimundo - cmccabe's test vm for rawtext.club
mastodon.tilde.zone - tilde.zone
pleroma.tilde.zone - pleroma
wordpress - 2 small wordpress sites
jitsi.tildeverse.org - self explanatory
factorio.tildeverse.org - self explanatory
fr.tild3.org - french-language tilde
gtlug.bhh.sh - shell host for local lug
jitsi.tildeverse.org - self explanatory
mastodon.tilde.zone - tilde.zone
mc.bhh.sh - khuxkm's minecraft vm
pleroma.tilde.zone - pleroma
webchat - kiwi.tilde.chat