From 6c7f055505abd83c8ce1230455e4034293f93f98 Mon Sep 17 00:00:00 2001 From: Hannah Isopod Date: Wed, 11 Jun 2025 04:43:23 -0600 Subject: Move site title and random caption from landing page body to header --- index.php | 193 +----------------------------------------------- nav.php | 248 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-------- style.css | 47 +++++++++--- 3 files changed, 252 insertions(+), 236 deletions(-) diff --git a/index.php b/index.php index 42b6ff1..8b0f875 100644 --- a/index.php +++ b/index.php @@ -140,204 +140,13 @@ Kind of dragon free!', - 'This site uses cookies (chocolate chip)', - 'Now with reduced centralization!', - 'your gay', - 'the fuck is a gender', - 'The Only Website', - '𝓘𝓷𝓪𝓬𝓬𝓮𝓼𝓼𝓲𝓫𝓵𝓮!', - 'Follow me on Google+!', - '404: caption not found', - 'Web π compliant!', - 'If you\'re seeing this, something is seriously wrong.', - 'cringe', - 'don\'t smoke cigarettes kids they\'ll make your lungs sus', - 'real life isopod', - 'holy fucking bingle', - 'AI (Aquatic Isopod) generated', - 'crubge', - 'Only unpickle data you trust.', - 'Tested in prod!', - 'pwetty epic B)', - 'Known to the state of California to cause cancer', - 'Semi-modular!', - 'Did you know?', - 'shrimps is bugs', - 'Delicious!', - 'trnasgener', - 'Opinionated!', - 'Eurorack compatible!', - 'Hackable!', - 'HiDPI!', - '&mdash; addict', - '3D printed!', - 'Federated!', - 'Chitinous!', - 'is this a bedbuge?', - 'is this buge trans gener?', - 'Now in HD!', - 'Hard Disk Drive!', - '"Tablet or smartphone device"', - 'Free Palestine!', - 'COUNTER', - 'TUEADAY', - 'PLACEHIM', - 'UPSIDEDOWN', - 'RGB', - 'BLAHAJ', - '@BEAT', - 'HALO', - 'LIKECARPET' - ); - break; - } - $cap = $captions[array_rand($captions)]; - if($_GET['caption']) { - $cap = $captions[$_GET['caption']]; - } - $tit = $cap; - if(!$seasonal) { - switch($cap) { - case 'COUNTER': - $num = (int) filter_var(file_get_contents($datadir."caption_views.txt"), FILTER_SANITIZE_NUMBER_INT); - $num++; - file_put_contents($datadir."caption_views.txt", $num); - $cap = "This caption has been viewed $num times!"; - $tit = "This title has been viewed $num times!"; - break; - case 'TUEADAY': - $day = array("suday", "moday", "tueaday", "weaday", "thuday", "friaday", "satuaday")[date('w')]; - $cap = "wait it's fucking $day. god."; - $tit = $cap; - echo ""; - break; - case 'PLACEHIM': - $cap = 'place him on your site immediately'; - $tit = $cap; - echo ""; - break; - case 'BLAHAJ': - $cap = ' certified Good Website by blåhaj'; - $tit = "certified Good Website by blåhaj"; - echo ""; - break; - case 'Kind of dragon free!': - $cap = 'Kind of dragon free!'; - break; - case 'UPSIDEDOWN': - $cap = 'Upside Down!'; - $tit = '¡uʍop ǝpısdn'; - break; - case 'RGB': - $cap = 'RGB Gaming Webpage'; - $tit = 'RGB Gaming Webpage'; - break; - case '@BEAT': - $cap = '@'.date("B").''; - $tit = '@'.date("B"); - break; - case 'HALO': - $cap = 'coke and fries halo'; - $tit = 'coke and fries halo'; - break; - case 'LIKECARPET': - $cap = 'Check it out, I\'m in the house like carpet'; - $tit = 'Check it out, I\'m in the house like carpet'; - break; - } - } - } ?> - <?php if($tit) { echo "isopod.cool v3 - $tit"; } else { echo "isopod.cool v3"; } ?> + isopod.cool v3
-
-

isopod dot coolv3.1

-

