FIX: nicer footer and about, also fixed 404 mechanism when visiting index

This commit is contained in:
TheShinyMelon 2024-11-15 00:03:33 +01:00
parent 0ea827b7f5
commit aa0dd82856
6 changed files with 74 additions and 38 deletions

View File

@ -1 +1,2 @@
<h1>Sie haben hier nichts zu suchen.</h1> <h1>You don't belong here.</h1>
<p>The technical term would be '404' or something.</p>

View File

@ -1,19 +1,22 @@
<h1 class='cat_heading'>> chosen file type: person<br>&nbsp;&nbsp;getting to know me is futile...<br>&nbsp;&nbsp;listing files...</h1> <h1 class='cat_heading'>> chosen file type: person<br>&nbsp;&nbsp;getting to know me is futile...<br>&nbsp;&nbsp;listing files...</h1>
<h2>I am a human. Treat me as such.</h2> <h2>I am a human. Treat me as such. I will reciprocate.</h2>
<div style='display: flex'> <div style='display: flex'>
<p> <p>
This is a block of text about me.<br> This is a hunk of text about me and my website.<br>
Very fascinating.<br><br> Very fascinating indeed.<br><br>
Exhilarating, almost.<br><br> I endorse free and open software.<br><br>
This site was created solely by human hands without the use of AI.<br><br> This site was created solely by human hands without the use of AI.<br>
Also, documents are being dynamically built using php, relying heavily on the resources of the server. You could call it 'organic', I guess.<br><br>
That means that the number of simultanious visitors is restricted and both visiting and running the site is discouraged.<br> Also, documents are being dynamically built using php, relying on the resources of the server, so to say.
That means that the number of simultaneous visitors will be restricted. That way both visiting and running the site is kind of discouraged.<br>
So, in turn, this site represents my personality traits in the '''real''' world. So, in turn, this site represents my personality traits in the '''real''' world.
(People of culture would call this 'edgy tsundere behaviour', but what do they know...) (People of culture would call this 'edgy tsundere behavior', but what do they know...)<br><br>
Let's all love Lain! &#10084;<br>
- Dani aka TheShinyMelon
</p> </p>
<img src='./resources/img/about-me.gif' style='height: 8rem;' class='pixelart'> <img src='./resources/img/about-me.gif' style='height: 10rem; margin: 5rem;' class='pixelart'>
</div> </div>
<?php <?php

View File

@ -25,38 +25,53 @@
<div style='height: 4vh;'></div> <div style='height: 4vh;'></div>
</body> </body>
<?php <div class='big_content'>
require_once('../app/config.php'); <?php
$el = isset($_GET['el']) ? $_GET['el'] : ''; require_once('../app/config.php');
$el = isset($_GET['el']) ? $_GET['el'] : 'index';
switch($el) { switch($el) {
case 'image': case 'index':
include('image.php'); break;
break;
case 'audio': case 'image':
include('audio.php'); include('image.php');
break; break;
case 'video': case 'audio':
include('video.php'); include('audio.php');
break; break;
case 'text': case 'video':
include('text.php'); include('video.php');
break; break;
case 'about': case 'text':
include('about.php'); include('text.php');
break; break;
default: case 'about':
include('404.php'); include('about.php');
break; break;
}
?> default:
include('404.php');
break;
}
?>
</div>
<hr style='margin-top: 3rem;'>
<footer> <footer>
<hr> <p class='footer_element'>
<p>This is a footer. No not futa, you horny imbecile.</p> <a href='./index.php?el=legal'>legal information</a>
<a href='./index.php?el=privacy'>privacy policy</a>
</p>
<p class='footer_element'><a href='https://layer-8.moe/'>layer-8.moe</a> is a non-commercial homepage created by a private individual in 2024</p>
<p class='footer_element'>
&nbsp;<a href='https://layer-8.moe/'><img src='./resources/img/site-ad.gif'></a>
&nbsp;<a href='https://quintern.xyz/'><img src='./resources/img/site-ad-quintern.gif'></a>
&nbsp;<a href='https://gabrielbecker.com/'><img src='./resources/img/site-ad-gabriel.gif'></a>
</p>
</footer> </footer>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

View File

@ -30,6 +30,17 @@
background-color: black; background-color: black;
} }
footer {
padding: 0.5rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.footer_element {
padding: 0.5rem;
}
.logo_font { .logo_font {
color: #BFBFBF; color: #BFBFBF;
font-family: 'hyper'; font-family: 'hyper';
@ -111,6 +122,7 @@
font-family: 'mono'; font-family: 'mono';
font-size: 2rem; font-size: 2rem;
padding-left: 2rem; padding-left: 2rem;
padding-bottom: 3rem;
color: #BFBFBF; color: #BFBFBF;
} }
@ -121,3 +133,8 @@
object-fit: contain; object-fit: contain;
width: auto; width: auto;
} }
.big_content {
padding: 1rem;
padding-left: 5rem;
}