Skip to content

Commit

Permalink
官网首页右边添加菜单栏 #210
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhipei committed Apr 17, 2024
1 parent ed3a585 commit 10edecd
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 1 deletion.
Binary file added public/img/demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/mobile_consultation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/online_consultation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/img/qywx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions src/components/FloatingMenu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from 'react';
// import Head from 'next/head';

export const FloatingMenu = function () {
return (
<div class="fixed top-1/2 right-4 transform -translate-y-1/2 bg-white p-4 rounded-full shadow-lg z-10 flex flex-col items-center space-y-2">
<a href="https://sp0dtpsxxk.jiandaoyun.com/f/660a2de0b0a76aafa09bde68" target='_blank' class="flex flex-col items-center px-4 py-2 text-gray-800 text-sm hover:bg-blue-100 w-full rounded-lg">
<img src="/img/demo.png" alt="预约演示" class="mb-2 h-6 w-6"/>
预约演示
</a>
<a href="https://sp0dtpsxxk.jiandaoyun.com/f/660a2de0b0a76aafa09bde68" target='_blank' class="flex flex-col items-center px-4 py-2 text-gray-800 text-sm hover:bg-blue-100 w-full rounded-lg">
<img src="/img/online_consultation.png" alt="在线咨询" class="mb-2 h-6 w-6"/>
在线咨询
</a>
<div class="group relative px-4 py-2 text-gray-800 text-sm hover:bg-blue-100 w-full rounded-lg">
<a href="#" class="flex flex-col items-center w-full">
<img src="/img/mobile_consultation.png" alt="电话咨询" class="mb-2 h-6 w-6"/>
电话咨询
</a>
<div class="w-40 bg-white absolute right-28 top-[1rem] -translate-y-1/2 opacity-0 group-hover:opacity-100 flex flex-col items-center py-3 px-4 shadow-lg rounded-md transition-opacity duration-300 ease-in-out pointer-events-none group-hover:pointer-events-auto">
<span class="text-gray-700 text-sm">官网免费咨询热线</span>
<span class="text-blue-700 text-lg font-semibold">400-820-1612</span>
</div>
</div>
<div class="relative group px-4 py-2 text-gray-800 text-sm w-full rounded-lg hover:bg-blue-100">
<a href="#" class="flex flex-col items-center w-full">
<img src="/img/qywx.svg" alt="微信咨询" class="mb-2 h-6 w-6"/>
微信咨询
</a>
<div class="absolute right-28 top-[0.5rem] -translate-y-1/2 w-40 bg-white opacity-0 group-hover:opacity-100 flex flex-col items-center py-1 px-0.5 shadow-xl rounded-lg transition-all duration-300 ease-in-out pointer-events-none group-hover:pointer-events-auto">
<div class="text-gray-700 text-sm mt-3 mb-2 px-0.5">扫码获取产品介绍资料</div>
<img src="https://console.steedos.cn/api/files/images/64631db2c106fe003e69cbac" alt="商务咨询 QR Code" class="h-32 w-32 m-0.5" />
</div>
</div>
</div>
);
}
3 changes: 2 additions & 1 deletion src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import { footerNav } from '@/navs/footer';
import { Logo } from '@/components/Logo'
import { FloatingMenu } from './FloatingMenu';

export const Footer = (props) => {
return (
Expand All @@ -27,7 +28,7 @@ export const Footer = (props) => {
</div>
))}
</div>

<FloatingMenu />
<div className="border-t border-gray-200 dark:border-gray-700 py-10 text-center">
<p className="text-sm text-gray-500">&copy; 2022 华炎软件, 保留所有权利</p>
<a className="text-xs text-gray-400 mt-2" href="https://beian.miit.gov.cn">(沪ICP备09089283号)</a>
Expand Down

0 comments on commit 10edecd

Please sign in to comment.