1
0
Fork 0
mirror of https://github.com/kou029w/quot.git synced 2025-01-18 16:08:03 +00:00

header layout

This commit is contained in:
Nebel 2022-08-31 13:00:45 +09:00
parent bd57d3564b
commit d94e5a07e5
2 changed files with 12 additions and 4 deletions

View file

@ -19,11 +19,19 @@ header {
justify-content: space-evenly;
}
header h1 {
margin: 0;
}
header h1 > a,
header h1 > a:hover {
color: var(--nc-ac-1);
}
header nav > * {
font-size: 1.55rem;
}
a[href^="/"] {
text-decoration: none;
}

View file

@ -35,12 +35,12 @@ export default () => {
<h1>
<a href="/">Quot</a>
</h1>
<a href="/new">📄</a>
<nav>
<a href="/new">📄</a>
</nav>
</header>
{routes[pathname()] ?? (
<Page
id={parseInt(pathname().slice(1), 16) || random()}
/>
<Page id={parseInt(pathname().slice(1), 16) || random()} />
)}
</>
);