From 5a5adaf10863fb6e908015c4caedd5d0fc306064 Mon Sep 17 00:00:00 2001 From: lb Date: Mon, 3 Jul 2023 16:04:44 +0800 Subject: [PATCH] update menu --- src/assets/bg_center_menu.png | Bin 0 -> 2504 bytes .../CenterTopData/CenterMenu/index.jsx | 15 +++++++- .../CenterMenu/index.module.less | 34 ++++++++++++++---- 3 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 src/assets/bg_center_menu.png diff --git a/src/assets/bg_center_menu.png b/src/assets/bg_center_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..d9515e0637fbe2e74977bbd59b1895e002c975fc GIT binary patch literal 2504 zcmX9=c{~#e9JhGxMUI>^x$oR_UlDS>iW0ddq6kG6bIj&?vOT#c!7>XmEW6pWOc62>E*l);u&oYU>n^A z+H(qV7U1qI85jQ~KX_IY@?wZKUQ|?Ayx6%E_oZaFd%NVId$ACRC{$o=TJ2Nk*P1DX z_SNtTHLVqAy8nvfye9R=+XoqMM{qO0I#Q!o+abj29Vl{d0&;=trXBC6{6E9DS#JM* zWu|WZDz8B<;%=e;m^UGDnPuiWxz}(%#^hP7B9)*~?&+-VG5b<<#2?-5o$PQu%39$5 z&JBP(?_G!{(2a+!yv2LW4+iESlvUiEJ=Swgy6d5>9_pFhf;<6}{^ubiF$i*6) z|GZ9bwnt|po(2L-GhCwn(TeeFmdZe`9@SV*R)~hHunIaq1b0KU7g0!EO7ABQ{IZQ2 z6FfYvSAD*I^BOPA<&jT5hrd6Rru?Kad}%(=u}v6>IXYT@b;?~;vKkLD6?M^oTVHQ{ z*jr@jxIq~@j*Hv)<9f!8C}sACV~@JdA?+bZrRwMRC6^?Lx*f@;rIk|wHkki1dK$KT z{I`=y)o=6*=>T!9Ma?Essbl_gkLFhnTFar!fEd|$G(WkbPTV;S5ZHz&UbS~^{68f? zSri^ER>prU)6*v uNcw(Tl6WpgU}srevsLQu!wiCH)_N0$y{KI0^riCIUT&Y9-@ z*&0}|rQMWCw1Cj+%KU2+q-TvEkAZ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jgGuqgW`Ml0Z+}4B#Kw7ki(*n71-x}zupVP zKJB;&-#K&v3*+kZx`$c>Q{_Kp@4Nu{yw}p~KHNzk@2pj}r84>Sa=!Q0kFzM8yk;!+ MHqO=!R=!F90xMS8Z~y=R literal 0 HcmV?d00001 diff --git a/src/components/CenterTopData/CenterMenu/index.jsx b/src/components/CenterTopData/CenterMenu/index.jsx index 5e5303e..199e102 100644 --- a/src/components/CenterTopData/CenterMenu/index.jsx +++ b/src/components/CenterTopData/CenterMenu/index.jsx @@ -1,5 +1,18 @@ import cls from './index.module.less'; export default function CenterMenu() { - return
cetner menu
; + const menuList = [ + ['窑炉总览', '/kilnSummary'], + ['窑炉内部', '/kilnInner'], + ['退火监测', '/stopFire'], + ['质检统计', '/quailtyCheck'], + ['能耗分析', '/energyCost'], + ]; + return ( +
+ {menuList.map((menu) => ( +
{menu[0]}
+ ))} +
+ ); } diff --git a/src/components/CenterTopData/CenterMenu/index.module.less b/src/components/CenterTopData/CenterMenu/index.module.less index 05b775c..4a6b7e2 100644 --- a/src/components/CenterTopData/CenterMenu/index.module.less +++ b/src/components/CenterTopData/CenterMenu/index.module.less @@ -1,9 +1,31 @@ .centerMenu { - position: fixed; - top: 80px; - left: 240px; - height: 200px; - width: 1000px; - background: #1ed65278; + position: absolute; + top: 20px; + left: 680px; color: white; } + +.menuItem { + transition: all 0.3s ease-out; + cursor: pointer; + user-select: none; + padding: 10px 20px; + font-size: 32px; + line-height: 48px; + letter-spacing: 6px; + background: url(../../../assets/bg_center_menu.png) no-repeat; + background-size: 100% 50%; + background-position: bottom; + color: #00fff788; + font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', + 'PingFang SC', 'Microsoft YaHei', '微软雅黑', 'Microsoft YaHei UI', + 'Source Han Sans SC', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif; +} + +.menuItem:hover { + color: #00fff7; +} + +.menuItem:not(:first-child) { + margin-left: 50px; +}