moves <main> from layout to individual pages

This commit is contained in:
2026-06-09 09:14:18 +01:00
parent 531c9d5a38
commit 3ecf19cb8a
4 changed files with 6 additions and 4 deletions
-4
View File
@@ -10,11 +10,7 @@ pp "${SHARE}"/components/head.upphtml
<body> <body>
#! #!
pp "${SHARE}"/components/navbar.upphtml pp "${SHARE}"/components/navbar.upphtml
#!
<main>
#!
pp "$1" pp "$1"
#! #!
</main>
</body> </body>
</html> </html>
+2
View File
@@ -8,6 +8,7 @@ pp "${SHARE}"/components/meta.upphtml
pp "${SHARE}"/components/otp-dialog.upphtml pp "${SHARE}"/components/otp-dialog.upphtml
#! #!
<main>
<form class=contact-form> <form class=contact-form>
<h1>Contact me</h1> <h1>Contact me</h1>
<p hidden class=error></p> <p hidden class=error></p>
@@ -94,3 +95,4 @@ pp "${SHARE}"/components/otp-dialog.upphtml
await submitOtpForm(selectors); await submitOtpForm(selectors);
}); });
</script> </script>
</main>
+2
View File
@@ -4,6 +4,7 @@ export DESCRIPTION="Error page for Joe Carstairs' personal website"
pp "${SHARE}"/components/meta.upphtml pp "${SHARE}"/components/meta.upphtml
#! #!
<main>
<section> <section>
<h1>Got lost?</h1> <h1>Got lost?</h1>
@@ -12,3 +13,4 @@ pp "${SHARE}"/components/meta.upphtml
my <a href='/'>homepage</a> instead. my <a href='/'>homepage</a> instead.
</p> </p>
</section> </section>
</main>
+2
View File
@@ -4,6 +4,7 @@ export DESCRIPTION="Joe Carstairs' personal website"
pp "${SHARE}"/components/meta.upphtml pp "${SHARE}"/components/meta.upphtml
#! #!
<main>
<section class="h-card"> <section class="h-card">
<div> <div>
<img class="u-photo" src="/images/headshot.webp" height="96" width="96" /> <img class="u-photo" src="/images/headshot.webp" height="96" width="96" />
@@ -45,3 +46,4 @@ pp "${SHARE}"/components/meta.upphtml
</p> </p>
</div> </div>
</section> </section>
</main>