docs: add github/download buttons to pages header
parent
6bf8c0c17a
commit
3791db006e
|
|
@ -51,16 +51,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="titlebar__actions">
|
<div class="titlebar__actions">
|
||||||
<button
|
<a class="titlebar__link" href="https://github.com/steipete/clawdis">GitHub</a>
|
||||||
class="theme-toggle"
|
<a class="titlebar__link titlebar__link--accent" href="https://github.com/steipete/clawdis/releases/latest">Download</a>
|
||||||
type="button"
|
|
||||||
data-theme-toggle
|
|
||||||
aria-label="Toggle theme (F2; on Mac: fn+F2)"
|
|
||||||
aria-pressed="false"
|
|
||||||
>
|
|
||||||
<span class="theme-toggle__key">F2</span>
|
|
||||||
<span class="theme-toggle__label" data-theme-label>theme</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -124,10 +116,22 @@
|
||||||
<span class="footer__sep">·</span>
|
<span class="footer__sep">·</span>
|
||||||
<a href="https://github.com/steipete/clawdis/releases">releases</a>
|
<a href="https://github.com/steipete/clawdis/releases">releases</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer__hint" aria-hidden="true">
|
<div class="footer__hint" aria-hidden="true">
|
||||||
tip: press <kbd>F2</kbd> (Mac: <kbd>fn</kbd>+<kbd>F2</kbd>) to flip
|
tip: press <kbd>F2</kbd> (Mac: <kbd>fn</kbd>+<kbd>F2</kbd>) to flip
|
||||||
the universe
|
the universe
|
||||||
</div>
|
</div>
|
||||||
|
<div class="footer__actions">
|
||||||
|
<button
|
||||||
|
class="theme-toggle"
|
||||||
|
type="button"
|
||||||
|
data-theme-toggle
|
||||||
|
aria-label="Toggle theme (F2; on Mac: fn+F2)"
|
||||||
|
aria-pressed="false"
|
||||||
|
>
|
||||||
|
<span class="theme-toggle__key">F2</span>
|
||||||
|
<span class="theme-toggle__label" data-theme-label>theme</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -210,6 +210,44 @@ body::after {
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.titlebar__link {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 9px 12px;
|
||||||
|
border-radius: 12px;
|
||||||
|
background: color-mix(in oklab, var(--panel) 92%, transparent);
|
||||||
|
border: var(--border) solid var(--frame-border);
|
||||||
|
color: var(--text);
|
||||||
|
text-decoration: none;
|
||||||
|
font-family: var(--font-pixel);
|
||||||
|
letter-spacing: 0.12em;
|
||||||
|
font-size: 12px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
box-shadow: 0 6px 0 -3px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar__link:hover {
|
||||||
|
border-color: color-mix(in oklab, var(--accent2) 45%, transparent);
|
||||||
|
box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent2) 30%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar__link:active {
|
||||||
|
transform: translateY(1px);
|
||||||
|
box-shadow: 0 4px 0 -3px rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar__link:focus-visible {
|
||||||
|
outline: 3px solid color-mix(in oklab, var(--accent2) 60%, transparent);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar__link--accent {
|
||||||
|
background:
|
||||||
|
linear-gradient(120deg, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%),
|
||||||
|
color-mix(in oklab, var(--panel) 88%, transparent);
|
||||||
|
border-color: color-mix(in oklab, var(--accent) 60%, var(--frame-border));
|
||||||
|
}
|
||||||
|
|
||||||
.theme-toggle {
|
.theme-toggle {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
@ -393,6 +431,12 @@ body::after {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer__actions {
|
||||||
|
margin-top: 14px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
.terminal__footer a {
|
.terminal__footer a {
|
||||||
color: var(--link);
|
color: var(--link);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue