This commit is contained in:
William 2023-03-30 23:58:54 +02:00
parent 5fb898e38c
commit 09a5ed2d23
6 changed files with 127 additions and 37 deletions

View File

@ -6,9 +6,11 @@ require '../helpers.php';
use WillySoft\Route as App;
App::get('/', function() {
view('home');
});
App::get('/', fn() =>
view('home'));
App::get('/test', fn() =>
view('test'));
http_response_code(404);
view('404');

View File

@ -7,8 +7,8 @@
@media (prefers-color-scheme: dark) {
:root {
--primary: #181820;
--secondary: #22222f;
--primary: #181818;
--secondary: #222222;
--text: #eee;
--links: #aaf;
}
@ -24,14 +24,14 @@ body {
line-height: 1.5;
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
padding: .75rem;
max-width: 47rem;
margin: auto;
}
hr {
display: none;
border: 0;
border-bottom: 1px solid var(--text);
}
a {
@ -61,7 +61,7 @@ img {
display: block;
height: auto;
max-width: 100%;
max-height: 20rem;
max-height: 30rem;
}
table {

View File

@ -1,7 +1,5 @@
<?= view('header', ['title' => 'Page not found']) ?>
<h1>Page not found</h1>
<p>Sorry, the page you requested could not be found on this server.</p>
<?php
@ -12,6 +10,8 @@ if (!isset($_SERVER['HTTP_REFERER'])) {
}
?>
<a href="<?=htmlspecialchars($referer)?>">Return</a>
<p>
You may choose to <a href="<?=htmlspecialchars($referer)?>">go back</a> or ponder.
</p>
<?= view('footer') ?>
<?= view('footer') ?>

View File

@ -5,17 +5,19 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?=url('/')?>style.css">
<title><?=$title?></title>
<title><?=$title?> | William's Website</title>
</head>
<body>
<header>
<h1>William's Website</h1>
<p><i>More than just willies! Most of the time.</i></p>
<nav>
<a href="<?=url('/')?>">Home</a> |
<a href="http://status.trygve.me">Status</a>
<a href="<?=url('/')?>">Homepage</a>,
<a href="//status.trygve.me">Status</a>,
<a href="//arngren.net">Open directory</a>
</nav>
<hr>
</header>
<main>
<main>
<h1><?=$title?></h1>

View File

@ -1,24 +1,45 @@
<?= view('header', ['title' => 'Home']) ?>
<?= view('header', ['is_index' => true, 'title' => 'Service']) ?>
<h1>Service</h1>
<p>This space hosts some services for me and friends.</p>
<ul>
<li>
<a href="//git.willy.club">Gitea</a><br>
A place to host your code
</li>
<li>
<a href="#">Matrix homeserver</a><br>
<span style="color: red">Registrations closed for the time being maybe forever</span>
<br>
Easy to use end-to-end encrypted comms
</li>
<li>
<a href="mumble://mumble.willy.club">Mumble</a><br>
Voice chat application
</li>
</ul>
<div style="
padding: .75rem;
background: var(--secondary);
margin-bottom: .75rem;
">
<h2 style="
margin-top: 0;
"><a href="//git.willy.club">Gitea</a></h2>
<span>A place to host your shitty code</span>
</div>
<s>
<div style="
padding: .75rem;
background: var(--secondary);
margin-bottom: .75rem;
">
<h2 style="
margin-top: 0;
"><a href="#">Matrix Homeserver</a></h2>
<span>Secure end-to-end encrypted messaging powered by mossad</span>
</div>
</s>
<div style="
padding: .75rem;
background: var(--secondary);
margin-bottom: .75rem;
">
<h2 style="
margin-top: 0;
"><a href="mumble://mumble.willy.club">Mumble</a></h2>
<span>Shitpost with your mouth</span>
</div>
<h1>Why are we still here</h1>
<p>I'm bathing in the flora of the seed of which I have excreted.</p>
<h1>Touch</h1>
@ -29,9 +50,24 @@
<ul>
<li>
<?=date("d.m.Y")?> - <a href="/posts/0">Restoring my dignity</a> (forever draft)<br>
<i><?=date("d.m.Y")?></i> - <a href="/posts/0">Restoring my dignity</a> (forever draft)<br>
I have fallen and I can't get up
</li>
</ul>
<h1>Stuffs</h1>
<p>
Check out this
<a href="<?=url('/test')?>">test page</a>
for formatting stuffs.
</p>
<p>
Lack motive, ambition aspirations and all that shit? Check out this video on
<a href="https://www.youtube.com/watch?v=5WPB2u8EzL8">how to get motivated, sigma grindset motivational story</a>
</p>
<p>Amen</p>
<?= view('footer') ?>

50
view/test.php Normal file
View File

@ -0,0 +1,50 @@
<?= view('header', ['title' => 'Test page for formatting stuffs']) ?>
<p>What will the page look like?</p>
<a href="/non-existing-page">Click here to test the functionality of the go back button</a>
<h2>Tables</h2>
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>
<h2>Images</h2>
<img src="https://images.vy.no/4ay35n74hs/Vossebanen.jpeg" alt="">
<p>This is train</p>
<h1>pres & codes</h1>
<pre>
Intelligence Chart
__
.' '.
You / \ Me
| _.' '._ |
_v__....---'' ''---....___________v___
</pre>
<p>
This is <code>inline</code>!
</p>
<h1>😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 🥰 😘 😗 😙 😚 😋 😛 😝 😜 🤪 🤨 🧐 🤓 😎 🤩 🥳 😏 😒 😞 😔 😟 😕 🙁 ☹️ 😣 😖 😫 😩 🥺 😢 😭 😤 😠 😡 🤬 🤯 😳 🥵 🥶 😱 😨 😰 😥 😓 🤗 🤔 🤭 🤫 🤥 😶 😐 😑 😬 🙄 😯 😦 😧 😮 😲 🥱 😴 🤤 😪 😵 🤐 🥴 🤢 🤮 🤧 😷 🤒 🤕 🤑 🤠 😈 👿 👹 👺 🤡 💩 👻 💀 ☠️ 👽 👾 🤖 🎃 😺 😸 😹 😻 😼 😽 🙀 😿 😾🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐼 🐻‍❄️ 🐨 🐯 🦁 🐮 🐷 🐽 🐸 🐵 🙈 🙉 🙊 🐒 🐔 🐧 🐦 🐤 🐣 🐥 🦆 🦅 🦉 🦇 🐺 🐗 🐴 🦄 🐝 🪱 🐛 🦋 🐌 🐞 🐜 🪰 🪲 🪳 🦟 🦗 🕷 🕸 🦂 🐢 🐍 🦎 🦖 🦕 🐙 🦑 🦐 🦞 🦀 🐡 🐠 🐟 🐬 🐳 🐋 🦈 🐊 🐅 🐆 🦓 🦍 🦧 🦣 🐘 🦛 🦏 🐪 🐫 🦒 🦘 🦬 🐃 🐂 🐄 🐎 🐖 🐏 🐑 🦙 🐐 🦌 🐕 🐩 🦮 🐕‍🦺 🐈 🐈‍⬛ 🪶 🐓 🦃 🦤 🦚 🦜 🦢 🦩 🕊 🐇 🦝 🦨 🦡 🦫 🦦 🦥 🐁 🐀 🐿 🦔 🐾 🐉 🐲 🌵 🎄 🌲 🌳 🌴 🪵 🌱 🌿 ☘️ 🍀 🎍 🪴 🎋 🍃 🍂 🍁 🍄 🐚 🪨 🌾 💐 🌷 🌹 🥀 🌺 🌸 🌼 🌻 🌞 🌝 🌛 🌜 🌚 🌕 🌖 🌗 🌘 🌑 🌒 🌓 🌔 🌙 🌎 🌍 🌏 🪐 💫 ⭐️ 🌟 ⚡️ ☄️ 💥 🔥 🌪 🌈 ☀️ 🌤 ⛅️ 🌥 ☁️ 🌦 🌧 🌩 🌨 ❄️ ☃️ ⛄️ 🌬 💨 💧 💦 ☔️ ☂️ 🌊 🌫 🍏 🍎 🍐 🍊 🍋 🍌 🍉 🍇 🍓 🫐 🍈 🍒 🍑 🥭 🍍 🥥 🥝 🍅 🍆 🥑 🥦 🥬 🥒 🌶 🫑 🌽 🥕 🫒 🧄 🧅 🥔 🍠 🥐 🥯 🍞 🥖 🥨 🧀 🥚 🍳 🧈 🥞 🧇 🥓 🥩 🍗 🍖 🦴 🌭 🍔 🍟 🍕 🫓 🥪 🥙 🧆 🌮 🌯 🫔 🥗 🥘 🫕 🥫 🍝 🍜 🍲 🍛 🍣 🍱 🥟 🦪 🍤 🍙 🍚 🍘 🍥 🥠 🥮 🍢 🍡 🍧 🍨 🍦 🥧 🧁 🍰 🎂 🍮 🍭 🍬 🍫 🍿 🍩 🍪 🌰 🥜 🍯 🥛 🍼 🫖 ☕️ 🍵 🧃 🥤 🧋 🍶 🍺 🍻 🥂 🍷 🥃 🍸 🍹 🧉 🍾 🧊 🥄 🍴 🍽 🥣 🥡 🥢 🧂 ⚽️ 🏀 🏈 ⚾️ 🥎 🎾 🏐 🏉 🥏 🎱 🪀 🏓 🏸 🏒 🏑 🥍 🏏 🪃 🥅 ⛳️ 🪁 🏹 🎣 🤿 🥊 🥋 🎽 🛹 🛼 🛷 🥌 🎿 🏂 🪂 🏋️‍♀️ 🏋️ 🏋️‍♂️ 🤼‍♀️ 🤼 🤼‍♂️ 🤸‍♀️ 🤸 🤸‍♂️ ⛹️‍♀️ ⛹️ ⛹️‍♂️ 🤺 🤾‍♀️ 🤾 🤾‍♂️ 🏌️‍♀️ 🏌️ 🏌️‍♂️ 🏇 🧘‍♀️ 🧘 🧘‍♂️ 🏄‍♀️ 🏄 🏄‍♂️ 🏊‍♀️ 🏊 🏊‍♂️ 🤽‍♀️ 🤽 🤽‍♂️ 🚣‍♀️ 🚣 🚣‍♂️ 🧗‍♀️ 🧗 🧗‍♂️ 🚵‍♀️ 🚵 🚵‍♂️ 🚴‍♀️ 🚴 🚴‍♂️ 🏆 🥇 🥈 🥉 🏅 🎖 🏵 🎗 🎫 🎟 🎪 🤹 🤹‍♂️ 🤹‍♀️ 🎭 🩰 🎨 🎬 🎤 🎧 🎼 🎹 🥁 🪘 🎷 🎺 🪗 🎸 🪕 🎻 🎲 🎯 🎳 🎮 🎰 🧩🚗 🚕 🚙 🚌 🚎 🏎 🚓 🚑 🚒 🚐 🛻 🚚 🚛 🚜 🦯 🦽 🦼 🛴 🚲 🛵 🏍 🛺 🚨 🚔 🚍 🚘 🚖 🚡 🚠 🚟 🚃 🚋 🚞 🚝 🚄 🚅 🚈 🚂 🚆 🚇 🚊 🚉 ✈️ 🛫 🛬 🛩 💺 🛰 🚀 🛸 🚁 🛶 ⛵️ 🚤 🛥 🛳 🚢 ⚓️ 🪝 ⛽️ 🚧 🚦 🚥 🚏 🗺 🗿 🗽 🗼 🏰 🏯 🏟 🎡 🎢 🎠 ⛲️ 🏖 🏝 🏜 🌋 🏔 🗻 🏕 ⛺️ 🛖 🏠 🏡 🏘 🏚 🏗 🏭 🏢 🏬 🏣 🏤 🏥 🏦 🏨 🏪 🏫 🏩 💒 🏛 ⛪️ 🕌 🕍 🛕 🕋 🛤 🛣 🗾 🎑 🏞 🌅 🌄 🌠 🎇 🎆 🌇 🌆 🏙 🌃 🌌 🌉 🌁⌚️ 📱 📲 💻 ⌨️ 🖥 🖨 🖱 🖲 🕹 🗜 💽 💾 💿 📀 📼 📷 📸 📹 🎥 📽 🎞 📞 ☎️ 📟 📠 📺 📻 🎙 🎚 🎛 🧭 🕰 ⌛️ 📡 🔋 🔌 💡 🔦 🕯 🪔 🧯 🛢 💸 💵 💴 💶 💷 🪙 💰 💳 💎 ⚖️ 🪜 🧰 🪛 🔧 🔨 🛠 🪚 🔩 ⚙️ 🪤 🧱 🧲 🔫 💣 🧨 🪓 🔪 🗡 ⚔️ 🛡 🚬 ⚰️ 🪦 ⚱️ 🏺 🔮 📿 🧿 💈 ⚗️ 🔭 🔬 🕳 🩹 🩺 💊 💉 🩸 🧬 🦠 🧫 🧪 🌡 🧹 🪠 🧺 🧻 🚽 🚰 🚿 🛁 🛀 🧼 🪥 🪒 🧽 🪣 🧴 🛎 🔑 🗝 🚪 🪑 🛋 🛏 🛌 🧸 🪆 🖼 🪞 🪟 🛍 🛒 🎁 🎈 🎏 🎀 🪄 🪅 🎊 🎉 🎎 🏮 🎐 🧧 ✉️ 📩 📨 📧 💌 📥 📤 📦 🏷 🪧 📪 📫 📬 📭 📮 📯 📜 📃 📄 📑 🧾 📊 📈 📉 🗒 🗓 📆 📅 🗑 📇 🗃 🗳 🗄 📋 📁 📂 🗂 🗞 📰 📓 📔 📒 📕 📗 📘 📙 📚 📖 🔖 🧷 🔗 📎 🖇 📐 📏 🧮 📌 📍 ✂️ 🖊 🖋 ✒️ 🖌 🖍 📝 ✏️ 🔍 🔎 🔏 🔐 🔒 🔓❤️ 🧡 💛 💚 💙 💜 🖤 🤍 🤎 💔 ❣️ 💕 💞 💓 💗 💖 💘 💝 💟 </h1>
<?= view('footer') ?>