Use a bit more stylisation from template v3

This commit is contained in:
Florine W. Dekker 2022-11-26 13:39:07 +01:00
parent bf37c37b4c
commit 92b8d3f8b5
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
1 changed files with 19 additions and 10 deletions

29
dist/index.php vendored
View File

@ -59,32 +59,41 @@ if ($target != null && !$needs_confirmation) {
<div role="document"> <div role="document">
<section> <section>
<header class="fwd-header"> <header class="fwd-header">
<h1><a href=".">fwdkr.co</a></h1> <hgroup>
<h1><a href=".">fwdkr.co</a></h1>
<h2>Florine's personal URL shortener.</h2>
</hgroup>
</header> </header>
<?php <?php
if ($error) { if ($error) {
?> ?>
<h2>Internal server error</h2> <article class="status-card error">
<p>Something went wrong internally, and you could not be redirected. Please try again later.</p> <h3>Internal server error</h3>
<p>Something went wrong internally, and you could not be redirected. Please try again later.</p>
</article>
<?php <?php
} else if ($needs_confirmation) { } else if ($needs_confirmation) {
?> ?>
<h2>Confirm redirect</h2> <article>
<p>This URL redirects to <b><?= $target ?></b>.</p> <h3>Confirm redirect</h3>
<p>This URL redirects to <b><?= $target ?></b>.</p>
<p><a href="<?= $target ?>">Click here to proceed</a></p> <p><a role="button" href="<?= $target ?>">Click here to proceed</a></p>
</article>
<?php <?php
} else { } else {
if ($path != "/") { if ($path != "/") {
?> ?>
<h2>Link not found</h2> <article class="status-card error">
<p>The short URL <b>https://fwdkr.co<?= $path ?></b> could not be found.</p> <h3>Link not found</h3>
<p>The short URL <b>https://fwdkr.co<?= $path ?></b> could not be found.</p>
</article>
<?php <?php
} }
?> ?>
<h2>About fwdkr.co</h2> <h3>About fwdkr.co</h3>
<p> <p>
You've arrived at this page because you typed or linked to "fwdkr.co", the URL shortcut for You've arrived at this page because you typed or linked to "fwdkr.co", the URL shortcut for
<a href="https://fwdekker.com/">fwdekker.com</a>. <a href="https://fwdekker.com/">fwdekker.com</a>.
@ -95,7 +104,7 @@ if ($target != null && !$needs_confirmation) {
affiliated with FWDekker. affiliated with FWDekker.
</p> </p>
<h3>Example links</h3> <h4>Example links</h4>
<ul> <ul>
<li><a href="https://fwdkr.co/cv">fwdkr.co/cv &ndash; My CV</a></li> <li><a href="https://fwdkr.co/cv">fwdkr.co/cv &ndash; My CV</a></li>
<li><a href="https://fwdkr.co/pgp">fwdkr.co/pgp &ndash; My PGP key</a></li> <li><a href="https://fwdkr.co/pgp">fwdkr.co/pgp &ndash; My PGP key</a></li>