diff options
| author | Jonas Kohl | 2024-07-19 16:30:46 +0200 | 
|---|---|---|
| committer | Jonas Kohl | 2024-07-19 16:30:46 +0200 | 
| commit | 551fe367342f4c3d4c859f58054c6076b3fe4d69 (patch) | |
| tree | 93f1bfc2fc0c9db830cabf4df3318f45fc488833 | |
| parent | 170d134f6988450861d23eb02855eafd84a4e071 (diff) | |
Wrap after 80 cols
| -rw-r--r-- | expand.php | 12 | ||||
| -rw-r--r-- | src/includes/under-construction.php | 3 | ||||
| -rw-r--r-- | src/pages/about.php | 20 | ||||
| -rw-r--r-- | src/template.php | 27 | 
4 files changed, 48 insertions, 14 deletions
@@ -4,10 +4,14 @@ define("SRCDIR", realpath(__DIR__ . "/src/"));  $__page = file_get_contents("php://stdin");  $title = ""; -$__page = preg_replace_callback(';<title>(.*?)</title>;i', function(array $matches) use(&$title): string { -    $title = $matches[1]; -    return ""; -}, $__page); +$__page = preg_replace_callback( +    ';<title>(.*?)</title>;i', +    function(array $matches) use(&$title): string { +        $title = $matches[1]; +        return ""; +    }, +    $__page +);  $page = SRCDIR . "/pages/" . bin2hex(random_bytes(8)) . ".tmp";  file_put_contents($page, $__page);  unset($__page); diff --git a/src/includes/under-construction.php b/src/includes/under-construction.php index 0ab79de..418d364 100644 --- a/src/includes/under-construction.php +++ b/src/includes/under-construction.php @@ -1,4 +1,5 @@ -<table class="constructionBox" cellspacing="0"><tbody><tr><td class="constructionBoxCell"> +<table class="constructionBox" cellspacing="0"><tbody> +<tr><td class="constructionBoxCell">  <img src="/static/under-construction.gif" alt="Under construction" /><br />  <strong>This page is still under construction!</strong>  </td></tr></tbody></table> diff --git a/src/pages/about.php b/src/pages/about.php index b9f8b22..3103ebb 100644 --- a/src/pages/about.php +++ b/src/pages/about.php @@ -2,7 +2,10 @@  <?php  const BIRTHDATE = "2001-04-13"; -$age = date_diff(new DateTimeImmutable(), new DateTimeImmutable(BIRTHDATE))->format("%y"); +$age = date_diff( +    new DateTimeImmutable(), +    new DateTimeImmutable(BIRTHDATE) +)->format("%y");  ?> @@ -13,5 +16,16 @@ $age = date_diff(new DateTimeImmutable(), new DateTimeImmutable(BIRTHDATE))->for  <?php include SRCDIR . "/includes/under-construction.php"; ?>  <p>Hello, I'm <strong>Jonas Kohl</strong> aka <strong>hozyro</strong>!</p> -<p>I'm <strong><?= $age ?>-year-old</strong> student and software engineer. I use <strong>they/them</strong>, <strong>she/her</strong> and <strong>he/him</strong> pronouns.</p> -<p>I love retro computing, especially the early to mid-2000s (yes, that's considered retro now, get over it), as you can tell by this website (which btw should work just fine in IE 6 if you manage to bypass the SSL errors somehow – I tested it in IE 6, IE 7 and Mozilla 1.1.)</p> +<p> +I'm <strong><?= $age ?>-year-old</strong> student and software engineer. I use +<strong>they/them</strong>, <strong>she/her</strong> and <strong>he/him</strong> +pronouns. +</p> +<p> +I love retro computing, especially the early to mid-2000s (yes, that's +considered retro now, get over it), as you can tell by this website +(which btw should work just fine in IE 6 if you manage to bypass the SSL errors +somehow – I tested it in IE 6, IE 7 and Mozilla 1.1). This website is also +available solely via HTTP over at +<a href="http://hozyro.jkohl.link/">http://hozyro.jkohl.link/</a>! +</p> diff --git a/src/template.php b/src/template.php index 8612a51..5c94a36 100644 --- a/src/template.php +++ b/src/template.php @@ -19,7 +19,10 @@              <tbody>                  <tr id="logoRow">                      <td id="logoCell"> -                        <img src="/static/blank.gif" alt="hozyro's site" width="1" height="136" /> +                        <img src="/static/blank.gif" +                             alt="hozyro's site" +                             width="1" +                             height="136" />                      </td>                  </tr>                  <tr id="navRow"> @@ -27,10 +30,19 @@                          <table id="navLayout" cellspacing="0">                              <tbody>                                  <tr> -                                    <td class="navCell" style="border-left:0"><a href="/">Home page</a></td> -                                    <td class="navCell"><a href="/about.html">About me</a></td> -                                    <td class="navCell"><a href="https://jonaskohl.de/">My actual website</a></td> -                                    <td class="navCell" style="border-right:0"></td> +                                    <td class="navCell" style="border-left:0"> +                                        <a href="/">Home page</a> +                                    </td> +                                    <td class="navCell"> +                                        <a href="/about.html">About me</a> +                                    </td> +                                    <td class="navCell"> +                                        <a href="https://jonaskohl.de/"> +                                            My actual website +                                        </a> +                                    </td> +                                    <td class="navCell" +                                        style="border-right:0"></td>                                  </tr>                              </tbody>                          </table> @@ -43,7 +55,10 @@                  </tr>                  <tr id="footerRow">                      <td id="footerCell"> -                        Made by Jonas Kohl aka hozyro. This website is <a href="https://git.jkohl.link/jonas/neocities-site">open-source</a>. +                        Made by Jonas Kohl aka hozyro. This website is +                        <a href="https://git.jkohl.link/jonas/neocities-site"> +                            open-source +                        </a>.                      </td>                  </tr>              </tbody>  |