Remove outdated article content and metadata

Update CSS grid layout for main content area

Add language-specific footer content
This commit is contained in:
Ruben 2025-10-02 20:16:18 +02:00
parent 8b3f9a56f2
commit 466c297fe4
8 changed files with 14 additions and 93 deletions

View file

@ -46,7 +46,7 @@ a {
align-items: stretch;
}
.contain, :where(main>article) {
.contain, :where(main>article, main>aside) {
display: grid;
grid-template-columns: minmax(.4rem, 1fr) minmax(0, 42rem) minmax(.3rem, 1fr);
> * {
@ -121,9 +121,8 @@ main {
background-color: var(--color-green-light);
padding-bottom: 2rem;
article, aside { margin-top: 1.3em }
article {
margin-top: 1.3em;
.intro {
font-size: 1.2rem;
line-height: 1.35em;
@ -138,16 +137,16 @@ main > article {
padding: 0;
margin-bottom: 1.5rem;
overflow: hidden;
> :not(img) {
padding-left: 1rem;
padding-right: 1rem;
}
h1 {
margin-top: 1rem;
}
p {
margin-bottom: 1rem;
}

View file

@ -51,9 +51,15 @@ function getActiveClass($href) { return rtrim(parse_url($_SERVER['REQUEST_URI'],
<footer>
<div class="contain">
<p><a rel="me" href="https://oslo.town/@stopplidelsen">Følg oss Mastodon</a></p>
<?php $endTime = microtime(true); $pageLoadTime = round(($endTime - $startTime) * 1000, 2); ?>
<p class="generated">Nettsiden er håndkodet av Ruben Solvang ved hjelp av HTML, CSS og minimale doser PHP. Det tok <?php echo $pageLoadTime; ?>ms å generere siden.</p>
<?php if ($currentLang === 'no'): ?>
<p><a rel="me" href="https://oslo.town/@stopplidelsen">Følg oss Mastodon</a></p>
<?php $endTime = microtime(true); $pageLoadTime = round(($endTime - $startTime) * 1000, 2); ?>
<p class="generated">Nettsiden er håndkodet av Ruben Solvang ved hjelp av HTML, CSS og minimale doser PHP. Det tok <?php echo $pageLoadTime; ?>ms å generere siden.</p>
<?php elseif ($currentLang === 'en'): ?>
<p><a rel="me" href="https://oslo.town/@stopplidelsen">Follow us on Mastodon</a></p>
<?php $endTime = microtime(true); $pageLoadTime = round(($endTime - $startTime) * 1000, 2); ?>
<p class="generated">This website was hand-coded by Ruben Solvang using HTML, CSS and minimal doses of PHP. It took <?php echo $pageLoadTime; ?>ms to generate this page.</p>
<?php endif; ?>
</div>
</footer>
</div>