Streamline navbar and index page about me

This commit is contained in:
pancakes 2025-08-20 17:54:39 +10:00
parent be1b0d608e
commit b4c8c5170b
Signed by: pancakes
SSH key fingerprint: SHA256:yrp4c4hhaPoPG07fb4QyQIgAdlbUdsJvUAydJEWnfTw
4 changed files with 67 additions and 58 deletions

View file

@ -1,15 +1,13 @@
<script> <script>
import { page } from "$app/state";
import links from "../../data/links.json"; import links from "../../data/links.json";
</script> </script>
<a href="#main-content" class="skip-to-main">Skip to main content</a> <a href="#main-content" class="skip-to-main">Skip to main content</a>
<nav> <nav>
<span class="brand icon-link"> <span class="brand icon-link">
<img src="/favicon.png" alt="a black cat with large eyes" /> <img src="/favicon.png" alt="a black cat with large eyes"/>
<a href="/">pancakes</a> <a href="/">pancakes</a>
</span> </span>
{#if page.url.pathname !== "/"}
<ul class="links"> <ul class="links">
{#each links as link} {#each links as link}
{#if link.href && !link.mainOnly} {#if link.href && !link.mainOnly}
@ -28,7 +26,6 @@
{/if} {/if}
{/each} {/each}
</ul> </ul>
{/if}
</nav> </nav>
<style> <style>
@ -64,8 +61,17 @@
list-style: none; list-style: none;
} }
a { .icon-link > a {
color: var(--text); padding-left: 0.15rem;
line-height: 2em;
}
.icon-link > img {
display: inline-block;
width: 2em;
max-height: 2em;
vertical-align: middle;
margin-right: 0.25rem;
} }
.brand { .brand {

View file

@ -1,5 +1,5 @@
<script> <script>
import { page } from "$app/state"; import {page} from "$app/state";
import Footer from "$lib/components/Footer.svelte"; import Footer from "$lib/components/Footer.svelte";
import Navbar from "$lib/components/Navbar.svelte"; import Navbar from "$lib/components/Navbar.svelte";
import "./inter.css"; import "./inter.css";
@ -10,31 +10,33 @@
*/ */
/** @type {Props} */ /** @type {Props} */
let { children } = $props(); let {children} = $props();
</script> </script>
<svelte:head> <svelte:head>
<title> <title>
{page.data.title ? page.data.title + " | pancakes" : "pancakes"} {page.data.title ? page.data.title + " | pancakes" : "pancakes"}
</title> </title>
<meta name="description" content={page.data.description || "🐈‍⬛"} /> <meta name="description" content={page.data.description || "🐈‍⬛"}/>
<meta property="og:site_name" content="pancakes" /> <meta property="og:site_name" content="pancakes"/>
<meta <meta
property="og:url" property="og:url"
content={"https://pancakes.gay" + page.url.pathname} content={"https://pancakes.gay" + page.url.pathname}
/> />
<meta property="og:title" content={page.data.title || "pancakes"} /> <meta property="og:title" content={page.data.title || "pancakes"}/>
{#if page.data.header} {#if page.data.header}
<meta property="og:type" content="article" /> <meta property="og:type" content="article"/>
{:else} {:else}
<meta property="og:type" content="website" /> <meta property="og:type" content="website"/>
<meta property="og:image" content="/favicon.png" /> <meta property="og:image" content="/favicon.png"/>
<meta property="og:image:alt" content="a black cat with large eyes" /> <meta property="og:image:alt" content="a black cat with large eyes"/>
{/if} {/if}
</svelte:head> </svelte:head>
<Navbar /> {#if page.url.pathname !== "/"}
<Navbar/>
{/if}
{@render children?.()} {@render children?.()}
<Footer /> <Footer/>

View file

@ -45,17 +45,18 @@
} }
</script> </script>
<header>
<img src="/favicon.png" alt="a black cat with large eyes"/>
<h1>pancakes</h1>
</header>
<main id="main-content"> <main id="main-content">
<header>
<h1 id="about-me">About Me</h1>
<p> <p>
I'm a 22 year old enby (<em>they/it</em>) from Australia (it's I'm a cat <abbr title="non-binary">enby</abbr> (<abbr
<DateTime display="time" timeZone="Australia/Brisbane"/> title="they/them/their/theirs/themself or it/it/its/its/itself in English">they/it</abbr>) from Australia
). I like that likes cats, Linux, and programming. You can find my
cats, Linux, and programming in C# and Python (for now). You can links, projects, and other pages here.
find my links, projects, and other pages here.
</p> </p>
</header>
<h2 id="accounts">Accounts</h2> <h2 id="accounts">Accounts</h2>
@ -500,6 +501,16 @@
</main> </main>
<style> <style>
header {
padding-top: 4rem;
text-align: center;
}
header img {
height: 8rem;
border-radius: var(--radius);
}
.account-links { .account-links {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View file

@ -176,6 +176,10 @@ a.button {
text-decoration: none; text-decoration: none;
} }
abbr[title] {
cursor: help;
}
input[type="text"] { input[type="text"] {
padding: 0.5em; padding: 0.5em;
@ -210,20 +214,6 @@ table.rows tbody tr:nth-child(2n) {
background-color: transparent; background-color: transparent;
} }
.icon-link > a,
.icon-link > span {
padding-left: 0.15rem;
line-height: 2em;
}
.icon-link > img {
display: inline-block;
width: 2em;
max-height: 2em;
vertical-align: middle;
margin-right: 0.25rem;
}
.upper { .upper {
text-transform: uppercase; text-transform: uppercase;
} }