-
$name "; - } else { - echo "$name "; - } -} -echo ""); - function bg($rightside = false, $dfs = 1000, $title = null) { $cpath = preg_replace("/\/[^\/]*$/", "", $_SERVER['REQUEST_URI']); $output = "
Kind of dragon free!', + 'This site uses cookies (chocolate chip)', + 'Now with reduced centralization!', + 'your gay', + 'the fuck is a gender', + 'The Only Website', + '𝓘𝓷𝓪𝓬𝓬𝓮𝓼𝓼𝓲𝓫𝓵𝓮!', + 'Follow me on Google+!', + '404: caption not found', + 'Web π compliant!', + 'If you\'re seeing this, something is seriously wrong.', + 'cringe', + 'don\'t smoke cigarettes kids they\'ll make your lungs sus', + 'real life isopod', + 'holy fucking bingle', + 'AI (Aquatic Isopod) generated', + 'crubge', + 'Only unpickle data you trust.', + 'Tested in prod!', + 'pwetty epic B)', + 'Known to the state of California to cause cancer', + 'Semi-modular!', + 'Did you know?', + 'shrimps is bugs', + 'Delicious!', + 'trnasgener', + 'Opinionated!', + 'Eurorack compatible!', + 'Hackable!', + 'HiDPI!', + '&mdash; addict', + '3D printed!', + 'Federated!', + 'Chitinous!', + 'is this a bedbuge?', + 'is this buge trans gener?', + 'Now in HD!', + 'Hard Disk Drive!', + '"Tablet or smartphone device"', + 'Free Palestine!', + 'COUNTER', + 'TUEADAY', + 'PLACEHIM', + 'UPSIDEDOWN', + 'RGB', + 'BLAHAJ', + '@BEAT', + 'HALO', + 'LIKECARPET' + ); + break; + } + $cap = $captions[array_rand($captions)]; + if($_GET['caption']) { + $cap = $captions[$_GET['caption']]; + } + if(!$seasonal) { + switch($cap) { + case 'COUNTER': + $num = (int) filter_var(file_get_contents($datadir."caption_views.txt"), FILTER_SANITIZE_NUMBER_INT); + $num++; + file_put_contents($datadir."caption_views.txt", $num); + $cap = "This caption has been viewed $num times!"; + break; + case 'TUEADAY': + $day = array("suday", "moday", "tueaday", "weaday", "thuday", "friaday", "satuaday")[date('w')]; + $cap = "wait it's fucking $day. god."; + echo ""; + break; + case 'PLACEHIM': + $cap = 'place him on your site immediately'; + echo ""; + break; + case 'BLAHAJ': + $cap = ' certified Good Website by blåhaj'; + echo ""; + break; + case 'Kind of dragon free!': + $cap = 'Kind of dragon free!'; + break; + case 'UPSIDEDOWN': + $cap = 'Upside Down!'; + break; + case 'RGB': + $cap = 'RGB Gaming Webpage'; + break; + case '@BEAT': + $cap = '@'.date("B").''; + break; + case 'HALO': + $cap = 'coke and fries halo'; + break; + case 'LIKECARPET': + $cap = 'Check it out, I\'m in the house like carpet'; + break; + } + } +} + +$host = $_SERVER['HTTP_HOST']; + +function echolink($url, $name) { + global $host; + if("/$url/" != $_SERVER['REQUEST_URI']) { + echo "$name "; + } else { + echo "$name "; + } +} +?> +
+
+

isopod dot coolv3.1

+

+
+ "); + ?> +
\ No newline at end of file diff --git a/style.css b/style.css index 8b42384..a481424 100644 --- a/style.css +++ b/style.css @@ -36,7 +36,7 @@ --bodywidth: min(90vw, 80ch); --stddropshadow: 4px 4px 8px var(--stdshadow); --stdpadding: 1rem; - --navbarheight: calc(var(--stdpadding) * 2.5); + --navbarheight: calc(var(--stdpadding) * 4.5); --h1-image: url('images/isopod.php'); --shadowsize: 3rem; } @@ -86,24 +86,38 @@ a:hover { color: var(--linkhover); } -/* Nav */ +/* Nav & Header */ +header { + position: absolute; + top: 0; + width: fit-content; + height: var(--navbarheight); + padding-top: 0.5rem; + left: 50%; + transform: translateX(-50%); +} +#header-content { + display: flex; + align-items: center; +} +#header-content > * { + margin: 0; +} +#header-content > :last-child { + flex: 1; + text-align: right; +} nav { display: flex; flex-wrap: wrap; max-width: 100%; align-items: center; justify-content: center; -} -nav#main-nav { - position: absolute; - top: 0; - left: 0; - right: 0; - height: var(--navbarheight); + gap: calc(var(--stdpadding / 2)); } nav a, nav span, body > a{ padding: calc(var(--stdpadding) / 2) calc(var(--stdpadding) / 4 * 3); - margin: calc(var(--stdpadding) / 2) calc(var(--stdpadding) / 4); + margin: calc(var(--stdpadding) / 2) 0; } nav a, body > a { border-left: var(--stdaccentborder); @@ -334,13 +348,22 @@ hr { /* If user is on mobile */ @media only screen and (hover: none) { - nav#main-nav { + header { position: initial; top: initial; left: initial; right: initial; height: initial; - margin-top: calc(var(--stdpadding) / 2); + transform: initial; + } + #header-content { + padding-bottom: calc(var(--stdpadding) / 2); + } + #header-content > * { + flex: 1; + } + #header-content > :last-child { + word-break: break-word; } body > h1:first-of-type { margin-top: var(--stdpadding); -- cgit v1.2.3