slogans, homedirs

This commit is contained in:
v0id1st 2025-07-29 00:11:00 +02:00
parent ecb59b535b
commit ac280050e3
5 changed files with 74 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<footer id="footer">
<a class="link" href="#">Źródło strony</a>
<a class="link" href="https://tylda.org/git/v0id1st/main">Źródło strony</a>
<a class="link" href="/stats.php">Statystyki</a>
</footer>
</div>

View File

@ -1,14 +1,14 @@
<html lang="pl">
<head>
<link rel="stylesheet" type="text/css" href="static/css/main.css">
<meta charset="utf-8">
<title>~tylda.org~ polskie tildeverse</title>
</head>
<body>
<div class="main-content">
<header id="menu">
<a class="active" href="/">~tylda.org</a>
<a class="active" href="/">~tylda.org~</a>
<a href="/wiki/">wiki</a>
<a href="/git/">git</a>
<a href="/register.php">dołącz</a>

View File

@ -1,14 +1,56 @@
<?php
$files = array();
foreach (scandir("/home/") as $file) {
if (in_array($file, array('.', '..'))) continue;
$files[$file] = filemtime("/home/".$file);
}
arsort($files);
$recent = $files;
include 'header.php';
$slogans = file("slogans.txt");
$slogan = $slogans[rand(0, count($slogans) - 1)];
?>
<pre class="ascii">
/$$ /$$ /$$
| $$ | $$ | $$
/$$$$$$ /$$ /$$| $$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
|_ $$_/ | $$ | $$| $$ /$$__ $$ |____ $$ /$$__ $$ /$$__ $$ /$$__ $$
| $$ | $$ | $$| $$| $$ | $$ /$$$$$$$ | $$ \ $$| $$ \__/| $$ \ $$
| $$ /$$| $$ | $$| $$| $$ | $$ /$$__ $$ | $$ | $$| $$ | $$ | $$
| $$$$/| $$$$$$$| $$| $$$$$$$| $$$$$$$ /$$| $$$$$$/| $$ | $$$$$$$
\___/ \____ $$|__/ \_______/ \_______/|__/ \______/ |__/ \____ $$
/$$ | $$ /$$ \ $$
| $$$$$$/ | $$$$$$/
\______/ \______/
</pre>
<i style="margin-bottom: 2rem;"><?php echo $slogan; ?></i>
<div id="top-bar">
<h1>> Strona Główna</h1>
</div>
<article id="content">
Siemano
<p><b>tylda.org</b> to wspólny serwer linuksowy dla ludzi, którzy lubią prostotę, wolność i internet z czasów, gdy wszystko było bardziej tekstowe.</p>
<p>Możesz tu prowadzić bloga w Markdownie, tworzyć własne strony WWW, korzystać z maila, czatu IRC i terminala albo po prostu eksplorować i uczyć się Linuksa.</p>
<p>Nie ma reklam, lajków, followersów jest społeczność, współdzielenie wiedzy i dobre oldschoolowe wibracje.</p>
<p>To miejsce powstało z potrzeby stworzenia własnego „kąta” w internecie minimalistycznego, bezpośredniego, z klimatem dawnych shell accountów.</p>
<p>Jeśli szukasz alternatywy dla współczesnej sieci dobrze trafiłeś.</p>
<p>Zasady? Szanuj innych. Nie rób syfu. I baw się dobrze. :)</p>
</article>
<article id="content">
<h2>Ostatnio edytowane strony:</h2>
<p class="user_home" style="margin-bottom: 1rem">$ ls -lt /home/</p>
<?php
foreach($recent as $user => $date) {
echo "<a class=\"link\" href=\"/~".$user."/\"><p class=\"user_home\"><span>drwxr-xr-x</span><span>".rand(1,9)."</span><span>".$user."</span><span>".$user."</span><span>".rand(1,19)."</span><span>".date("M d H:i", $date)."</span><span>".$user."</span></p></a>";
}
?>
</article>
<?php

13
slogans.txt Normal file
View File

@ -0,0 +1,13 @@
internet, zanim stał się korpo.
własny kąt w cyfrowym wszechświecie.
gdzie terminal to cały świat.
wolność, prostota, shell.
poczta, blog, IRC. Wszystko, czego potrzebujesz.
nie jesteś produktem.
mniej JavaScriptu, więcej człowieka.
terminal, nie timeline.
social computing w wersji tekstowej.
bo prawdziwi ludzie używają `vi`.
retro jest teraz.
jesteśmy tu dla `echo "hello world"`.
dzwoń do nas przez `write`.

View File

@ -67,13 +67,15 @@ div#top-bar {
article#content {
display: flex;
flex-direction: row;
flex-direction: column;
border-width: 5px;
border-color: var(--main);
border-style: double;
border-radius: 5px;
margin-top: 2rem;
padding: 1rem;
gap: 8px;
padding-block: 2rem;
}
footer#footer {
@ -99,3 +101,15 @@ footer#footer > *:not(:last-child)::after {
margin-left: 0.7rem;
color: var(--main);
}
pre.ascii {
margin-bottom: 2rem;
font-size: 15px;
}
.user_home {
display: grid;
grid-template-columns: 100px 30px 100px 100px 40px 120px 15px;
font-family: monospace;
white-space: pre;
}