first commit
This commit is contained in:
5
app/components/CustomFooter.tsx
Normal file
5
app/components/CustomFooter.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Footer } from "nextra-theme-docs";
|
||||
|
||||
export const CustomFooter = () => (
|
||||
<Footer>MIT © {new Date().getFullYear()} Nextra Template Docs.</Footer>
|
||||
);
|
||||
18
app/components/CustomNavbar.tsx
Normal file
18
app/components/CustomNavbar.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Navbar } from "nextra-theme-docs";
|
||||
import { DiscordIcon } from "nextra/icons";
|
||||
import { Logo } from "./Logo";
|
||||
import { CustomGiteaIcon } from "./icons/CustomGiteaIcon";
|
||||
import { CustomGitHubIcon } from "./icons/CustomGitHubIcon";
|
||||
import { CustomGiteeIcon } from "./icons/CustomGiteeIcon";
|
||||
|
||||
export const CustomNavbar = () => (
|
||||
<Navbar
|
||||
logo={<Logo />}
|
||||
logoLink="/"
|
||||
projectLink="https://gitea.shenjianl.cn/shenjianZ/nextra-docs-template"
|
||||
projectIcon={<CustomGiteaIcon />}
|
||||
chatLink="https://discord.gg/your-server"
|
||||
chatIcon={<DiscordIcon />}
|
||||
align="right"
|
||||
/>
|
||||
);
|
||||
13
app/components/Logo.tsx
Normal file
13
app/components/Logo.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
export const Logo = () => (
|
||||
<>
|
||||
<svg width="24" height="24" viewBox="0 0 24 24">
|
||||
<path
|
||||
fill="currentColor"
|
||||
d="M14.683 14.828a4.055 4.055 0 0 1-1.272.858a4.002 4.002 0 0 1-4.875-1.45l-1.658 1.119a6.063 6.063 0 0 0 1.621 1.62a5.963 5.963 0 0 0 2.148.903a6.035 6.035 0 0 0 3.542-.35a6.048 6.048 0 0 0 1.907-1.284c.272-.271.52-.571.734-.889l-1.658-1.119a4.147 4.147 0 0 1-.489.592z M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10s10-4.486 10-10S17.514 2 12 2zm0 2c2.953 0 5.531 1.613 6.918 4H5.082C6.469 5.613 9.047 4 12 4zm0 16c-4.411 0-8-3.589-8-8c0-.691.098-1.359.264-2H5v1a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2h2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-1h.736c.166.641.264 1.309.264 2c0 4.411-3.589 8-8 8z"
|
||||
/>
|
||||
</svg>
|
||||
<span style={{ marginLeft: ".4em", fontWeight: 800 }}>
|
||||
Nextra Template Docs
|
||||
</span>
|
||||
</>
|
||||
);
|
||||
11
app/components/icons/CustomGitHubIcon.tsx
Normal file
11
app/components/icons/CustomGitHubIcon.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
export const CustomGitHubIcon = () => (
|
||||
<svg
|
||||
width="24"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path d="M12 0.2975C5.3725 0.2975 0 5.67 0 12.2975C0 17.6175 3.438 22.0975 8.205 23.6475C8.805 23.7575 9.025 23.4075 9.025 23.0975C9.025 22.8175 9.015 22.0675 9.01 21.1275C5.6725 21.7975 4.9675 19.5675 4.9675 19.5675C4.4225 18.1475 3.6325 17.7575 3.6325 17.7575C2.5475 17.0375 3.7175 17.0575 3.7175 17.0575C4.9225 17.1475 5.5525 18.2975 5.5525 18.2975C6.6225 20.1075 8.3925 19.5675 9.0725 19.2475C9.1825 18.4675 9.4825 17.9575 9.8225 17.6475C7.1525 17.3375 4.3425 16.2675 4.3425 11.5975C4.3425 10.2775 4.7825 9.1975 5.5525 8.3575C5.4225 8.0475 5.0425 6.8175 5.6625 5.1375C5.6625 5.1375 6.6825 4.7975 9.0025 6.3875C9.9725 6.1075 11.0025 5.9675 12.0325 5.9625C13.0625 5.9675 14.0925 6.1075 15.0625 6.3875C17.3825 4.7975 18.4025 5.1375 18.4025 5.1375C19.0225 6.8175 18.6425 8.0475 18.5125 8.3575C19.2825 9.1975 19.7225 10.2775 19.7225 11.5975C19.7225 16.2775 16.9025 17.3325 14.2225 17.6425C14.6625 18.0075 15.0625 18.7075 15.0625 19.7975C15.0625 21.3575 15.0525 22.6075 15.0525 23.0975C15.0525 23.4075 15.2625 23.7675 15.8725 23.6475C20.6425 22.0975 24.0825 17.6175 24.0825 12.2975C24.0825 5.67 18.71 0.2975 12 0.2975Z" />
|
||||
</svg>
|
||||
);
|
||||
14
app/components/icons/CustomGiteaIcon.tsx
Normal file
14
app/components/icons/CustomGiteaIcon.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
export const CustomGiteaIcon = () => (
|
||||
<svg
|
||||
className="icon"
|
||||
viewBox="0 0 1024 1024"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="32"
|
||||
height="32"
|
||||
>
|
||||
<path
|
||||
d="M178.592 231.296c-78.72-0.16-184.16 49.888-178.336 175.36 9.088 196 209.92 214.176 290.176 215.776 8.8 36.768 103.264 163.584 173.184 170.24h306.336c183.712-12.192 321.28-555.616 219.296-557.664-168.672 7.936-268.64 11.936-354.336 12.64v169.6l-26.72-11.808-0.16-157.696c-98.4-0.032-184.992-4.608-349.408-12.704-20.576-0.128-49.248-3.616-80.032-3.712z m11.136 69.344h9.376c11.168 100.48 29.344 159.232 66.144 248.992-93.856-11.104-173.728-38.368-188.416-140.16-7.584-52.704 18.016-107.68 112.896-108.832z m365.12 98.752c6.4 0.096 12.928 1.28 19.072 4.096l31.968 13.792-22.912 41.76h-0.224a31.872 31.872 0 0 0-10.272 1.696l0.192-0.064c-11.168 3.648-18.976 12.992-18.976 23.968 0 3.104 0.608 6.048 1.76 8.8l-0.064-0.192a24.544 24.544 0 0 0 4.832 7.456l-0.032-0.032-39.52 71.936a31.68 31.68 0 0 0-9.664 1.664l0.192-0.064c-11.168 3.648-18.976 12.992-18.976 23.968 0 3.104 0.608 6.048 1.76 8.8l-0.064-0.192c4.096 9.92 14.624 16.864 26.976 16.864a31.584 31.584 0 0 0 9.92-1.568l-0.192 0.064c11.136-3.648 18.944-12.992 18.944-23.968 0-3.104-0.64-6.08-1.792-8.864l0.064 0.192a25.088 25.088 0 0 0-6.752-9.376l38.496-70.048a31.968 31.968 0 0 0 12.704-1.312l-0.192 0.064a30.144 30.144 0 0 0 9.12-4.8l-0.032 0.032c14.848 6.24 27.008 11.296 35.744 15.616 13.152 6.496 17.792 10.784 19.2 15.584 1.408 4.704-0.128 13.728-7.552 29.6-5.536 11.808-14.72 28.576-25.568 48.352h-0.64a31.712 31.712 0 0 0-10.272 1.696l0.192-0.064c-11.168 3.648-18.976 12.992-18.976 23.968 0 3.104 0.608 6.048 1.76 8.8l-0.064-0.192c4.096 9.92 14.624 16.864 26.976 16.864a31.584 31.584 0 0 0 9.92-1.568l-0.192 0.064c11.136-3.648 18.944-12.992 18.944-23.968a22.496 22.496 0 0 0-1.76-8.8l0.064 0.192a25.664 25.664 0 0 0-5.856-8.64l0.032 0.032c10.72-19.552 19.936-36.352 25.856-48.992 8.032-17.152 12.192-29.92 8.544-42.24s-14.944-20.352-29.856-27.744c-9.824-4.832-22.048-9.952-36.704-16.096a23.136 23.136 0 0 0-1.664-10.368l0.064 0.192a25.344 25.344 0 0 0-6.208-8.928l22.528-41.088 124.768 53.888c22.528 9.76 31.84 33.696 20.896 ... [truncated]"
|
||||
fill="#609926"
|
||||
></path>
|
||||
</svg>
|
||||
);
|
||||
14
app/components/icons/CustomGiteeIcon.tsx
Normal file
14
app/components/icons/CustomGiteeIcon.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
export const CustomGiteeIcon = () => (
|
||||
<svg
|
||||
className="icon"
|
||||
viewBox="0 0 1024 1024"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="32"
|
||||
height="32"
|
||||
>
|
||||
<path
|
||||
d="M512 1024C229.222 1024 0 794.778 0 512S229.222 0 512 0s512 229.222 512 512-229.222 512-512 512z m259.149-568.883h-290.74a25.293 25.293 0 0 0-25.292 25.293l-0.026 63.206c0 13.952 11.315 25.293 25.267 25.293h177.024c13.978 0 25.293 11.315 25.293 25.267v12.646a75.853 75.853 0 0 1-75.853 75.853h-240.23a25.293 25.293 0 0 1-25.267-25.293V417.203a75.853 75.853 0 0 1 75.827-75.853h353.946a25.293 25.293 0 0 0 25.267-25.292l0.077-63.207a25.293 25.293 0 0 0-25.268-25.293H417.152a189.62 189.62 0 0 0-189.62 189.645V771.15c0 13.977 11.316 25.293 25.294 25.293h372.94a170.65 170.65 0 0 0 170.65-170.65V480.384a25.293 25.293 0 0 0-25.293-25.267z"
|
||||
fill="#C71D23"
|
||||
></path>
|
||||
</svg>
|
||||
);
|
||||
4
app/components/sidebar.ts
Normal file
4
app/components/sidebar.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const sidebar = {
|
||||
defaultMenuCollapseLevel: 1,
|
||||
autoCollapse: true,
|
||||
};
|
||||
Reference in New Issue
Block a user