diff --git a/.dumi/theme/builtins/Center.less b/.dumi/theme/builtins/Center.less new file mode 100644 index 0000000..1948e24 --- /dev/null +++ b/.dumi/theme/builtins/Center.less @@ -0,0 +1,10 @@ +@import (reference) '../style/variables.less'; + +.@{prefix}-center { + text-align: center; + margin: 16px 0; + + h2 > a::after { + display: none !important; + } +} diff --git a/.dumi/theme/builtins/Center.tsx b/.dumi/theme/builtins/Center.tsx new file mode 100644 index 0000000..3222b1e --- /dev/null +++ b/.dumi/theme/builtins/Center.tsx @@ -0,0 +1,6 @@ +import React from 'react'; +import './Center.less'; + +export default (props: any) => ( +
+); diff --git a/.dumi/theme/layout.tsx b/.dumi/theme/layout.tsx new file mode 100644 index 0000000..d77c48b --- /dev/null +++ b/.dumi/theme/layout.tsx @@ -0,0 +1,128 @@ +import React, { useContext, useState, useEffect } from 'react'; +import { IRouteComponentProps } from '@umijs/types'; +import { context, Link } from 'dumi/theme'; +import Navbar from 'dumi-theme-default/src/components/Navbar'; +import SideMenu from 'dumi-theme-default/src/components/SideMenu'; +import SlugList from 'dumi-theme-default/src/components/SlugList'; +import SearchBar from 'dumi-theme-default/src/components/SearchBar'; +import './style/layout.less'; + +const Hero = hero => ( + <> +