diff --git a/.dumi/theme/layout.tsx b/.dumi/theme/layout.tsx
index 035dad2..2b091ca 100644
--- a/.dumi/theme/layout.tsx
+++ b/.dumi/theme/layout.tsx
@@ -5,6 +5,7 @@ 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 { Popover } from 'antd';
import Notice from './Notice';
import './style/layout.less';
@@ -24,6 +25,30 @@ const Hero = hero => (
>
);
+const WaimaiBanner = () => (
+
+
+ 天天有点券
+
+ >
+ }
+ trigger="hover"
+ >
+
+
+
+
+);
+
const Features = features => (
{features.map(feat => (
@@ -87,7 +112,12 @@ const Layout: React.FC
= ({ children, location }) => {
>
}
+ navPrefix={
+
+
+
+
+ }
onMobileMenuClick={ev => {
setMenuCollapsed(val => !val);
ev.stopPropagation();
diff --git a/.dumi/theme/style/layout.less b/.dumi/theme/style/layout.less
index 8376fb0..9d75220 100644
--- a/.dumi/theme/style/layout.less
+++ b/.dumi/theme/style/layout.less
@@ -157,6 +157,7 @@ body {
a dt {
color: @c-link;
transition: opacity 0.2s;
+
&:hover {
opacity: 0.7;
text-decoration: underline;
@@ -320,3 +321,30 @@ body {
#vcomments {
margin-top: 20px;
}
+
+.waimai-banner {
+ display: inline-block;
+ vertical-align: middle;
+
+ .waimai-banner-img {
+ height: 64px;
+ cursor: pointer;
+ }
+
+ .waimai-banner-tiny-img {
+ cursor: pointer;
+ height: 50px;
+ display: none;
+ margin-left: 20px;
+ }
+
+ @media @mobile {
+ .waimai-banner-img {
+ display: none;
+ }
+
+ .waimai-banner-tiny-img {
+ display: block;
+ }
+ }
+}
diff --git a/public/images/mini-waimai.jpg b/public/images/mini-waimai.jpg
new file mode 100644
index 0000000..3a7db80
Binary files /dev/null and b/public/images/mini-waimai.jpg differ
diff --git a/public/images/waimai-banner-sm.png b/public/images/waimai-banner-sm.png
new file mode 100644
index 0000000..4fb0dfd
Binary files /dev/null and b/public/images/waimai-banner-sm.png differ
diff --git a/public/images/waimai-banner.png b/public/images/waimai-banner.png
new file mode 100644
index 0000000..5169f14
Binary files /dev/null and b/public/images/waimai-banner.png differ