Add members list

This commit is contained in:
Robert Miles 2018-10-07 11:35:30 -04:00
parent 5ef25b6dd8
commit e8f4e242d4
3 changed files with 67 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<?php include 'header.php'; ?>
<h1><img style="width:75px;" src="./logos/tildeverse-green.png">tildeverse.org</h1>
<p>We're working on providing services to the tildeverse, a community of GNU+Linux boxes that aim to share the fun and love!</p>
<p>We're working on providing services to <a href="members.php">the tildeverse,</a> a community of GNU+Linux boxes that aim to share the fun and love!</p>
<h2>Our Services</h2>
<div class="list-group">
<?php foreach (json_decode(file_get_contents("https://git.tilde.team/api/v1/orgs/tildeverse/repos")) ?? [] as $repo): ?>

49
members.json Normal file
View File

@ -0,0 +1,49 @@
{
"members": [
{
"name": "tilde.town",
"sysadmins": [
[
"vilmibm",
"https://tilde.town/~vilmibm/"
]
],
"link": "https://tilde.town",
"description": "intentional digital community for making art, socializing, and learning"
},
{
"name": "tilde.team",
"sysadmins": [
[
"ben",
"https://ben.tilde.team/"
],
[
"khuxkm",
"https://khuxkm.tilde.team/"
],
[
"cmccabe",
"https://cmccabe.tilde.team/"
],
[
"virtual",
"https://virtual.tilde.team/"
]
],
"link": "https://tilde.team",
"description": "non-commercial space for teaching, learning, and enjoying the social medium of unix"
},
{
"name": "yourtilde.com",
"sysadmins": [
[
"deepend",
"https://yourtilde.com/~deepend/"
]
],
"link": "https://yourtilde.com",
"description": "basically a social network inside SSH: there is chat, email, forums, games, and lots more."
}
]
}

17
members.php Normal file
View File

@ -0,0 +1,17 @@
<?php include 'header.php'; ?>
<h1><img style="width:75px;" src="./logos/tildeverse-green.png">tildeverse members</h1>
<div class="list-group">
<?php foreach (json_decode(file_get_contents("members.json"))->members ?? [] as $member): ?>
<div class="list-group-item">
<h3 class="list-group-item-heading"><a href="<?=$member->link?>"><?=$member->name?></a></h3>
<p class="list-group-item-text"><?=$member->description?></p>
<h4>Sysadmins</h4>
<ul>
<?php foreach ($member->sysadmins as $admin): ?>
<li><a href="<?=$admin[1]?>"><?=$admin[0]?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endforeach;?>
</div>
<?php include 'footer.php'; ?>