2 new files, chanage txt in index.php

Looks like ben added a couple files, and I updated some text in
index.php
This commit is contained in:
Russell R. 2021-06-29 08:04:21 -04:00
parent b7928c2400
commit 4fad5b7c9c
3 changed files with 203 additions and 6 deletions

127
ben-index.php Normal file
View File

@ -0,0 +1,127 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="ben @ tilde.team unix group">
<meta name="author" content="Ben Harris">
<meta property="og:title" content="ben@tilde.team">
<meta property="og:site_name" content="ben at tilde dot team">
<meta property="og:url" content="https://tilde.team/~ben/">
<meta property="og:description" content="my tilde page">
<meta property="og:type" content="website">
<meta property="og:image" content="https://tilde.team/apple-icon.png">
<title>ben~tilde.team</title>
<link rel="icon" type="image/png" sizes="32x32" href="https://tilde.team/favicon-32x32.png">
<style><?php include "gruvbox/gruvbox.min.css"; ?></style>
<link rel="stylesheet" href="https://tilde.team/css/fork-awesome.min.css">
</head>
<body>
<main id="app">
<div>
<div class="pull-right">
<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>
<p>i built and maintain tilde.team. come join the tilde team
<a href="https://tilde.team/signup/">:)</a>
</p>
<p>pitch in for hosting costs if you're able: <a href="https://bhh.sh/donate/">donate here</a></p>
<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>
<hr>
<strong>
<h3>play with some ascii art</h3>
</strong>
<form>
<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): ?>
<option<?=$font == "slant" ? ' selected="selected"' : ""?> value="<?=$font?>"><?=$font?></option>
<?php endforeach; ?>
</select>
</div>
<div>
<label for="input">type here</label>
<input id="input">
</div>
<div>
<pre id="output">
_ _ __
____ ___________(_|_) ____ ______/ /_
/ __ `/ ___/ ___/ / / / __ `/ ___/ __/
/ /_/ (__ ) /__/ / / / /_/ / / / /_
\__,_/____/\___/_/_/ \__,_/_/ \__/
</pre>
</div>
</form>
</div>
<hr>
<h3>page hits as of jan 2020</h3>
<script type="text/javascript" src="counter/gcount.php?page=index"></script>
<hr>
<!-- tilde.team ring fragment-->
<div id="newring">
<center>
[<a href="https://tilde.team/ring/?action=prev&me=ben">previous page</a>]
[<a href="https://tilde.team/ring/?action=random&me=ben">random page</a>]
[<a href="https://tilde.team/ring/?action=next&me=ben">next page</a>]
<br>
<a href="https://tilde.team/ring/">how to join this webring</a>
</center>
</div>
<hr>
<footer>
<a href="https://tildegit.org/ben/tilde">page source</a>
</footer>
</main>
<script>
var font = document.getElementById("font");
var input = document.getElementById("input");
var output = document.getElementById("output");
font.addEventListener("change", figlet);
input.addEventListener("input", figlet);
function figlet() {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
output.innerHTML = xmlHttp.responseText;
};
xmlHttp.open("GET", `api/?font=${font.value}&text=${input.value}`, true);
xmlHttp.send(null);
}
</script>
</body>
</html>

56
ben-links.php Normal file
View File

@ -0,0 +1,56 @@
<?php
function faclass($icon) {
return "fa fa-fw fa-$icon";
}
$links = [
"email" => [
"href" => "mailto:ben@tilde.team",
"icon" => "envelope"
],
"xmpp" => [
"href" => "xmpp:ben@hmm.st",
"icon" => "xmpp"
],
"pgp pubkey" => [
"href" => "benharri.asc",
"icon" => "lock"
],
"github" => [
"href" => "https://github.com/benharri",
"icon" => "github"
],
"tildegit" => [
"href" => "https://tildegit.org/ben",
"icon" => "gitea"
],
"srht" => [
"href" => "https://git.sr.ht/~benharri",
"icon" => "circle-o"
],
"stack overflow" => [
"href" => "https://stackoverflow.com/users/6352706/ben-harris",
"icon" => "stack-overflow"
],
"my personal site" => [
"href" => "https://benharr.is",
"icon" => "globe"
],
"mastodon" => [
"href" => "https://tilde.zone/~ben",
"icon" => "mastodon-alt",
"extra_attrs" => 'rel="me"'
],
"pleroma" => [
"href" => "https://pleroma.tilde.zone/ben",
"icon" => "pleroma",
],
];
?>
<?php foreach ($links as $name => $link): ?>
~&gt; <a <?=$link["extra_attrs"] ?? ""?> href="<?=$link["href"]?>">
<i class="<?=faclass($link["icon"])?>"></i> <?=$name?>
</a>
<br>
<?php endforeach; ?>

View File

@ -10,6 +10,8 @@
<title><?=$user?>~tilde.team</title>
<link rel="stylesheet" type="text/css" href="https://tilde.team/css/hacker.css">
<link rel="stylesheet" type="text/css" href="https://drwasabi.tilde.team/mycss.css">
<link rel="stylesheet" href="https://tilde.team/css/fork-awesome.min.css">
</head>
<body>
<div class="container">
@ -24,12 +26,18 @@
<p>What happens when WaSaBi becomes sentient... and goes BAD</p>
<p>If you must, you can email me <a href="mailto:drwasabi@tilde.team">drwasabi@tilde.team</a> </p>
<h3>Current Evil Plans:</h3>
<div class="row">
<div class="column">
<h4>About Me:</h4>
<p>Never know what to say to that question. Got my first computer in 1981. A Commodore VIC-20. Oh the fun of trying to fill up that 3.5 K of free memory🤣. Miss all my old computers now.
<p><a href="http://drwasabi.tilde.team/about.html">Click here</a> if you really bored and want to learn more. Or are having trouble sleeping</p>
<p>Never know what to say to that question. Got my first computer in 1981. A
Commodore VIC-20. Oh the fun of trying to fill up that 3.5 K of free memory🤣.
Miss all my old computers now.
<p><a href="http://drwasabi.tilde.team/about.html">Click here</a> if you really
bored and want to learn more. Or are having trouble sleeping</p>
</div>
<div class="column">
<h4>Projects:</h4>
<ul>
@ -42,6 +50,7 @@
<li>WSL/2 and Docker</li>
</ul>
</div>
<div class="column">
<h4>Fun Stuff:</h4>
<ul>
@ -50,10 +59,14 @@
<li>Advent of Code 2020</li>
</ul>
</div>
</div>
<div class="row">
<p>Are you new to the tildeverse? if so, you might want to check this out <a href="https://tilde.team/wiki/?page=getting-started">How to ~tilde: Getting Started</a> for help.</p>
<p>Are you new to the tildeverse? if so, you might want to check this out
<a href="https://tilde.team/wiki/?page=getting-started">How to ~tilde: Getting Started</a> for help.</p>
</div>
<!-- Begin Tilde.Team Ring Fragment-->
<div id="newring">
<center>
@ -65,9 +78,10 @@
<a href="https://tilde.team/~ben/ring/">how to join this webring</a>
</center>
</div>
</div>
</body>
</body>
</html>