Fix navbar issues and styling
This commit is contained in:
parent
1013f18082
commit
92ee5122ea
3 changed files with 27 additions and 13 deletions
|
@ -20,6 +20,7 @@
|
||||||
"href": "https://github.com/pancakesmeow",
|
"href": "https://github.com/pancakesmeow",
|
||||||
"icon": "github-mark.png",
|
"icon": "github-mark.png",
|
||||||
"iconInvert": true,
|
"iconInvert": true,
|
||||||
|
"mainOnly": true,
|
||||||
"name": "GitHub (inactive)",
|
"name": "GitHub (inactive)",
|
||||||
"username": "pancakesmeow"
|
"username": "pancakesmeow"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import links from "../../data/links.json";
|
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
|
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>
|
||||||
|
@ -10,19 +10,22 @@
|
||||||
<a href="/">pancakes</a>
|
<a href="/">pancakes</a>
|
||||||
</span>
|
</span>
|
||||||
{#if $page.url.pathname !== "/"}
|
{#if $page.url.pathname !== "/"}
|
||||||
<ul>
|
<ul class="links">
|
||||||
{#each links as link}
|
{#each links as link}
|
||||||
<li>
|
{#if link.href && !link.mainOnly}
|
||||||
<div class="icon-link">
|
<li>
|
||||||
<img
|
<div class="icon-link">
|
||||||
src={"/assets/icons/" + link.icon}
|
<img
|
||||||
alt={link.name}
|
class={link.iconInvert ? "invert" : ""}
|
||||||
/>
|
src={"/assets/icons/" + link.icon}
|
||||||
<a href={link.href} target="_blank">
|
alt={link.name}
|
||||||
{link.name}
|
/>
|
||||||
</a>
|
<a href={link.href} target="_blank">
|
||||||
</div>
|
{link.name}
|
||||||
</li>
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -137,6 +137,16 @@ main:first-of-type {
|
||||||
max-width: 768px;
|
max-width: 768px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
max-width: 768px;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav .links {
|
||||||
|
font-size: small;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
border-bottom: 2px solid var(--accent-2);
|
border-bottom: 2px solid var(--accent-2);
|
||||||
font-size: xx-large;
|
font-size: xx-large;
|
||||||
|
|
Loading…
Reference in a new issue