diff --git a/website/src/component/Container/index.module.less b/website/src/component/Container/index.module.less index 870199113..22a24f0b5 100644 --- a/website/src/component/Container/index.module.less +++ b/website/src/component/Container/index.module.less @@ -1,9 +1,9 @@ .warpper { - max-width: 1024px; margin: 0 auto; - padding-top: 30px; - padding-bottom: 60px; display: flex; - padding-left: 10px; - padding-right: 10px; + padding-top: 60px; } + +.content { + padding: 30px 26px 60px 26px; +} \ No newline at end of file diff --git a/website/src/component/Container/index.tsx b/website/src/component/Container/index.tsx index dfb69d79d..ccf2449f3 100644 --- a/website/src/component/Container/index.tsx +++ b/website/src/component/Container/index.tsx @@ -16,7 +16,7 @@ export default function Container(props: ContainerProps) { {data && data.length > 0 && ( )} -
+
{children}
diff --git a/website/src/component/Header/index.module.less b/website/src/component/Header/index.module.less index a17d1ae56..47c39888e 100644 --- a/website/src/component/Header/index.module.less +++ b/website/src/component/Header/index.module.less @@ -2,6 +2,11 @@ box-shadow: 0 4px 13px -3px rgb(0 0 0 / 10%); border-bottom: 1px solid #d2d2d2; padding: 0 26px 0 22px; + backdrop-filter: saturate(180%) blur(0.4rem); + background-color: hsla(0, 0%, 100%, .75); + position: fixed; + z-index: 1; + width: 100%; } .inner { diff --git a/website/src/component/Header/index.tsx b/website/src/component/Header/index.tsx index 40ba583db..135e0749e 100644 --- a/website/src/component/Header/index.tsx +++ b/website/src/component/Header/index.tsx @@ -17,6 +17,7 @@ export default function Header() { 首页 文档 RN组件 + 问题反馈 Web 组件 GitHub diff --git a/website/src/component/Markdown/index.tsx b/website/src/component/Markdown/index.tsx index 3e88d0837..4a1796174 100644 --- a/website/src/component/Markdown/index.tsx +++ b/website/src/component/Markdown/index.tsx @@ -4,13 +4,13 @@ import MarkdownPreview from '@uiw/react-markdown-preview'; import rehypeAttr from 'rehype-attr'; import { useEffect } from 'react'; -export interface MarkdownProps { +export interface MarkdownProps extends React.HTMLAttributes { path?: string; renderPage?: () => Promise; } export default function Markdown(props: MarkdownProps) { - const { renderPage } = props; + const { renderPage, style } = props; const [mdStr, setMdStr] = useState(''); useEffect(() => { if (renderPage) { @@ -23,7 +23,7 @@ export default function Markdown(props: MarkdownProps) { // eslint-disable-next-line react-hooks/exhaustive-deps }, []) return ( -
+
-
+
{data.map((data, key) => { if (data.divider) { return
{data.name}
diff --git a/website/src/routes/menus.ts b/website/src/routes/menus.ts index d56c4930c..17bbcec35 100644 --- a/website/src/routes/menus.ts +++ b/website/src/routes/menus.ts @@ -2,7 +2,7 @@ import { MenuData } from '../component/SubMenus'; export const componentMenus: MenuData[] = [ { path: '/components/about', name: '关于 UIW' }, - { href: 'https://github.com/uiwjs/react-native-uiw/releases', name: '更新日志' }, + { href: 'https://github.com/uiwjs/react-native-uiw/releases', target: '_blank', name: '更新日志' }, { divider: true, name: "通用" }, { path: "/components/button", name: "Button 按钮" }, { path: "/components/icon", name: "Icon 图标" },