emmas.place/src/components/Navigation.astro

69 lines
1.6 KiB
Plaintext
Raw Normal View History

2025-02-19 20:01:04 -05:00
---
const backgroundColor = "#ffd4de";
const backgroundColorNightMode = "#240046";
2025-02-19 20:01:04 -05:00
---
<nav>
<h3>life of emma</h3>
<ul>
<li>
2025-03-03 20:05:14 -05:00
<a href="/life/self/">emma's self</a>
2025-02-19 20:01:04 -05:00
</li>
<li>
2025-03-10 03:16:27 -04:00
<a href="/life/interests/">emma's interests</a>
<!-- emma's interests -->
2025-02-19 20:01:04 -05:00
</li>
<li>
<!-- <a href="/life/sunshine/">emma's rays of sunshine</a> -->
emma's rays of sunshine
2025-02-19 20:01:04 -05:00
</li>
</ul>
<h3>site information</h3>
<ul>
<li><a href="/">home</a></li>
<li><a href="/site/about">about</a></li>
<li><a href="/site/why">why</a></li>
<li><a href="/site/who">who</a></li>
<li><a href="/site/other">other emma things</a></li>
<li><a href="/site/contact">contact</a></li>
<li><a href="/site/guestbook">guestbook</a></li>
2025-02-19 20:01:04 -05:00
</ul>
<h3>controls</h3>
<ul>
<li><a href="#top">top of page</a></li>
</ul>
2025-02-19 20:01:04 -05:00
</nav>
<style define:vars={{backgroundColor, backgroundColorNightMode}}>
2025-02-19 20:01:04 -05:00
nav {
background-color: var(--backgroundColor);
grid-row: 2/3;
grid-column: 1/2;
width: 20vw;
2025-02-26 06:27:29 -05:00
height: 70vh;
2025-02-19 20:01:04 -05:00
font-family: system-ui;
letter-spacing: 0.05rem;
2025-02-26 06:27:29 -05:00
position: sticky;
top: 0;
margin-left: 2rem;
2025-02-19 20:01:04 -05:00
padding-top: 0.75rem;
padding-left: 1.5rem;
2025-02-26 06:27:29 -05:00
border-radius: 25px;
2025-02-19 20:01:04 -05:00
}
nav ul li {
2025-02-26 06:27:29 -05:00
padding-bottom: 0.33rem;
2025-03-10 06:49:23 -04:00
padding-left: 0.5rem
2025-02-19 20:01:04 -05:00
}
nav ul li a {
font-size: 1rem;
}
@media (prefers-color-scheme: dark) {
nav {
background-color: var(--backgroundColorNightMode);
}
}
2025-02-19 20:01:04 -05:00
</style>