Streamline navbar and index page about me
This commit is contained in:
parent
be1b0d608e
commit
b4c8c5170b
4 changed files with 67 additions and 58 deletions
|
@ -1,5 +1,4 @@
|
||||||
<script>
|
<script>
|
||||||
import { page } from "$app/state";
|
|
||||||
import links from "../../data/links.json";
|
import links from "../../data/links.json";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -9,7 +8,6 @@
|
||||||
<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 {
|
||||||
|
|
|
@ -33,7 +33,9 @@
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
{#if page.url.pathname !== "/"}
|
||||||
<Navbar/>
|
<Navbar/>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
|
|
||||||
|
|
|
@ -45,18 +45,19 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main id="main-content">
|
|
||||||
<header>
|
<header>
|
||||||
<h1 id="about-me">About Me</h1>
|
<img src="/favicon.png" alt="a black cat with large eyes"/>
|
||||||
<p>
|
<h1>pancakes</h1>
|
||||||
I'm a 22 year old enby (<em>they/it</em>) from Australia (it's
|
|
||||||
<DateTime display="time" timeZone="Australia/Brisbane"/>
|
|
||||||
). I like
|
|
||||||
cats, Linux, and programming in C# and Python (for now). You can
|
|
||||||
find my links, projects, and other pages here.
|
|
||||||
</p>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<main id="main-content">
|
||||||
|
<p>
|
||||||
|
I'm a cat <abbr title="non-binary">enby</abbr> (<abbr
|
||||||
|
title="they/them/their/theirs/themself or it/it/its/its/itself in English">they/it</abbr>) from Australia
|
||||||
|
that likes cats, Linux, and programming. You can find my
|
||||||
|
links, projects, and other pages here.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h2 id="accounts">Accounts</h2>
|
<h2 id="accounts">Accounts</h2>
|
||||||
|
|
||||||
<p>Other places you can find me</p>
|
<p>Other places you can find me</p>
|
||||||
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue