StarkNet.vue 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  1. <script setup lang="ts">
  2. //@ts-ignore
  3. import MetaMaskSDK from '../utils/metamask-sdk.js'
  4. //@ts-ignore
  5. import getZksEra from '../utils/getZksEra.js'
  6. //@ts-ignore
  7. import getZksLite from '../utils/getZksLite.js'
  8. //@ts-ignore
  9. import getZkSyncBridge from '../utils/getZkSyncBridge.js'
  10. import * as echarts from 'echarts';
  11. import {onMounted, ref} from 'vue';
  12. import mySwapAv from '../project/mySwap/avatar.png'
  13. import mySwapBg from '../project/mySwap/BG.png'
  14. import starknetIdAv from '../project/starknetId/avatar.png'
  15. import starknetIdBg from '../project/starknetId/BG.png'
  16. import starkGateAv from '../project/starkGate/avatar.png'
  17. import starkGateBg from '../project/starkGate/BG.png'
  18. import realmsAv from '../project/realms/avatar.png'
  19. import realmsBg from '../project/realms/BG.png'
  20. import aspectAv from '../project/aspect/avatar.png'
  21. import aspectBg from '../project/aspect/BG.png'
  22. import briqAv from '../project/briq/avatar.png'
  23. import briqBg from '../project/briq/BG.png'
  24. import sithSwapAv from '../project/sithSwap/avatar.png'
  25. import sithSwapBg from '../project/sithSwap/BG.png'
  26. import fibrousAv from '../project/fibrous/avatar.png'
  27. import fibrousBg from '../project/fibrous/BG.png'
  28. import router from "@/router";
  29. import {useSunStore,useAddressStore} from "@/stores/sun";
  30. import Nav from '@/components/Nav.vue'
  31. import Footer from '@/components/Footer.vue'
  32. //@ts-ignore
  33. import {getAllZksSyncData} from "@/utils/getZksyncData/index.js";
  34. import {getStark} from "@/utils/stark/main.js";
  35. import { connect, disconnect } from "get-starknet"
  36. import axios from 'axios';
  37. import {Area, Bar} from '@antv/g2plot';
  38. import moment from "moment";
  39. const sunStore = useSunStore()
  40. const addressStore = useAddressStore()
  41. type EChartsOption = echarts.EChartsOption;
  42. onMounted(() => {
  43. fetchData()
  44. fetchData2()
  45. connectWallet2()
  46. })
  47. type dataArrType = {
  48. name: string,
  49. type: string[],
  50. BG: string,
  51. avatar: string,
  52. url:string
  53. }[]
  54. let dataArr: dataArrType = [
  55. {
  56. name: 'mySwap',
  57. type: ['DeFi'],
  58. BG: mySwapBg,
  59. avatar: mySwapAv,
  60. url:'https://www.myswap.xyz/'
  61. },
  62. {
  63. name:'Starknet.id',
  64. type: ['Digitalid ID'],
  65. BG:starknetIdBg,
  66. avatar:starknetIdAv,
  67. url:'https://app.starknet.id/'
  68. },
  69. {
  70. name: 'StarkGate',
  71. type: ['DEFI'],
  72. BG: starkGateBg,
  73. avatar: starkGateAv,
  74. url:'https://starkgate.starknet.io/terms'
  75. },
  76. {
  77. name: 'Realms',
  78. type: ['GAMEFI', 'NFT'],
  79. BG: realmsBg,
  80. avatar: realmsAv,
  81. url:'https://realms.world/'
  82. },
  83. {
  84. name: 'ASPECT',
  85. type: ['NFT'],
  86. BG: aspectBg,
  87. avatar: aspectAv,
  88. url:'https://aspect.co/'
  89. },
  90. {
  91. name: 'briq',
  92. type: ['NFT'],
  93. BG: briqBg,
  94. avatar: briqAv,
  95. url:'https://briq.construction/'
  96. },
  97. {
  98. name:'SithSwap',
  99. type: ['DEFI','BRIDGE'],
  100. BG:sithSwapBg,
  101. avatar:sithSwapAv,
  102. url:'https://app.sithswap.com/'
  103. },
  104. {
  105. name: 'Fibrous',
  106. type: ['DEFI'],
  107. BG: fibrousBg,
  108. avatar: fibrousAv,
  109. url:'https://app.fibrous.finance/'
  110. }
  111. ]
  112. //连接钱包按钮
  113. const connectWallet2 = async () => {
  114. const starknet = await connect();
  115. addressStore.starkNetAddress = starknet.account.address
  116. getMoreInfo()
  117. }
  118. //获取更多信息
  119. let amount = ref('-')
  120. let fee = ref('-')
  121. let contract = ref('-')
  122. let tradingTimeArr = ref()
  123. let l1Tol2Tx = ref('-')
  124. let l2Tol1Tx = ref('-')
  125. let tx = ref('-')
  126. const getMoreInfo = () => {
  127. getStark(addressStore.starkNetAddress).then((res:any)=>{
  128. if(res.result === "error"){
  129. return
  130. }
  131. amount.value = res.Vol
  132. fee.value = res.fee
  133. contract.value = res.activity.contractActivity
  134. tradingTimeArr.value = res.transactions
  135. l1Tol2Tx.value = res.bridge.DepositTx
  136. l2Tol1Tx.value = res.bridge.WithdrawTx
  137. tx.value = res.tx
  138. processTime()
  139. })
  140. }
  141. //处理时间数据
  142. const monthArr = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
  143. let showMonthNumberArr = ref([0,0,0,0,0,0,0,0,0,0,0,0])
  144. let showMonthArr = ref()
  145. const processTime = () => {
  146. let nowDate = new Date().toString()
  147. let nowDateArr = nowDate.split(' ')
  148. let nowMonth = nowDateArr[1]
  149. showMonthArr.value = []
  150. showMonthArr.value.push(nowMonth)
  151. let nowMonthIndex = monthArr.indexOf(nowMonth)
  152. const forLoop = () => {
  153. for (let i = 11; i !== nowMonthIndex ; i--) {
  154. showMonthArr.value.unshift(monthArr[i])
  155. }
  156. }
  157. for (let i = nowMonthIndex; i !== 0 ; i--) {
  158. showMonthArr.value.unshift(monthArr[i-1])
  159. if (i === 1) {
  160. forLoop()
  161. }
  162. }
  163. if (tradingTimeArr.value){
  164. tradingTimeArr.value.forEach((item:any) => {
  165. // if(item.balanceChanges[0].from && item.balanceChanges[0].from.toLowerCase() === addressStore.address.toLowerCase()){
  166. let receivedAt = timestampToCtime(item.timestamp)
  167. // console.log(receivedAt);
  168. let strArr = receivedAt.split(' ')
  169. let month = strArr[1]
  170. let index = showMonthArr.value.indexOf(month)
  171. showMonthNumberArr.value[index]++
  172. // }
  173. })
  174. }
  175. initEcharts()
  176. }
  177. function timestampToCtime(timestamp) {
  178. const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
  179. const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
  180. const date = new Date(timestamp * 1000); // JavaScript使用毫秒为单位的时间戳,所以需要乘以1000
  181. const day = days[date.getUTCDay()];
  182. const month = months[date.getUTCMonth()];
  183. const dayOfMonth = date.getUTCDate();
  184. const time = date.getUTCHours() + ':' + ('0' + date.getUTCMinutes()).slice(-2) + ':' + ('0' + date.getUTCSeconds()).slice(-2);
  185. const year = date.getUTCFullYear();
  186. return `${day} ${month} ${dayOfMonth} ${time} UTC ${year}`;
  187. }
  188. //初始化echarts
  189. const initEcharts = () => {
  190. let chartDom = document.getElementById('echartsBox1')!
  191. let myChart = echarts.init(chartDom);
  192. let option: EChartsOption;
  193. option = {
  194. tooltip: {
  195. trigger: 'axis',
  196. axisPointer: {
  197. type: 'shadow'
  198. }
  199. },
  200. xAxis: {
  201. type: 'category',
  202. axisTick: {
  203. alignWithLabel: true
  204. },
  205. data: showMonthArr.value
  206. },
  207. yAxis: {
  208. type: 'value',
  209. },
  210. series: [
  211. {
  212. color: '#EC796B',
  213. data: showMonthNumberArr.value,
  214. type: 'bar'
  215. }
  216. ]
  217. };
  218. option && myChart.setOption(option);
  219. }
  220. //跳转网页
  221. const toLink = (url:string) => {
  222. window.open(url)
  223. }
  224. const toPage = (url:string) => {
  225. router.push(url)
  226. }
  227. const toEmail = (email:string) => {
  228. const emailAddress = email; // 替换为你想发送邮件的收件人地址
  229. const subject = 'Hello'; // 替换为你想在邮件中设置的主题
  230. const body = 'This is the email body.'; // 替换为你想在邮件中设置的内容
  231. const mailtoUrl = `mailto:${emailAddress}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
  232. window.open(mailtoUrl);
  233. }
  234. let affix = ref(false)
  235. let chart = ref(false)
  236. const affixMouseenter = () => {
  237. const slideDiv = document.getElementById("slideDiv");
  238. slideDiv.style.bottom = "0";
  239. }
  240. const affixMouseleave = () => {
  241. const slideDiv = document.getElementById("slideDiv");
  242. slideDiv.style.bottom = "-608px";
  243. }
  244. const getStarkTvl = async () => {
  245. const url = 'https://api.llama.fi/v2/historicalChainTvl/Starknet';
  246. const response = await axios.get(url);
  247. return response.data;
  248. }
  249. const getZkTvlDetail = async () => {
  250. const url = "https://api.llama.fi/protocols";
  251. const response = await axios.get(url);
  252. let result = [];
  253. response.data.forEach((item) => {
  254. if (item['chains'].includes("Starknet") && item.category !== "CEX") {
  255. result.push({
  256. name: item.name,
  257. tvl: item['chainTvls']['Starknet'] / 1000000,
  258. });
  259. }
  260. });
  261. result.sort((a, b) => b.tvl - a.tvl);
  262. result = result.slice(0, 10);
  263. return result;
  264. }
  265. let change = ref(0)
  266. let change24h = ref('-')
  267. let nowTvl = ref('-')
  268. const fetchData = async () => {
  269. const result = await getStarkTvl();
  270. change.value = ((result[result.length - 1].tvl - result[result.length - 2].tvl) / result[result.length - 2].tvl) * 100;
  271. change24h.value = change.value.toFixed(2) + '%'
  272. nowTvl.value = (result[result.length - 1].tvl / 1000000).toFixed(2) + 'M'
  273. let VolData = [];
  274. result.forEach(item => {
  275. VolData.push({
  276. date: new Date(item.date * 1000).toLocaleDateString(),
  277. tvl: item.tvl / 1000000,
  278. });
  279. });
  280. const max = Math.max(...VolData.map(item => item.tvl));
  281. const chart = new Area('TVLBox',{
  282. data: VolData,
  283. xField: 'date',
  284. yField: 'tvl',
  285. smooth: true,
  286. isStack: true,
  287. padding:[60],
  288. color: '#FFF',
  289. // label: {
  290. // style:{
  291. // fill:'#FFF'
  292. // },
  293. // content: (originData) => {
  294. // return `${originData.tvl.toFixed(0)}`;
  295. // },
  296. // },
  297. slider: {
  298. start: 0,
  299. end: 1,
  300. formatter: (v) => moment(v).format('YYYY-MM-DD'),
  301. textStyle:{
  302. fill:'#FFF'
  303. }
  304. },
  305. meta: {
  306. tvl: {
  307. alias: 'TVL(M)',
  308. min: 0,
  309. max: max * 1.1,
  310. }
  311. }
  312. });
  313. chart.render();
  314. }
  315. let TVLTopData = ref()
  316. const fetchData2 = async () => {
  317. let result = await getZkTvlDetail();
  318. TVLTopData.value = result.slice(0,5)
  319. const max = Math.max(...result.map(item => item.tvl));
  320. const chart = new Bar('TVLTop', {
  321. data:result,
  322. xField: 'tvl',
  323. yField: 'name',
  324. color: '#FFF',
  325. yAxis: {
  326. label: {
  327. formatter: (v) => `${v}`,
  328. }
  329. },
  330. label: {
  331. position: 'right',
  332. style:{
  333. fill:'#FFF'
  334. },
  335. formatter: (v) => `${v.tvl.toFixed(2)}`,
  336. },
  337. meta: {
  338. tvl: {
  339. alias: 'TVL(M)',
  340. max: max * 1.1,
  341. }
  342. }
  343. });
  344. chart.render();
  345. }
  346. </script>
  347. <template>
  348. <main class="main">
  349. <div class="mainBG">
  350. <img src="../assets/navBg.png" alt="BG">
  351. </div>
  352. <Nav @doSth="connectWallet2"/>
  353. <div class="chainBox">
  354. <div class="item" @click="toPage('/zkSync')">
  355. zkSync
  356. </div>
  357. <div class="item" @click="toPage('/layerZero')">
  358. Layer Zero
  359. </div>
  360. <div class="item">
  361. StarkNet
  362. <div class="line"></div>
  363. </div>
  364. </div>
  365. <div class="dataBox">
  366. <div class="left">
  367. <div class="leftTop">
  368. <div class="item">
  369. <div class="top">
  370. <div class="img">
  371. <img src="../assets/starkNet/STARKNET.svg" alt="STARKNET">
  372. </div>
  373. <div class="title">
  374. Protocols lnteraction
  375. <el-popover
  376. placement="bottom"
  377. :width="230"
  378. trigger="hover"
  379. effect="dark"
  380. >
  381. <template #reference>
  382. <img src="../assets/info.svg" alt="info">
  383. </template>
  384. <div class="popoverText">
  385. Number of protocolsinteracted
  386. </div>
  387. <div class="popoverText">
  388. with out of allavailable protocols
  389. </div>
  390. </el-popover>
  391. </div>
  392. </div>
  393. <div class="number">
  394. {{ contract }}
  395. </div>
  396. </div>
  397. <div class="item">
  398. <div class="top">
  399. <div class="img">
  400. <img class="img" src="../assets/group4.svg" alt="group2">USDT
  401. </div>
  402. <div class="title">
  403. <span style="width: 150px">vol</span>
  404. <span>fee</span>
  405. </div>
  406. </div>
  407. <div class="number">
  408. <span class="number" style="width: 150px">
  409. {{ amount }}
  410. </span>
  411. <span class="number">
  412. {{fee}}
  413. </span>
  414. </div>
  415. </div>
  416. <img width="175" src="../assets/starkNet/starkNet.png" alt="starkNet">
  417. </div>
  418. <div class="leftBottom">
  419. <div class="item">
  420. <div class="top">
  421. <div class="img">
  422. <img src="../assets/starkNet/STARKNET.svg" alt="STARKNET">
  423. </div>
  424. <div class="title">
  425. Total Transactions
  426. <el-popover
  427. placement="bottom"
  428. :width="250"
  429. trigger="hover"
  430. effect="dark"
  431. >
  432. <template #reference>
  433. <img src="../assets/info.svg" alt="info">
  434. </template>
  435. <div class="popoverText">
  436. Total StarkNet
  437. </div>
  438. <div class="popoverText">
  439. transactions issuedfrom the account
  440. </div>
  441. </el-popover>
  442. </div>
  443. </div>
  444. <div class="number">
  445. {{ tx }}
  446. </div>
  447. </div>
  448. <div class="item" style="height: 94px">
  449. <div class="top">
  450. <div class="img">
  451. <img v-show="!sunStore.sun" class="img" src="../assets/official-bridge-white.svg" alt="group2">
  452. <img v-show="sunStore.sun" class="img" src="../assets/official-bridge-black.svg" alt="group2">
  453. </div>
  454. <div style="display: flex;gap:40px">
  455. <div style="display: flex;flex-direction: column;gap:20px">
  456. <img v-show="!sunStore.sun" src="../assets/L1-To-L2-white.svg" alt="To">
  457. <img v-show="sunStore.sun" src="../assets/L1-To-L2.svg" alt="To">
  458. <div class="number">
  459. {{ l1Tol2Tx }}
  460. </div>
  461. </div>
  462. <div style="display: flex;flex-direction: column;gap:20px">
  463. <img v-show="!sunStore.sun" src="../assets/L2-To-L1-white.svg" alt="To">
  464. <img v-show="sunStore.sun" src="../assets/L2-To-L1.svg" alt="To">
  465. <div class="number">
  466. {{ l2Tol1Tx }}
  467. </div>
  468. </div>
  469. </div>
  470. </div>
  471. </div>
  472. </div>
  473. </div>
  474. <div style="position: relative">
  475. <div style="display: flex;align-items: center;position: absolute;left: 40px;top:10px;z-index: 10;gap:4px">
  476. Transactions Over Time
  477. <el-popover
  478. placement="right"
  479. :width="240"
  480. trigger="hover"
  481. effect="dark"
  482. >
  483. <template #reference>
  484. <img src="../assets/info.svg" alt="info">
  485. </template>
  486. <div class="popoverText">
  487. Number of transactions permonth
  488. </div>
  489. </el-popover>
  490. </div>
  491. <div class="right" id="echartsBox1">
  492. </div>
  493. </div>
  494. </div>
  495. <div class="projectBox">
  496. <div class="item" @click="toLink(item.url)" v-for="item in dataArr">
  497. <div class="BG">
  498. <img class="BG" :src="item.BG" alt="BG">
  499. </div>
  500. <div class="infoBox">
  501. <div class="avatar">
  502. <img class="avatar" :src="item.avatar" alt="avatar">
  503. </div>
  504. <div class="nameAndType">
  505. <div class="name">
  506. {{ item.name }}
  507. </div>
  508. <div class="typeBox">
  509. <div class="type" v-for="item1 in item.type">
  510. {{ item1 }}
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. </div>
  517. <div class="dividingLine"/>
  518. <Footer/>
  519. <div class="dividingLine"/>
  520. <div style="height: 61px;" @mouseenter="affixMouseenter" @mouseleave="affixMouseleave">
  521. <div class="dataChart" id="slideDiv">
  522. <div class="box">
  523. <div class="titleBox">
  524. <div class="title">
  525. <img src="../assets/title.svg" alt="title">
  526. starkNet info
  527. </div>
  528. <!-- <div class="exit" v-show="chart" @click="chart = false">-->
  529. <!-- <img src="../assets/exit.svg" alt="exit">-->
  530. <!-- Exit-->
  531. <!-- </div>-->
  532. </div>
  533. <div class="data" >
  534. <div class="dataGroup">
  535. <div class="dataGroupTitle">
  536. <img src="../assets/TVL.svg" alt="TVL">
  537. TVL(M)
  538. </div>
  539. <div class="itemBox">
  540. <div class="item">
  541. <div class="text1">
  542. {{nowTvl}}
  543. </div>
  544. <div class="text2">
  545. Now
  546. </div>
  547. </div>
  548. <div class="item">
  549. <div class="text3" v-show="change>=0">
  550. {{change24h}}
  551. </div>
  552. <div class="text3" style="color: red" v-show="change<0">
  553. {{change24h}}
  554. </div>
  555. <div class="text2">
  556. 24h
  557. </div>
  558. </div>
  559. </div>
  560. </div>
  561. <div class="verticalLine"/>
  562. <div class="dataGroup">
  563. <div class="dataGroupTitle">
  564. <img src="../assets/tag.svg" alt="TVL">
  565. Top 5 TVL(M)
  566. </div>
  567. <div class="itemBox">
  568. <div class="item" v-for="(item,index) in TVLTopData">
  569. <div class="text1">
  570. {{ item.tvl.toFixed(2) }}M
  571. </div>
  572. <div class="text2">
  573. {{ item.name }}
  574. </div>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. <!-- <div class="viewMore" v-show="affix" @click="chart = true">-->
  580. <!-- <img src="../assets/viewMore.svg" alt="viewMore">-->
  581. <!-- view more-->
  582. <!-- </div>-->
  583. <div class="chartBox">
  584. <div class="TVLBox" id="TVLBox">
  585. </div>
  586. <div class="TVLTop" id="TVLTop">
  587. </div>
  588. </div>
  589. </div>
  590. </div>
  591. </div>
  592. </main>
  593. </template>
  594. <style scoped lang="scss">
  595. .main {
  596. width: 1440px;
  597. height: 100%;
  598. margin: auto;
  599. border: 1px solid var(--vt-c-border);
  600. border-top: none;
  601. border-bottom: none;
  602. padding: 30px 60px 0;
  603. .dividingLine {
  604. width: 100vw;
  605. height: 1px;
  606. border-bottom: 1px solid var(--vt-c-border);
  607. position: absolute;
  608. left: 0;
  609. }
  610. .mainBG{
  611. position: absolute;
  612. top: 0;
  613. left: 0;
  614. right: 0;
  615. display: flex;
  616. justify-content: center;
  617. z-index: -1;
  618. }
  619. .topBar {
  620. display: flex;
  621. align-items: center;
  622. justify-content: space-between;
  623. padding: 0 60px 25px;
  624. margin: 0 -60px;
  625. border-bottom: 1px solid var(--vt-c-border);
  626. .left{
  627. display: flex;
  628. align-items: center;
  629. .nav{
  630. font-family: HONOR Sans CN;
  631. font-size: 21px;
  632. font-style: normal;
  633. font-weight: 700;
  634. line-height: normal;
  635. padding: 0 60px;
  636. height: 100px;
  637. display: flex;
  638. align-items: center;
  639. margin-bottom: -25px;
  640. margin-top: -30px;
  641. border-right: 1px solid var(--vt-c-border);
  642. position: relative;
  643. .line{
  644. position: absolute;
  645. width: 100%;
  646. height: 10px;
  647. background: var(--color-text);
  648. left: 0;
  649. bottom: 0;
  650. }
  651. }
  652. .navOne{
  653. font-family: HONOR Sans CN;
  654. font-size: 21px;
  655. font-style: normal;
  656. font-weight: 700;
  657. line-height: normal;
  658. padding: 0 60px;
  659. height: 100px;
  660. display: flex;
  661. align-items: center;
  662. margin-bottom: -25px;
  663. margin-top: -30px;
  664. border-right: 1px solid var(--vt-c-border);
  665. margin-left: 57px;
  666. border-left: 1px solid var(--vt-c-border);
  667. position: relative;
  668. .line{
  669. position: absolute;
  670. width: 100%;
  671. height: 10px;
  672. background: var(--color-text);
  673. left: 0;
  674. bottom: 0;
  675. }
  676. }
  677. }
  678. .mid{
  679. font-weight: 400;
  680. font-size: 15px;
  681. line-height: 21px;
  682. font-family: 'Chillax';
  683. text-transform: uppercase;
  684. }
  685. .right {
  686. display: flex;
  687. align-items: center;
  688. gap:40px;
  689. cursor: pointer;
  690. .button {
  691. width: fit-content;
  692. height: 44px;
  693. display: flex;
  694. align-items: center;
  695. gap: 6px;
  696. background: #010101;
  697. padding: 0 24px;
  698. font-weight: 500;
  699. font-size: 15px;
  700. line-height: 20px;
  701. color: #FFFFFF;
  702. cursor: pointer;
  703. }
  704. .connect {
  705. width: fit-content;
  706. height: 44px;
  707. display: flex;
  708. align-items: center;
  709. gap: 6px;
  710. background: #FFFFFF;
  711. border: 1px solid #010101;
  712. border-radius: 30px;
  713. padding: 0 24px;
  714. font-weight: 500;
  715. font-size: 15px;
  716. line-height: 20px;
  717. color: #010101;
  718. }
  719. }
  720. }
  721. .chainBox{
  722. width: 100%;
  723. display: flex;
  724. align-items: center;
  725. margin: 0 -60px;
  726. .item{
  727. padding: 24px 65px;
  728. border-right: 1px solid var(--vt-c-border);
  729. font-family: HONOR Sans CN;
  730. font-size: 15px;
  731. font-style: normal;
  732. font-weight: 700;
  733. line-height: normal;
  734. position: relative;
  735. cursor: pointer;
  736. .line{
  737. position: absolute;
  738. width: 60px;
  739. height: 4px;
  740. background: var(--color-text);
  741. left: 0;
  742. right: 0;
  743. margin: auto;
  744. bottom: 0;
  745. }
  746. }
  747. }
  748. .dataBox {
  749. height: 365px;
  750. margin: 0 -60px;
  751. border-bottom: 1px solid var(--vt-c-border);
  752. border-top: 1px solid var(--vt-c-border);
  753. display: flex;
  754. align-items: center;
  755. .left {
  756. width: 845px;
  757. height: 100%;
  758. border-right: 1px solid var(--vt-c-border);
  759. .item {
  760. width: 260px;
  761. display: flex;
  762. flex-direction: column;
  763. gap: 20px;
  764. .top {
  765. display: flex;
  766. flex-direction: column;
  767. gap: 6px;
  768. .img {
  769. height: 16px;
  770. }
  771. }
  772. .publicChainBox{
  773. display: flex;
  774. align-items: center;
  775. gap:40px;
  776. .publicChainItem{
  777. display: flex;
  778. flex-direction: column;
  779. gap:20px;
  780. }
  781. }
  782. .title {
  783. display: flex;
  784. align-items: center;
  785. gap: 8px;
  786. font-weight: 400;
  787. font-size: 14px;
  788. line-height: 18px;
  789. //color: #010101;
  790. font-family: 'HONOR Sans CN';
  791. .popoverText{
  792. font-weight: 400;
  793. font-size: 12px;
  794. line-height: 24px;
  795. }
  796. }
  797. .number {
  798. display: flex;
  799. align-items: center;
  800. gap: 8px;
  801. font-weight: 700;
  802. font-size: 26px;
  803. line-height: 34px;
  804. //color: #010101;
  805. }
  806. }
  807. .leftTop {
  808. height: 175px;
  809. width: 100%;
  810. display: flex;
  811. justify-content: space-between;
  812. align-items: center;
  813. padding-left: 60px;
  814. padding-right: 60px;
  815. border-bottom: 1px solid var(--vt-c-border);
  816. .img{
  817. display: flex;
  818. align-items: center;
  819. font-weight: 700;
  820. gap:4px
  821. }
  822. }
  823. .leftBottom {
  824. display: flex;
  825. align-items: center;
  826. justify-content: space-between;
  827. height: 175px;
  828. padding-left: 60px;
  829. }
  830. }
  831. .right {
  832. height: 365px;
  833. width: 596px;
  834. }
  835. }
  836. .projectBox{
  837. display: flex;
  838. flex-wrap: wrap;
  839. overflow:auto;
  840. gap: 28px;
  841. height: 585px;
  842. margin: 0px -60px;
  843. padding: 20px 0;
  844. border-bottom: 1px solid var(--vt-c-border);
  845. .item {
  846. height: 256px;
  847. width: 336px;
  848. cursor: pointer;
  849. .BG {
  850. width: 100%;
  851. height: 175px;
  852. }
  853. .infoBox {
  854. display: flex;
  855. align-items: center;
  856. gap: 12px;
  857. padding: 0 24px;
  858. height: 80px;
  859. //border: 1px solid #010101;
  860. border-top: none;
  861. background: #FFFFFF;
  862. .avatar {
  863. width: 40px;
  864. height: 40px;
  865. border-radius: 50%;
  866. }
  867. .nameAndType {
  868. display: flex;
  869. flex-direction: column;
  870. gap: 2px;
  871. .name {
  872. font-weight: 700;
  873. font-size: 17px;
  874. line-height: 22px;
  875. color: #010101;
  876. }
  877. .typeBox {
  878. display: flex;
  879. align-items: center;
  880. gap: 10px;
  881. .type {
  882. width: fit-content;
  883. font-weight: 400;
  884. font-size: 12px;
  885. line-height: 16px;
  886. color: #b3b3b3;
  887. padding: 0 4px;
  888. }
  889. .type::before {
  890. content: "\00B7";
  891. margin-right: 5px;
  892. }
  893. }
  894. }
  895. }
  896. }
  897. }
  898. .dataChart{
  899. width: 100vw;
  900. position: fixed;
  901. bottom: -608px;
  902. left: 0;
  903. background: rgba(40, 40, 40, 0.96);
  904. backdrop-filter: blur(34px);
  905. display: flex;
  906. justify-content: center;
  907. transition: bottom 0.3s ease-in-out;
  908. .box{
  909. width: 1440px;
  910. height: 100%;
  911. .titleBox{
  912. display: flex;
  913. align-items: center;
  914. justify-content: space-between;
  915. padding: 20px 0;
  916. .title{
  917. display: flex;
  918. color: #FFF;
  919. font-family: HONOR Sans CN;
  920. font-size: 15px;
  921. font-style: normal;
  922. font-weight: 700;
  923. line-height: normal;
  924. gap:8px;
  925. opacity: 0.5;
  926. }
  927. .exit{
  928. color: #FFF73F;
  929. font-family: Space Grotesk;
  930. font-size: 15px;
  931. font-style: normal;
  932. font-weight: 700;
  933. line-height: normal;
  934. display: flex;
  935. gap:8px;
  936. cursor: pointer;
  937. }
  938. }
  939. .data{
  940. display: flex;
  941. gap:80px;
  942. align-items: center;
  943. padding: 24px 0;
  944. border-bottom: 1px solid #4C4C4C;
  945. border-top: 1px solid #4C4C4C;
  946. .dataGroup{
  947. display: flex;
  948. flex-direction: column;
  949. gap:16px;
  950. .dataGroupTitle{
  951. display: flex;
  952. color: #FFF;
  953. font-family: HONOR Sans CN;
  954. font-size: 15px;
  955. font-style: normal;
  956. font-weight: 700;
  957. line-height: normal;
  958. gap:8px;
  959. opacity: 0.5;
  960. }
  961. .itemBox{
  962. display: flex;
  963. align-items: center;
  964. gap:80px;
  965. .item{
  966. display: flex;
  967. flex-direction: column;
  968. gap:8px;
  969. .text1{
  970. color: #FFF;
  971. font-family: HONOR Sans CN;
  972. font-size: 21px;
  973. font-style: normal;
  974. font-weight: 700;
  975. line-height: normal;
  976. }
  977. .text2{
  978. color: #FFF;
  979. font-family: HONOR Sans CN;
  980. font-size: 14px;
  981. font-style: normal;
  982. font-weight: 400;
  983. line-height: normal;
  984. opacity: 0.5;
  985. }
  986. .text3{
  987. color: #57EB92;
  988. font-family: HONOR Sans CN;
  989. font-size: 21px;
  990. font-style: normal;
  991. font-weight: 700;
  992. line-height: normal;
  993. }
  994. }
  995. }
  996. }
  997. .verticalLine{
  998. width: 1px;
  999. height: 88px;
  1000. border-right: 1px solid #4c4c4c;
  1001. }
  1002. }
  1003. .viewMore{
  1004. width: 100%;
  1005. padding: 20px 0;
  1006. display: flex;
  1007. justify-content: center;
  1008. gap:8px;
  1009. color: #FFF73F;
  1010. font-family: Space Grotesk;
  1011. font-size: 15px;
  1012. font-style: normal;
  1013. font-weight: 700;
  1014. line-height: normal;
  1015. cursor: pointer;
  1016. }
  1017. .chartBox{
  1018. width: 100%;
  1019. height: 468px;
  1020. display: flex;
  1021. .TVLBox{
  1022. width: 840px;
  1023. height: 100%;
  1024. border-right: 1px solid #4c4c4c;
  1025. border-left: 1px solid #4c4c4c;
  1026. }
  1027. .TVLTop{
  1028. width: 600px;
  1029. height: 100%;
  1030. border-right: 1px solid #4c4c4c;
  1031. padding: 60px
  1032. }
  1033. }
  1034. }
  1035. }
  1036. }
  1037. ::-webkit-scrollbar {
  1038. width: 4px; /* 滚动条宽度 */
  1039. }
  1040. // /* 滚动条轨道 */
  1041. // ::-webkit-scrollbar-track {
  1042. // background: #f1f1f1; /* 轨道背景色 */
  1043. // }
  1044. /* 滚动条滑块 */
  1045. ::-webkit-scrollbar-thumb {
  1046. background: #888; /* 滑块背景色 */
  1047. }
  1048. /* 滚动条滑块悬停状态 */
  1049. ::-webkit-scrollbar-thumb:hover {
  1050. background: #555; /* 悬停状态下滑块背景色 */
  1051. }
  1052. </style>