Documentation site of NextGraph.org
https://docs.nextgraph.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
3.2 KiB
101 lines
3.2 KiB
---
|
|
import ThemeToggleButton from "./ThemeToggleButton";
|
|
import * as CONFIG from "../../config";
|
|
|
|
type Props = {
|
|
editHref: string;
|
|
};
|
|
|
|
const { editHref } = Astro.props as Props;
|
|
const showMoreSection = CONFIG.COMMUNITY_INVITE_URL;
|
|
---
|
|
|
|
{showMoreSection && <h2 class="heading">More</h2>}
|
|
<ul>
|
|
{
|
|
editHref && (
|
|
<li class={`heading-link depth-2`}>
|
|
<a class="edit-on-github" href={editHref} target="_blank">
|
|
<svg
|
|
aria-hidden="true"
|
|
focusable="false"
|
|
data-prefix="fas"
|
|
data-icon="pen"
|
|
class="svg-inline--fa fa-pen fa-w-16"
|
|
role="img"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 512 512"
|
|
height="1em"
|
|
width="1em"
|
|
>
|
|
<path
|
|
fill="currentColor"
|
|
d="M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"
|
|
/>
|
|
</svg>
|
|
<span>Edit this page</span>
|
|
</a>
|
|
</li>
|
|
)
|
|
}
|
|
{
|
|
CONFIG.COMMUNITY_INVITE_URL && (
|
|
<li class={`heading-link depth-2`}>
|
|
<a href={CONFIG.COMMUNITY_INVITE_URL} target="_blank">
|
|
<svg
|
|
aria-hidden="true"
|
|
focusable="false"
|
|
data-prefix="fas"
|
|
data-icon="comment-alt"
|
|
class="svg-inline--fa fa-comment-alt fa-w-16"
|
|
role="img"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 512 512"
|
|
height="1em"
|
|
width="1em"
|
|
>
|
|
<path
|
|
fill="currentColor"
|
|
d="M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"
|
|
/>
|
|
</svg>
|
|
<span>Join our community</span>
|
|
</a>
|
|
</li>
|
|
)
|
|
}
|
|
<li class={`heading-link depth-2`}>
|
|
<a href="https://nextgraph.org" target="_blank">
|
|
<svg
|
|
aria-hidden="true"
|
|
focusable="false"
|
|
data-prefix="fas"
|
|
data-icon="home"
|
|
class="svg-inline--fa fa-home fa-w-16"
|
|
role="img"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 576 512"
|
|
height="1em"
|
|
width="1em"
|
|
>
|
|
<path
|
|
fill="currentColor"
|
|
d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"
|
|
></path>
|
|
</svg>
|
|
<span>nextgraph.org</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<div style="margin: 2rem 0; text-align: center;">
|
|
<ThemeToggleButton client:visible />
|
|
</div>
|
|
|
|
<style>
|
|
.edit-on-github {
|
|
text-decoration: none;
|
|
font: inherit;
|
|
color: inherit;
|
|
font-size: 1rem;
|
|
}
|
|
</style>
|
|
|