Add VT323/Press Start 2P fonts, enable animations on mobile, fix mobile layout

This commit is contained in:
2026-09-13 22:52:59 +02:00
parent acd50bfdd8
commit a71ca2f536
+13 -8
View File
@@ -6,13 +6,18 @@
<title>PHOBIA DemoGroup Archive - Nostalgic PC Intros from 1994</title> <title>PHOBIA DemoGroup Archive - Nostalgic PC Intros from 1994</title>
<meta name="description" content="Explore the PHOBIA DemoGroup Archive, showcasing the 1994 PC intros, including the notable Phobia Welcome Intro. Relive the early days of PC intros with source code and more."> <meta name="description" content="Explore the PHOBIA DemoGroup Archive, showcasing the 1994 PC intros, including the notable Phobia Welcome Intro. Relive the early days of PC intros with source code and more.">
<link rel="canonical" href="https://www.moonweb.org/phobia/" /> <link rel="canonical" href="https://www.moonweb.org/phobia/" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet">
<style> <style>
body { body {
background-color: #1a1a1a; background-color: #1a1a1a;
margin: 0; margin: 0;
color: #f0f0f0; color: #f0f0f0;
font-family: 'Arial', sans-serif; font-family: 'VT323', monospace;
line-height: 1.6; line-height: 1.6;
font-size: 20px;
overflow-x: hidden;
} }
.header { .header {
display: flex; display: flex;
@@ -67,7 +72,7 @@
flex: 2 1 300px; flex: 2 1 300px;
} }
.program-info h2 { .program-info h2 {
font-size: 1.5em; font-size: 1em;
margin-top: 0; margin-top: 0;
margin-bottom: 10px; margin-bottom: 10px;
} }
@@ -78,6 +83,9 @@
background-color: #333; background-color: #333;
margin-top: 20px; margin-top: 20px;
} }
h1, h2 {
font-family: 'Press Start 2P', cursive;
}
@media (max-width: 600px) { @media (max-width: 600px) {
h1 { h1 {
font-size: 1.7em; font-size: 1.7em;
@@ -90,8 +98,6 @@
width: 100%; width: 100%;
height: auto; height: auto;
} }
#phobialogo { display: none !important; }
#phobialogo-fallback { display: inline !important; }
.content { .content {
padding: 15px 10px; padding: 15px 10px;
flex-direction: column; flex-direction: column;
@@ -113,6 +119,7 @@
text-align:left; text-align:left;
vertical-align: top; vertical-align: top;
padding-right: 20px; padding-right: 20px;
overflow-wrap: break-word;
} }
a { a {
color:#00A6FF; color:#00A6FF;
@@ -171,11 +178,11 @@
<div class="content"> <div class="content">
<div class="welcome"> <div class="welcome">
<h1 style="margin-top: 0;">Welcome to the PHOBIA DemoGroup Archive</h1> <h1>PHOBIA DemoGroup Archive</h1>
<p>This site showcases the releases from my DemoGroup, PHOBIA. Although PHOBIA existed only briefly on the PC in 1994, it made a notable impact with its focus on PC intros. The highlight of our work was the major release, the Phobia Welcome Intro.</p> <p>This site showcases the releases from my DemoGroup, PHOBIA. Although PHOBIA existed only briefly on the PC in 1994, it made a notable impact with its focus on PC intros. The highlight of our work was the major release, the Phobia Welcome Intro.</p>
<p>Feel free to explore and enjoy the nostalgia of the early days of PC intros.</p> <p>Feel free to explore and enjoy the nostalgia of the early days of PC intros.</p>
<p>Best regards, Stefan Koelle</p> <p style="margin-bottom: 1.5em;">Best regards, Stefan Koelle</p>
</div> </div>
<div class="program"> <div class="program">
@@ -279,7 +286,6 @@
</div> </div>
<script> <script>
(function() { (function() {
if (window.matchMedia("(max-width: 600px)").matches) return;
var canvas = document.getElementById('phobialogo'); var canvas = document.getElementById('phobialogo');
var fallback = document.getElementById('phobialogo-fallback'); var fallback = document.getElementById('phobialogo-fallback');
var ctx = canvas.getContext('2d'); var ctx = canvas.getContext('2d');
@@ -357,7 +363,6 @@
</script> </script>
<script> <script>
(function() { (function() {
if (window.matchMedia("(max-width: 600px)").matches) return;
var canvas = document.getElementById('copperbars'); var canvas = document.getElementById('copperbars');
var ctx = canvas.getContext('2d'); var ctx = canvas.getContext('2d');
var w, h; var w, h;