Move Aetheria GitHub icon to masthead
This commit is contained in:
parent
37230b8a48
commit
f1fc8bfb38
2 changed files with 43 additions and 23 deletions
|
|
@ -70,13 +70,29 @@ export default (() => {
|
|||
|
||||
return (
|
||||
<section class="aetheria-titlebar">
|
||||
<div class="aetheria-titlebar-copy">
|
||||
<p class="aetheria-titlebar-title">
|
||||
<a href={resolveRelative(currentSlug, "index" as FullSlug)}>
|
||||
Aetheria
|
||||
<div class="aetheria-titlebar-top">
|
||||
<div class="aetheria-titlebar-copy">
|
||||
<p class="aetheria-titlebar-title">
|
||||
<a href={resolveRelative(currentSlug, "index" as FullSlug)}>
|
||||
Aetheria
|
||||
</a>
|
||||
</p>
|
||||
{tagline && <p class="aetheria-titlebar-tagline">{tagline}</p>}
|
||||
</div>
|
||||
<div class="aetheria-titlebar-community" aria-label="Aetheria community links">
|
||||
<a
|
||||
href={githubUrl}
|
||||
class="aetheria-nav-icon"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label="GitHub"
|
||||
title="GitHub"
|
||||
>
|
||||
<svg viewBox={githubIcon.viewBox} aria-hidden="true">
|
||||
<path d={githubIcon.path} />
|
||||
</svg>
|
||||
</a>
|
||||
</p>
|
||||
{tagline && <p class="aetheria-titlebar-tagline">{tagline}</p>}
|
||||
</div>
|
||||
</div>
|
||||
<nav class="aetheria-titlebar-nav" aria-label="Aetheria sections">
|
||||
{routes.map((route) => {
|
||||
|
|
@ -90,18 +106,6 @@ export default (() => {
|
|||
</a>
|
||||
)
|
||||
})}
|
||||
<a
|
||||
href={githubUrl}
|
||||
class="aetheria-nav-icon"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
aria-label="GitHub"
|
||||
title="GitHub"
|
||||
>
|
||||
<svg viewBox={githubIcon.viewBox} aria-hidden="true">
|
||||
<path d={githubIcon.path} />
|
||||
</svg>
|
||||
</a>
|
||||
</nav>
|
||||
</section>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -122,10 +122,18 @@ body {
|
|||
min-width: 0;
|
||||
}
|
||||
|
||||
.aetheria-titlebar-top {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
min-width: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.aetheria-titlebar-copy {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.18rem;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.aetheria-titlebar-title,
|
||||
|
|
@ -180,12 +188,20 @@ body {
|
|||
color: #fff3e8;
|
||||
}
|
||||
|
||||
.aetheria-titlebar-community {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin-left: auto;
|
||||
flex: 0 0 auto;
|
||||
padding-top: 0.1rem;
|
||||
}
|
||||
|
||||
.aetheria-nav-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.35rem;
|
||||
height: 2.15rem;
|
||||
width: 4.7rem;
|
||||
height: 4.7rem;
|
||||
padding: 0;
|
||||
color: rgba(236, 242, 250, 0.96);
|
||||
line-height: 0;
|
||||
|
|
@ -194,10 +210,10 @@ body {
|
|||
|
||||
.aetheria-nav-icon svg {
|
||||
display: block;
|
||||
width: 1.7rem;
|
||||
height: 1.7rem;
|
||||
width: 3.5rem;
|
||||
height: 3.5rem;
|
||||
fill: currentColor;
|
||||
filter: drop-shadow(0 0 0.55rem rgba(89, 183, 255, 0.32));
|
||||
filter: drop-shadow(0 0 0.7rem rgba(89, 183, 255, 0.32));
|
||||
}
|
||||
|
||||
.aetheria-nav-icon:hover,
|
||||
|
|
|
|||
Loading…
Reference in a new issue