From 7b5562ea35c3a6242999dcfd7227cc102a83dd56 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 9 Jun 2026 09:31:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E7=AE=97=E5=BC=80=E6=BA=90=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/cateList/CategorySection.jsx | 10 +++---- .../Pages/project/cateList/index.jsx | 29 ++++++++++++------- .../Pages/project/cateList/index.scss | 26 +++++++++++++---- 3 files changed, 44 insertions(+), 21 deletions(-) diff --git a/src/forge/Information/Pages/project/cateList/CategorySection.jsx b/src/forge/Information/Pages/project/cateList/CategorySection.jsx index aef937b47..9379d67ec 100644 --- a/src/forge/Information/Pages/project/cateList/CategorySection.jsx +++ b/src/forge/Information/Pages/project/cateList/CategorySection.jsx @@ -34,16 +34,16 @@ function CategorySection({ category, index, zoneId, nsccTitle }) { return projects.map((item, pIndex)=>{ return( (!range || (range && pIndex >= range[0] && pIndex < range[1])) ?
-
- {item.projectProperties && item.projectProperties.authorImageUrl && } - {item.projectProperties && item.projectProperties.fromOwner}/{item.projectProperties && item.projectProperties.name && item.projectProperties.name.split("/").pop()} +
+ {item.projectProperties && item.projectProperties.authorImageUrl && } + {item.projectProperties && item.projectProperties.fromOwner}/{item.projectProperties && item.projectProperties.name && item.projectProperties.name.split("/").pop()} {!showBtn && }
-
+
{item.projectProperties && item.projectProperties.description}
{item.projectProperties && item.projectProperties.topics && ( -
    +
      {item.projectProperties.topics.split(",").map((t, k) => (
    • {t}
    • ))} diff --git a/src/forge/Information/Pages/project/cateList/index.jsx b/src/forge/Information/Pages/project/cateList/index.jsx index d0be27746..32b6e769e 100644 --- a/src/forge/Information/Pages/project/cateList/index.jsx +++ b/src/forge/Information/Pages/project/cateList/index.jsx @@ -4,6 +4,7 @@ import { getProjectsTypeLists, getZoneStatistics, getProjectListByScore, getProj import { projectCateConfig } from '../projectCateConfig'; import { getUniqueIdentifier, getUserName, getBrowserPlatform, getBrowserBrand } from '../../../utils'; import { setZoneVisits } from '../../../api'; +import CountUp from 'react-countup'; import '../index.scss'; import './index.scss'; import Nodata from '../../../../Nodata'; @@ -183,23 +184,31 @@ function ProjectCateList(props) { ))}
+ const countUpProps = { + redraw: false, + start: 0, + duration: 2, + // suffix: "+" + }; return (
setVisible(false)} role={role && role.role} onFresh={()=>{getTypeList();}}/> {/* 数据统计部分 */}
{nsccTitle("数聚开源力量,实时见证开源生态的每一次进化", 0.1, "center pt80 fadeInChar")} -
-
- {statsData.map((stat, index) => ( -
-
- {stat.value} - {stat.suffix} +
+
+
+ {statsData.map((stat, index) => ( +
+
+ + {stat.suffix} +
+
{stat.label}
-
{stat.label}
-
- ))} + ))} +
{role && role.role !== "None" &&
{role.role === "Member" ? 我的项目:""} diff --git a/src/forge/Information/Pages/project/cateList/index.scss b/src/forge/Information/Pages/project/cateList/index.scss index e607ce9bb..8cd795e81 100644 --- a/src/forge/Information/Pages/project/cateList/index.scss +++ b/src/forge/Information/Pages/project/cateList/index.scss @@ -23,6 +23,7 @@ padding: 25px; background-image: url('../../../img/project/cate_page_img2.png'); background-size: 100% 100%; + border-radius:15px; &:hover { .placeholder-img>img { @@ -152,7 +153,7 @@ flex: 0 0 calc(33.7% - 20px); background-color: #ffffff; border-radius:15px; - padding:40px; + padding:35px 40px; &:hover{ background-image: url('../../../img/project/cate_page_card.png'); background-size: 101% 100%; @@ -176,8 +177,13 @@ background: url('../../../img/project/5_h_b.png') 98% 98% no-repeat; color: #fff; justify-content: flex-start; - padding:50px 80px 50px 45px; + padding:35px 80px 35px 45px; background-size: 100% 100%; + .project-list-item-tag{ + li{ + background-color: rgba(255,255,255,0.15); + } + } .project-list-item-title{ a{ color: #fff; @@ -251,6 +257,7 @@ margin-bottom: 20px; background-size: 100% 100%; margin-right: 20px; + border-radius:15px; .cateSixMainBox{ overflow: hidden; } @@ -268,6 +275,7 @@ margin-right: 20px; background-color: #fff; margin-bottom: 20px; + justify-content: flex-start; &:hover{ background: url('../../../img/project/6_h.png') -4px -2px no-repeat; background-size: 102% 101%; @@ -336,9 +344,15 @@ } } + .statistics-cards-bc{ + background-image: url(../../../img/vipTitleBc.png); + background-size: 100% 124%; + padding: 25px 0; + background-position-y: bottom; + } .statistics-cards { width: 80%; - margin: 25px auto; + margin: 0px auto; display: grid; justify-items: center; grid-template-columns: repeat(4, 1fr); @@ -363,7 +377,7 @@ .cate_project_list_box .cate-project-card { min-width: 0; - padding: 30px; + padding:26px; border-radius: 15px; display: flex; flex-direction: column; @@ -377,7 +391,7 @@ } .icon-jiantou21 { color: inherit; - top: 0px; + top: 4px; left: 0px; opacity: 1; transition: top 0.5s ease, left 0.5s ease, opacity 0.3s ease 0.1s; @@ -417,7 +431,7 @@ text-align: center; height: 38px; line-height: 38px; - margin-top: 35px; + margin-top: 30px; background:linear-gradient(272.02deg,rgba(10, 145, 255, 0.12) 0.05%,rgba(43, 103, 238, 0.12) 55.23%,rgba(133, 110, 250, 0.12) 99.86%); &:hover {