Skip to content

Commit

Permalink
Merge pull request #74 from ConnectAI-E/Add-Document
Browse files Browse the repository at this point in the history
feat document
  • Loading branch information
mayfwl authored Sep 18, 2024
2 parents 55b4163 + 74322db commit 278632e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
22 changes: 22 additions & 0 deletions src/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,25 @@ export const BoxIcon: React.FC<IconSvgProps> = ({ size = 24, width, height, ...p
</svg>
);
};

export const SolarIcon: React.FC<IconSvgProps> = ({ size = 24, width, height, ...props }) => {
return (
<svg
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
height={size || height}
width={size || width}
{...props}
fill="currentColor"
>
<g fill="none" stroke="currentColor" stroke-width="1.5">
<path
stroke-linecap="round"
d="M19 16c0 2.828 0 4.243-.879 5.121C17.243 22 15.828 22 13 22h-2c-2.828 0-4.243 0-5.121-.879C5 20.243 5 18.828 5 16v-4m0-4c0-2.828 0-4.243.879-5.121C6.757 2 8.172 2 11 2h2c2.828 0 4.243 0 5.121.879C19 3.757 19 5.172 19 8v4"
/>
<path d="M5 4.076c-.975.096-1.631.313-2.121.803C2 5.757 2 7.172 2 10v4c0 2.828 0 4.243.879 5.121c.49.49 1.146.707 2.121.803M19 4.076c.975.096 1.631.313 2.121.803C22 5.757 22 7.172 22 10v4c0 2.828 0 4.243-.879 5.121c-.49.49-1.146.707-2.121.803" />
<path stroke-linecap="round" d="M9 13h6M9 9h6m-6 8h3" />
</g>
</svg>
);
};
1 change: 1 addition & 0 deletions src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ export const siteConfig = {
bilibili: 'https://www.bilibili.com/video/BV1se411n7tD/',
invitation:
'https://fork-way.feishu.cn/share/base/form/shrcnVMJP4h2BKi9zlnWEh7DOJB?iframeFrom=docx&ccm_open=iframe',
document: 'https://gitmaya-doc.netlify.app/',
},
};
6 changes: 3 additions & 3 deletions src/layout/narbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { link as linkStyles } from '@nextui-org/theme';

import { siteConfig } from '@/config';
import clsx from 'clsx';
import { GithubIcon, Logo, LarkWhiteIcon, BoxIcon } from '@/components/icons';
import { GithubIcon, Logo, LarkWhiteIcon, SolarIcon } from '@/components/icons';
// import { ThemeSwitch } from '@/components/theme-switch';
import { I18nSwitch } from '@/components/i18n-switch';

Expand Down Expand Up @@ -77,8 +77,8 @@ export const Navbar = () => {
<LarkWhiteIcon className="text-default-500" />
</span>
</Tooltip>
<Link isExternal href={siteConfig.links.invitation} target="_blank">
<BoxIcon className="text-default-500" />
<Link isExternal href={siteConfig.links.document} target="_blank">
<SolarIcon className="text-default-500" />
</Link>
{/* <ThemeSwitch /> */}
<I18nSwitch />
Expand Down

0 comments on commit 278632e

Please sign in to comment.