Skip to content

Let's use AI to Earn!

feat(热门内容): 热点事件完成

gaoSir4dbbda48b458
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ffc9f0df..2033faa8 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,15 +4,21 @@
<option name="autoReloadType" value="NONE" />
</component>
<component name="ChangeListManager">
- <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="feat(热门内容): 热门内容添加日期选择">
+ <list default="true" id="8ce961ad-7c9e-494c-bc53-9ecde4358af8" name="更改" comment="feat(热门内容): 添加公众号逆向链接的代码">
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/hotEvent.module.scss" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/baidu.svg" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/bibl.svg" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/douyin.svg" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/kwai.svg" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/totiao.svg" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/weibo.svg" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/xhs.svg" afterDir="false" />
+ <change afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/svgs/zhihu.svg" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/pnpm-lock.yaml" beforeDir="false" afterPath="$PROJECT_DIR$/pnpm-lock.yaml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/src/app/[lng]/dataStatistics/components/DataStatisticsHeader/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/dataStatistics/components/DataStatisticsHeader/index.tsx" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/src/app/[lng]/hotContent/HotContentCore.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/HotContentCore.tsx" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scss" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotContent/hotContent.module.scss" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotContent/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotContent/index.tsx" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/src/app/[lng]/hotContent/hotContent.module.scss" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/hotContent.module.scss" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/api/hot.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/hot.ts" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/api/types/hotTopic.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/api/types/hotTopic.ts" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/index.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/[lng]/hotContent/components/HotEvent/index.tsx" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -55,7 +61,7 @@
}
}</component>
<component name="ProblemsViewState">
- <option name="selectedTabId" value="CurrentFile" />
+ <option name="selectedTabId" value="ProjectErrors" />
</component>
<component name="ProjectColorInfo">{
&quot;associatedIndex&quot;: 4
@@ -96,7 +102,7 @@
&quot;git-widget-placeholder&quot;: &quot;hot&quot;,
&quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
&quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
- &quot;last_opened_file_path&quot;: &quot;E:/project-dev/web/艺咖/aitoearn-web/src/app/i18n/locales/zh-CN&quot;,
+ &quot;last_opened_file_path&quot;: &quot;E:/project-dev/web/艺咖/aitoearn-web/src/app/[lng]/hotContent/components/HotEvent&quot;,
&quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
&quot;node.js.detected.package.standard&quot;: &quot;true&quot;,
&quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
@@ -124,14 +130,16 @@
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
+ <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\[lng]\hotContent\components\HotEvent" />
+ <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\assets\fonts" />
<recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\i18n\locales\zh-CN" />
</key>
<key name="MoveFile.RECENT_KEYS">
+ <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\[lng]\hotContent\components\HotEvent\svgs" />
+ <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\[lng]\hotContent\components\HotContent\svgs" />
+ <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\[lng]\hotContent\svgs" />
+ <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\images" />
<recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\[lng]\dataStatistics\echart" />
- <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\[lng]\dataStatistics\svgs" />
- <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\app\[lng]\dataStatistics\components\DataStatisticsHeader" />
- <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\components" />
- <recent name="E:\project-dev\web\艺咖\aitoearn-web\src\api\plat" />
</key>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
@@ -216,63 +224,8 @@
<workItem from="1757687709611" duration="2478000" />
<workItem from="1757902659875" duration="8213000" />
<workItem from="1757990250575" duration="77000" />
- <workItem from="1758007785895" duration="5213000" />
- </task>
- <task id="LOCAL-00014" summary="feat(日历):日历在同一个单元格发布记录太多会自动隐藏,并且显示按钮让用户点击查看更多">
- <option name="closed" value="true" />
- <created>1752236562804</created>
- <option name="number" value="00014" />
- <option name="presentableId" value="LOCAL-00014" />
- <option name="project" value="LOCAL" />
- <updated>1752236562804</updated>
- </task>
- <task id="LOCAL-00015" summary="feat(发布弹框): 添加选择账户一系列逻辑: 1. 选择账户时,开启发布弹框会默认选择,右侧选择的账户。 2. 添加日历header选择用户展示的样式。">
- <option name="closed" value="true" />
- <created>1752239323126</created>
- <option name="number" value="00015" />
- <option name="presentableId" value="LOCAL-00015" />
- <option name="project" value="LOCAL" />
- <updated>1752239323126</updated>
- </task>
- <task id="LOCAL-00016" summary="feat(发布弹框): 发布弹框对不支持上传 图片/视频 的平台做了限制">
- <option name="closed" value="true" />
- <created>1752240016715</created>
- <option name="number" value="00016" />
- <option name="presentableId" value="LOCAL-00016" />
- <option name="project" value="LOCAL" />
- <updated>1752240016715</updated>
- </task>
- <task id="LOCAL-00017" summary="chore(发布弹框): daysjs 时区统一管理">
- <option name="closed" value="true" />
- <created>1752240837323</created>
- <option name="number" value="00017" />
- <option name="presentableId" value="LOCAL-00017" />
- <option name="project" value="LOCAL" />
- <updated>1752240837323</updated>
- </task>
- <task id="LOCAL-00018" summary="chore(发布弹框): 拖动修改发布时间完成">
- <option name="closed" value="true" />
- <created>1752243765854</created>
- <option name="number" value="00018" />
- <option name="presentableId" value="LOCAL-00018" />
- <option name="project" value="LOCAL" />
- <updated>1752243765854</updated>
- </task>
- <task id="LOCAL-00019" summary="fix(日历): 修复更新的问题">
- <option name="closed" value="true" />
- <created>1752244094407</created>
- <option name="number" value="00019" />
- <option name="presentableId" value="LOCAL-00019" />
- <option name="project" value="LOCAL" />
- <updated>1752244094407</updated>
- </task>
- <task id="LOCAL-00020" summary="feat(发布):b站添加标题参数">
- <option name="closed" value="true" />
- <created>1752247253122</created>
- <option name="number" value="00020" />
- <option name="presentableId" value="LOCAL-00020" />
- <option name="project" value="LOCAL" />
- <updated>1752247253122</updated>
+ <workItem from="1758007785895" duration="36707000" />
+ <workItem from="1758107883444" duration="5630000" />
</task>
<task id="LOCAL-00021" summary="feat(发布):发布记录添加账户筛选API">
<option name="closed" value="true" />
@@ -610,7 +563,63 @@
<option name="project" value="LOCAL" />
<updated>1757949881878</updated>
</task>
- <option name="localTasksCounter" value="63" />
+ <task id="LOCAL-00063" summary="feat(热门内容): 热门内容添加表格">
+ <option name="closed" value="true" />
+ <created>1758015551273</created>
+ <option name="number" value="00063" />
+ <option name="presentableId" value="LOCAL-00063" />
+ <option name="project" value="LOCAL" />
+ <updated>1758015551273</updated>
+ </task>
+ <task id="LOCAL-00064" summary="feat(热门内容): 热门内容,抖音、快手、b站、小红书优化完成。视频号数据需要对一下,微信公众号需要分两个,阅读榜、低粉爆文榜">
+ <option name="closed" value="true" />
+ <created>1758033777549</created>
+ <option name="number" value="00064" />
+ <option name="presentableId" value="LOCAL-00064" />
+ <option name="project" value="LOCAL" />
+ <updated>1758033777549</updated>
+ </task>
+ <task id="LOCAL-00065" summary="fix(热门内容): 修复热门内容过滤条件更改后不会更新的bug">
+ <option name="closed" value="true" />
+ <created>1758034268520</created>
+ <option name="number" value="00065" />
+ <option name="presentableId" value="LOCAL-00065" />
+ <option name="project" value="LOCAL" />
+ <updated>1758034268520</updated>
+ </task>
+ <task id="LOCAL-00066" summary="fix(热门内容): 上拉加载优化">
+ <option name="closed" value="true" />
+ <created>1758034949493</created>
+ <option name="number" value="00066" />
+ <option name="presentableId" value="LOCAL-00066" />
+ <option name="project" value="LOCAL" />
+ <updated>1758034949493</updated>
+ </task>
+ <task id="LOCAL-00067" summary="fix(热门内容): 添加表格跳转到对于链接">
+ <option name="closed" value="true" />
+ <created>1758035262966</created>
+ <option name="number" value="00067" />
+ <option name="presentableId" value="LOCAL-00067" />
+ <option name="project" value="LOCAL" />
+ <updated>1758035262966</updated>
+ </task>
+ <task id="LOCAL-00068" summary="fix(热门内容): 热门内容完成">
+ <option name="closed" value="true" />
+ <created>1758104032555</created>
+ <option name="number" value="00068" />
+ <option name="presentableId" value="LOCAL-00068" />
+ <option name="project" value="LOCAL" />
+ <updated>1758104032555</updated>
+ </task>
+ <task id="LOCAL-00069" summary="feat(热门内容): 添加公众号逆向链接的代码">
+ <option name="closed" value="true" />
+ <created>1758105572256</created>
+ <option name="number" value="00069" />
+ <option name="presentableId" value="LOCAL-00069" />
+ <option name="project" value="LOCAL" />
+ <updated>1758105572256</updated>
+ </task>
+ <option name="localTasksCounter" value="70" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
@@ -657,7 +666,7 @@
<entry key="branch">
<value>
<list>
- <option value="main" />
+ <option value="hot" />
</list>
</value>
</entry>
@@ -673,13 +682,6 @@
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_NEW_TODO" value="false" />
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
- <MESSAGE value="fix: 删除代理地址" />
- <MESSAGE value="fix: 修复发布记录Dropdown报错" />
- <MESSAGE value="fix: 默认空间国际化" />
- <MESSAGE value="fix: 校验修复" />
- <MESSAGE value="Revert &quot;refactor: 删除旧热门内容&quot;&#10;&#10;This reverts commit 7a0af7fb" />
- <MESSAGE value="feat: 选择代理" />
- <MESSAGE value="fix: 修复因为 @svgr/webpack 受到的影响" />
<MESSAGE value="feat: 创建数据统计页面" />
<MESSAGE value="feat: 创建数据统计header" />
<MESSAGE value="feat(数据统计): 顶部筛选完成" />
@@ -698,6 +700,13 @@
<MESSAGE value="feat(热门内容): 恢复新热门内容" />
<MESSAGE value="feat(热门内容): 添加侧边栏、标签数据、构建获取数据的基本逻辑及缓存逻辑" />
<MESSAGE value="feat(热门内容): 热门内容添加日期选择" />
- <option name="LAST_COMMIT_MESSAGE" value="feat(热门内容): 热门内容添加日期选择" />
+ <MESSAGE value="feat(热门内容): 热门内容添加表格" />
+ <MESSAGE value="feat(热门内容): 热门内容,抖音、快手、b站、小红书优化完成。视频号数据需要对一下,微信公众号需要分两个,阅读榜、低粉爆文榜" />
+ <MESSAGE value="fix(热门内容): 修复热门内容过滤条件更改后不会更新的bug" />
+ <MESSAGE value="fix(热门内容): 上拉加载优化" />
+ <MESSAGE value="fix(热门内容): 添加表格跳转到对于链接" />
+ <MESSAGE value="fix(热门内容): 热门内容完成" />
+ <MESSAGE value="feat(热门内容): 添加公众号逆向链接的代码" />
+ <option name="LAST_COMMIT_MESSAGE" value="feat(热门内容): 添加公众号逆向链接的代码" />
</component>
</project>
\ No newline at end of file
diff --git a/src/api/hot.ts b/src/api/hot.ts
index c7773d81..1f4884e9 100644
--- a/src/api/hot.ts
+++ b/src/api/hot.ts
@@ -205,7 +205,7 @@ export const platformApi = {
return request<
{
platform: Platform;
- hotTopic: HotTopic;
+ topics: HotTopic[];
}[]
>({
url: `hotdata/hot-topics/all`,
diff --git a/src/api/types/hotTopic.ts b/src/api/types/hotTopic.ts
index 539bcfca..d233a9e0 100644
--- a/src/api/types/hotTopic.ts
+++ b/src/api/types/hotTopic.ts
@@ -1,8 +1,8 @@
import { Platform } from '../hot';
-interface HotValueHistory {
- timestamp: Date; // 记录时间
- value: number; // 热度值
+export interface HotValueHistory {
+ updateTime: string; // 记录时间
+ hotValue: number; // 热度值
}
export interface HotTopic {
diff --git a/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts b/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts
new file mode 100644
index 00000000..c3782054
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts
@@ -0,0 +1,74 @@
+import * as echarts from "echarts";
+import { HotValueHistory } from "@/api/types/hotTopic";
+import { describeNumber } from "@/utils";
+
+type EChartsOption = echarts.EChartsOption;
+
+export default function drawHotEventEchartLine(
+ elId: string,
+ data: HotValueHistory[],
+) {
+ if (!data || data.length === 0) return;
+
+ const chartDom = document.getElementById(elId)!;
+ if (!chartDom) return;
+ if (echarts.getInstanceByDom(chartDom)) {
+ echarts.dispose(chartDom);
+ }
+ const myChart = echarts.init(chartDom);
+
+ // 只有一个点时,设置上下各留 50% 空间
+ let yMin, yMax;
+ if (data.length === 1) {
+ const v = data[0].hotValue;
+ yMin = v * 0.5;
+ yMax = v * 1.5;
+ }
+
+ // 处理每个点的颜色
+ const seriesData = data.map((item) => {
+ if (item.hotValue === null || item.hotValue === undefined) {
+ return {
+ value: null,
+ itemStyle: { color: "#a66ae4" },
+ };
+ }
+ return item.hotValue;
+ });
+
+ const option: EChartsOption = {
+ grid: { left: 0, right: 0, top: 0, bottom: 0, containLabel: false },
+ tooltip: {
+ trigger: "axis",
+ show: true,
+ formatter: (params: any) => {
+ const item = params[0];
+ return `${item.axisValue}<br/>热度值: ${describeNumber(item.data)}`;
+ },
+ },
+ xAxis: {
+ type: "category",
+ data: data.map((item) => item.updateTime),
+ show: false,
+ boundaryGap: false,
+ },
+ yAxis: {
+ type: "value",
+ show: false,
+ min: yMin,
+ max: yMax,
+ },
+ series: [
+ {
+ type: "line",
+ data: seriesData,
+ smooth: true,
+ symbol: data.length === 1 ? "circle" : "none",
+ symbolSize: 6,
+ lineStyle: { width: 2, color: "#a66ae4" },
+ },
+ ],
+ };
+
+ myChart.setOption(option);
+}
diff --git a/src/app/[lng]/hotContent/components/HotEvent/hotEvent.module.scss b/src/app/[lng]/hotContent/components/HotEvent/hotEvent.module.scss
new file mode 100644
index 00000000..be04d3cd
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/hotEvent.module.scss
@@ -0,0 +1,59 @@
+.hotEvent {
+ display: flex;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ :global {
+ .hotEvent-item {
+ width: calc(50% - 15px);
+ margin-bottom: 30px;
+ .anticon {
+ font-size: 20px;
+ margin-right: 8px;
+ }
+ &-head {
+ box-sizing: border-box;
+ padding: 0 15px;
+ height: 45px;
+ line-height: 45px;
+ border-radius: 10px 10px 0 0;
+ }
+ &-content {
+ overflow: auto;
+ height: 400px;
+ scrollbar-width: none;
+ &::-webkit-scrollbar {
+ display: none;
+ }
+ thead {
+ .ant-table-cell {
+ background: #fff;
+ padding: 8px 10px;
+ font-weight: 400;
+ font-size: var(--fs-xs);
+ color: var(--grayColor7);
+ border: none;
+ &:before {
+ display: none;
+ }
+ }
+ }
+ tbody {
+ .ant-table-cell {
+ padding: 10px;
+ border: none;
+ }
+ tr {
+ cursor: pointer;
+ }
+ }
+ }
+ }
+ }
+}
+
+.hotEventTitle {
+ @include omitText(1);
+ &:hover {
+ color: var(--colorPrimary5);
+ }
+}
diff --git a/src/app/[lng]/hotContent/components/HotEvent/index.tsx b/src/app/[lng]/hotContent/components/HotEvent/index.tsx
index ffbaed80..64f1d0dc 100644
--- a/src/app/[lng]/hotContent/components/HotEvent/index.tsx
+++ b/src/app/[lng]/hotContent/components/HotEvent/index.tsx
@@ -1,26 +1,188 @@
import {
ForwardedRef,
forwardRef,
- memo
+ memo,
+ useCallback,
+ useEffect,
+ useState,
} from "react";
+import styles from "./hotEvent.module.scss";
+import { Platform, platformApi } from "@/api/hot";
+import { HotTopic, HotValueHistory } from "@/api/types/hotTopic";
+import KwaiSvg from "./svgs/kwai.svg";
+import XhsSvg from "./svgs/xhs.svg";
+import BaiduSvg from "./svgs/baidu.svg";
+import DouyinSvg from "./svgs/douyin.svg";
+import TaotiaoSvg from "./svgs/totiao.svg";
+import WeiboSvg from "./svgs/weibo.svg";
+import ZhihuSvg from "./svgs/zhihu.svg";
+import BiblSvg from "./svgs/bibl.svg";
+import Icon from "@ant-design/icons";
+import { Spin, Table, type TableProps } from "antd";
+import { describeNumber } from "@/utils";
+import hotContentStyles from "../HotContent/hotContent.module.scss";
+import drawHotEventEchartLine from "@/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine";
-export interface IHotEventRef {
-}
+const material = [
+ {
+ icon: XhsSvg,
+ back: "linear-gradient(127deg, rgba(255, 38, 82, 0.1) 0%, rgba(255, 126, 140, 0.1) 100%)",
+ },
+ {
+ icon: DouyinSvg,
+ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",
+ },
+ {
+ icon: KwaiSvg,
+ back: "linear-gradient(127deg, rgba(255, 121, 2, 0.1) 0%, rgba(255, 216, 181, 0.1) 100%)",
+ },
+ {
+ icon: BiblSvg,
+ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",
+ },
+ {
+ icon: WeiboSvg,
+ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",
+ },
+ {
+ icon: BaiduSvg,
+ back: "linear-gradient(127deg, rgba(255, 121, 35, 0.1) 0%, rgba(255, 72, 20, 0.1) 100%)",
+ },
+ {
+ icon: TaotiaoSvg,
+ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",
+ },
-export interface IHotEventProps {
-}
+ {
+ icon: ZhihuSvg,
+ back: "linear-gradient(127deg, rgba(90, 246, 242, 0.1) 0%, rgba(254, 44, 85, 0.1) 100%)",
+ },
+];
+
+export interface IHotEventRef {}
+
+export interface IHotEventProps {}
+
+const HotTrendLine: React.FC<{ id: string; data: HotValueHistory[] }> = ({
+ id,
+ data,
+}) => {
+ useEffect(() => {
+ drawHotEventEchartLine(id, data);
+ }, [id, data]);
+
+ return <div id={id} style={{ width: "180px", height: "50px" }}></div>;
+};
const HotEvent = memo(
- forwardRef(
- (
- {}: IHotEventProps,
- ref: ForwardedRef<IHotEventRef>
- ) => {
- return (
- <div></div>
- );
- }
- )
+ forwardRef(({}: IHotEventProps, ref: ForwardedRef<IHotEventRef>) => {
+ const [data, setData] = useState<
+ {
+ platform: Platform;
+ topics: HotTopic[];
+ }[]
+ >([]);
+ const [loading, setLoading] = useState(false);
+
+ const getData = useCallback(async () => {
+ setLoading(true);
+ const res = await platformApi.getAllHotTopics();
+ setLoading(false);
+ setData(res?.data ?? []);
+ }, []);
+
+ useEffect(() => {
+ getData();
+ }, []);
+
+ const getColumns = useCallback((hotTopic: HotTopic[]) => {
+ const columns: TableProps<HotTopic>["columns"] = [
+ {
+ title: "排名",
+ width: 60,
+ render: (text, data, ind) => (
+ <>
+ {ind <= 2 ? (
+ <div
+ className={hotContentStyles.rankingTopthree}
+ style={{ width: "20px", height: "20px", lineHeight: "20px" }}
+ >
+ {ind + 1}
+ </div>
+ ) : (
+ <p style={{ width: "20px", textAlign: "center" }}>{ind + 1}</p>
+ )}
+ </>
+ ),
+ },
+ {
+ title: "热点事件",
+ render: (text, record) => {
+ return (
+ <span
+ className={styles.hotEventTitle}
+ title={record.title}
+ onClick={() => {
+ if (!record.url) return;
+ window.open(record.url, "_blank");
+ }}
+ >
+ {record.title}
+ </span>
+ );
+ },
+ },
+ {
+ width: 120,
+ title: "热度值",
+ align: "center",
+ render: (text, record) => {
+ return <span>{describeNumber(record.hotValue)}</span>;
+ },
+ },
+
+ ...(hotTopic[0]?.hotValueHistory?.length >= 1
+ ? [
+ {
+ width: 200,
+ title: "热度趋势",
+ render: (text: string, record: HotTopic) => (
+ <HotTrendLine id={record._id} data={record.hotValueHistory} />
+ ),
+ },
+ ]
+ : []),
+ ];
+ return columns;
+ }, []);
+
+ return (
+ <Spin spinning={loading} style={{ minHeight: "60vh" }}>
+ <div className={styles.hotEvent}>
+ {data.map(({ platform, topics }, i) => {
+ return (
+ <div className="hotEvent-item" key={platform.id}>
+ <div
+ className="hotEvent-item-head"
+ style={{ background: material[i].back }}
+ >
+ <Icon component={material[i].icon} /> {platform.name} · 热点
+ </div>
+ <div className="hotEvent-item-content">
+ <Table
+ dataSource={topics}
+ columns={getColumns(topics)}
+ rowKey={(record) => record._id}
+ pagination={false}
+ />
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ </Spin>
+ );
+ }),
);
export default HotEvent;
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/baidu.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/baidu.svg
new file mode 100644
index 00000000..30c05a26
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/baidu.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-baidu_svg__a" x1="1" y1="0.95" x2="0" y2="0.055" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#6e87ef"></stop><stop offset="1" stop-color="#4e6ef2"></stop></linearGradient></defs><g data-name="\u7EC4 77946"><path data-name="\u8054\u5408 533" d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" fill="url(#icon-baidu_svg__a)"></path><g data-name="\u7EC4 64190"><path data-name="\u77E9\u5F62 19598" fill="none" d="M3.796 3.991h13.062v13.062H3.796z"></path><path data-name="\u8DEF\u5F84 33700" d="M6.169 10.314c1.305-.28 1.127-1.84 1.087-2.181-.064-.526-.682-1.445-1.521-1.372-1.056.095-1.211 1.621-1.211 1.621-.142.705.342 2.212 1.644 1.932Zm1.385 2.712a1.109 1.109 0 0 0-.05.634.72.72 0 0 0 .621.572h.683v-1.67h-.731a.8.8 0 0 0-.523.464ZM8.59 7.7c.722 0 1.3-.83 1.3-1.855s-.579-1.854-1.3-1.854-1.3.83-1.3 1.854S7.874 7.7 8.59 7.7Zm3.1.122c.963.125 1.583-.9 1.705-1.683a1.751 1.751 0 0 0-1.176-1.836c-.683-.157-1.536.937-1.614 1.651-.093.873.124 1.744 1.086 1.868Zm2.36 4.58a13.273 13.273 0 0 1-2.36-2.4 1.918 1.918 0 0 0-3.415-.156 7.76 7.76 0 0 1-1.55 1.682c-.125.155-1.8 1.058-1.428 2.709a1.8 1.8 0 0 0 1.678 1.619 7.319 7.319 0 0 0 2.079-.155 4.367 4.367 0 0 1 2.078.062s2.609.873 3.322-.809a2.1 2.1 0 0 0-.4-2.555Zm-4.464 2.5h-1.7a1.492 1.492 0 0 1-1.062-.731 1.936 1.936 0 0 1-.125-1.17 1.488 1.488 0 0 1 1.219-1.1h.9v-1.11l.769.012v4.1Zm3.159-.012h-1.948c-.757-.195-.792-.732-.792-.732v-2.156l.792-.011v1.937c.048.206.306.245.306.245h.8v-2.171h.843v2.889Zm2.762-5.763a1.51 1.51 0 0 0-1.458-1.5c-1.151 0-1.3 1.059-1.3 1.808 0 .715.061 1.713 1.489 1.68s1.274-1.611 1.274-1.985Z" fill="#fff"></path></g></g></svg>
\ No newline at end of file
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/bibl.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/bibl.svg
new file mode 100644
index 00000000..1d96864a
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/bibl.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-bilibili_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#f38ab3"></stop><stop offset="1" stop-color="#f06198"></stop></linearGradient></defs><g data-name="\u7EC4 77944"><path data-name="\u8054\u5408 533" d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" fill="url(#icon-bilibili_svg__a)"></path><g data-name="\u7EC4 64190"><path data-name="\u77E9\u5F62 19598" fill="none" d="M3 4.182h13.062v13.062H3z"></path><path data-name="\u8DEF\u5F84 33695" d="M13.662 9.673a2.987 2.987 0 0 1 .331-.036 6.213 6.213 0 0 1 .111.942c-.033.006-.268.06-.268.06-.018-.123-.172-.888-.175-.966m.452-.087.123.978c.063 0 .319-.021.343-.024-.036-.37-.1-.954-.1-.954a.942.942 0 0 0-.367 0m-.242 1.357a2.136 2.136 0 0 1 .759-.072c.1.37.289 2.447.307 2.532-.126.015-.542.051-.575.06-.027-.157-.491-2.42-.491-2.52m2.062-1.246a3.248 3.248 0 0 1 .331-.009 7.687 7.687 0 0 1 0 .948L16 10.66c-.006-.12-.072-.882-.066-.963m.455-.024.024.966c.063 0 .316.015.343.012-.006-.37 0-.954 0-.954a1.663 1.663 0 0 0-.367-.024M16 10.97a2.172 2.172 0 0 1 .762.015c.042.433.036 2.453.042 2.538-.129 0-.542.006-.575.012-.006-.157-.238-2.465-.229-2.565m-1.323-2.483c.328 1.674.578 4.533.587 4.717 0 0 .259.006.551.024-.172-1.8-.382-4.684-.379-4.777-.072-.081-.759.036-.759.036m-.722 3.958c-.063-.47-1.743-1-2.688-.831 0 0-.117-1.036-.163-2.038a21.88 21.88 0 0 1 .003-1.84A7.131 7.131 0 0 0 10 8.155a43.451 43.451 0 0 1 .759 5.72 5.178 5.178 0 0 0 1.382-.114c.873-.169 1.905-.7 1.818-1.315m-2.059.845-.146-1.063a7.694 7.694 0 0 1 1.039.379 9.682 9.682 0 0 1-.891.683M6.667 9.673A2.987 2.987 0 0 1 7 9.636a6.213 6.213 0 0 1 .111.942c-.033.006-.268.06-.268.06-.018-.123-.172-.888-.175-.966m.452-.087.123.978c.063 0 .319-.021.343-.024l-.1-.954a.942.942 0 0 0-.367 0m-.245 1.358a2.136 2.136 0 0 1 .759-.072c.1.37.289 2.447.307 2.532-.126.015-.542.051-.575.06-.027-.157-.491-2.42-.491-2.52m2.062-1.246a3.248 3.248 0 0 1 .331-.009 7.686 7.686 0 0 1 0 .948L9 10.66c0-.124-.067-.882-.064-.963m.455-.024.024.966c.063 0 .316.015.343.012-.006-.37 0-.954 0-.954a1.868 1.868 0 0 0-.367-.024M9 10.97a2.172 2.172 0 0 1 .762.015c.042.433.036 2.453.042 2.538-.129 0-.542.006-.575.012 0-.157-.238-2.465-.229-2.565M7.681 8.487c.328 1.674.578 4.533.587 4.717 0 0 .259.006.551.024a179.537 179.537 0 0 1-.379-4.781c-.072-.078-.759.039-.759.039m-.723 3.959c-.063-.47-1.743-1-2.688-.831 0 0-.117-1.036-.163-2.038a20.414 20.414 0 0 1 .004-1.84A7.467 7.467 0 0 0 3 8.155a43.451 43.451 0 0 1 .759 5.72 5.178 5.178 0 0 0 1.381-.114c.873-.169 1.905-.7 1.818-1.315m-2.053.846-.147-1.064a7.694 7.694 0 0 1 1.042.38 9.682 9.682 0 0 1-.891.683" fill="#fff"></path></g></g></svg>
\ No newline at end of file
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/douyin.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/douyin.svg
new file mode 100644
index 00000000..63eba83a
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/douyin.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22.155" height="20.5" viewBox="0 0 22.155 20.5"><defs><style>.icon-douyin_svg__d{fill:#00faf0}.icon-douyin_svg__e{fill:#ff0050}</style></defs><path d="M2.839 18.982a1 1 0 0 1-1-1v-7.1a.5.5 0 0 1-.189-.08L.343 9.9a.5.5 0 0 1 0-.824l1.307-.9a.5.5 0 0 1 .189-.08V1a1 1 0 0 1 1-1h17.924v18.982Z" transform="rotate(180 10.382 9.49)" style="fill: rgb(37, 244, 238);"></path><path d="M2.839 18.982a1 1 0 0 1-1-1v-7.1a.5.5 0 0 1-.189-.08L.343 9.9a.5.5 0 0 1 0-.824l1.307-.9a.5.5 0 0 1 .189-.08V1a1 1 0 0 1 1-1h17.924v18.982Z" transform="rotate(180 11.141 10.25)" style="fill: rgb(254, 44, 85);"></path><path d="M18.684.758a1 1 0 0 1 1 1v7.1a.5.5 0 0 1 .189.08l1.307.902a.5.5 0 0 1 0 .824l-1.307.9a.5.5 0 0 1-.189.08v7.096a1 1 0 0 1-1 1H.76V.758Z"></path><path d="M0 0h13.062v13.062H0z" transform="translate(3.266 3.991)" style="fill: none;"></path><path class="icon-douyin_svg__d" d="M9.026 9.549v-.354a3.114 3.114 0 0 0-.374-.025 2.771 2.771 0 0 0-1.591 5.042 2.752 2.752 0 0 1-.744-1.886 2.783 2.783 0 0 1 2.709-2.777Z"></path><path class="icon-douyin_svg__d" d="M9.09 13.582a1.264 1.264 0 0 0 1.261-1.216V6.334h1.1a1.954 1.954 0 0 1-.035-.384H9.913v6.032a1.264 1.264 0 0 1-1.261 1.216 1.233 1.233 0 0 1-.586-.148 1.256 1.256 0 0 0 1.024.532ZM13.518 8.383v-.335a2.078 2.078 0 0 1-1.143-.34 2.141 2.141 0 0 0 1.143.675Z"></path><path class="icon-douyin_svg__e" d="M12.381 7.708a2.088 2.088 0 0 1-.517-1.374h-.4a2.119 2.119 0 0 0 .917 1.374ZM8.652 10.672a1.263 1.263 0 0 0-.586 2.383 1.262 1.262 0 0 1 1.025-2 1.192 1.192 0 0 1 .374.059v-1.54a3.12 3.12 0 0 0-.374-.025h-.065v1.182a1.17 1.17 0 0 0-.374-.059Z"></path><path class="icon-douyin_svg__e" d="M13.519 8.382v1.172a3.577 3.577 0 0 1-2.094-.675v3.058a2.769 2.769 0 0 1-4.36 2.27 2.772 2.772 0 0 0 4.8-1.886V9.263a3.588 3.588 0 0 0 2.094.675V8.431a2.6 2.6 0 0 1-.44-.049Z"></path><path d="M6.754 7.149V4.091a3.588 3.588 0 0 0 2.094.675V3.594a2.123 2.123 0 0 1-1.143-.674 2.072 2.072 0 0 1-.916-1.374h-1.1v6.031a1.264 1.264 0 0 1-1.265 1.217A1.251 1.251 0 0 1 3.4 8.267a1.263 1.263 0 0 1 .586-2.383 1.192 1.192 0 0 1 .374.059V4.761a2.773 2.773 0 0 0-2.7 2.767 2.743 2.743 0 0 0 .74 1.886 2.766 2.766 0 0 0 4.354-2.265Z" transform="translate(4.67 4.788)" style="fill: rgb(255, 255, 255);"></path></svg>
\ No newline at end of file
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/kwai.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/kwai.svg
new file mode 100644
index 00000000..a4ffc999
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/kwai.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22.136" height="20.5" viewBox="0 0 22.136 20.5"><defs><linearGradient id="icon-ks_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ff7800"></stop><stop offset="1" stop-color="#fff"></stop></linearGradient><clipPath id="icon-ks_svg__b"><path d="M0 0h13.062v13.062H0z" style="fill: rgb(255, 255, 255);"></path></clipPath><filter id="icon-ks_svg__c" x="-6.259" y="-6.911" width="33.018" height="34.143" filterUnits="userSpaceOnUse"><feOffset></feOffset><feGaussianBlur stdDeviation="4" result="d"></feGaussianBlur><feFlood flood-color="#a83e01" flood-opacity="0.302"></feFlood><feComposite operator="in" in2="d"></feComposite><feComposite in="SourceGraphic"></feComposite></filter></defs><path d="M2.991 20.5a1 1 0 0 1-1-1v-7.725a.5.5 0 0 1-.148-.071l-1.5-1.043a.5.5 0 0 1 0-.821L1.842 8.8a.5.5 0 0 1 .148-.071V1a1 1 0 0 1 1-1h19.27v20.5Z" transform="rotate(180 11.13 10.25)" style="fill: url(&quot;#icon-ks_svg__a&quot;);"></path><g transform="translate(3.628 3.628)" style="clip-path: url(&quot;#icon-ks_svg__b&quot;);"><path transform="rotate(2 -7.706 2.078)" d="M0 0h12.919v12.919H0z" style="fill: none;"></path><g style="filter: url(&quot;#icon-ks_svg__c&quot;);"><path d="M6.414 5.664a1.6 1.6 0 0 1 1.6 1.594v1.266a1.6 1.6 0 0 1-1.6 1.594H4.056a1.6 1.6 0 0 1-1.524-1.1l-1.4.7a.78.78 0 0 1-1.05-.342A.77.77 0 0 1 0 9.029V6.758a.779.779 0 0 1 1.13-.69l1.4.7a1.6 1.6 0 0 1 1.526-1.104h2.358Zm-.01.821H4.08a.8.8 0 0 0-.8.784V8.5a.8.8 0 0 0 .789.8h2.322a.8.8 0 0 0 .8-.784V7.281a.8.8 0 0 0-.788-.8Zm-5.367.494a.212.212 0 0 0-.212.207v1.427a.213.213 0 0 0 .305.19l1.319-.669V7.66L1.133 7a.213.213 0 0 0-.1-.023ZM3 .975a2.171 2.171 0 0 1 1.893 1.1 1.851 1.851 0 1 1-.239 2.449A2.164 2.164 0 1 1 3 .975Zm0 .867a1.29 1.29 0 1 0 1.3 1.29A1.293 1.293 0 0 0 3 1.842Zm3.16.61a.985.985 0 1 0 .991.985.987.987 0 0 0-.991-.985Z" transform="translate(2.61 .98)" style="stroke: transparent; stroke-miterlimit: 10; fill-rule: evenodd; fill: rgb(255, 255, 255);"></path></g></g></svg>
\ No newline at end of file
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/totiao.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/totiao.svg
new file mode 100644
index 00000000..ff3c1c44
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/totiao.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-toutiao_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ee6b6b"></stop><stop offset="1" stop-color="#f04142"></stop></linearGradient></defs><g data-name="\u7EC4 77945"><path data-name="\u8054\u5408 533" d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" fill="url(#icon-toutiao_svg__a)"></path><g data-name="\u7EC4 77948" fill="#fff"><path data-name="\u8DEF\u5F84 33696" d="M13.416 11.667h-.049c-.04.027-.142 0-.2 0a1.888 1.888 0 0 0-.547.053 1.848 1.848 0 0 1 .218.391c.12.2.258.4.373.6a4.085 4.085 0 0 0 .658-.04h.187a10.969 10.969 0 0 0-.6-1.009Zm-3.56-2.1a2.559 2.559 0 0 1 .444.173c.093 0 .107-.116.147-.187.111-.169.24-.347.351-.52a4.033 4.033 0 0 0 .733-.031h.267a3.669 3.669 0 0 0 .444-.04c.236-.053.524.027.738-.044a.169.169 0 0 1 0 .093c-.044.089-.222.116-.311.16l-.64.329a1.363 1.363 0 0 0-.258.12 2.173 2.173 0 0 1-.587-.218 1.088 1.088 0 0 1-.369-.12c-.1.027-.262.382-.347.471 0 .084.444.2.533.24-.311.147-.609.324-.924.444-.062.027-.187 0-.24.027h-.176a2.181 2.181 0 0 0 0 .538l.564-.027a1.655 1.655 0 0 0 .173-.093c.249-.107.476-.231.711-.347a3.428 3.428 0 0 0 .6-.3 1.911 1.911 0 0 1 .484.173c.2.08.4.116.6.2s.3.133.444.187l.609-.022a1.779 1.779 0 0 0 0-.533l-.4.031a4.715 4.715 0 0 1-.471-.187 2.388 2.388 0 0 1-.48-.173l1.333-.658a4.725 4.725 0 0 0 0-.938c-.658.053-1.28.08-1.973.12a2.89 2.89 0 0 1-.733.027l-.631-.307c-.178.293-.382.578-.56.889a1.78 1.78 0 0 1-.271.444c.014.055.116.05.196.077Zm1.142 2.231c-.049.036-.142 0-.213 0a4.69 4.69 0 0 0-.564.053c-.1.053-.089.169-.133.24a5.6 5.6 0 0 0-.28.511c-.049.08-.067.191-.138.253a.062.062 0 0 1 0 .04l.822-.04c.129-.249.271-.507.4-.751a1.515 1.515 0 0 1 .138-.267c-.005-.03-.005-.014-.032-.041Zm-2.369-.129-.889.044a1.245 1.245 0 0 0 .2.4c.151.3.307.582.444.889l.564-.027a.826.826 0 0 0 .329-.027c.027-.08-.124-.258-.164-.329-.177-.334-.315-.654-.484-.952Z"></path><path data-name="\u8DEF\u5F84 33697" d="M13.847 11.494v-.529c-.609 0-1.1.089-1.684.084v-.271a2.58 2.58 0 0 0-.524.027 1.107 1.107 0 0 0-.271 0h-.022a.925.925 0 0 1 0 .271l-1.676.089v.538a3.015 3.015 0 0 0 .564-.036c.164-.036.347 0 .493-.027s.391.036.493-.027h.138v.8a1.334 1.334 0 0 0 0 .373c.209-.022.542-.04.791-.053v-.8a1.472 1.472 0 0 1 .04-.342c.56 0 1.107-.058 1.644-.093Zm-7.471.12h.267a.849.849 0 0 0-.147.187c-.107.147-.222.293-.329.444a1.24 1.24 0 0 0-.218.284 5.458 5.458 0 0 0-.747.062h-.178v.538a3.59 3.59 0 0 0 .724-.053 1.662 1.662 0 0 1 .3 0c.138-.027.382.036.484-.027a1.88 1.88 0 0 0 .347-.444c.258-.351.6-.7.831-1.071.267 0 .636 0 1.236-.04a1.371 1.371 0 0 0 .227 0 1.849 1.849 0 0 0 0-.542l-.987.053v-1.62a2.893 2.893 0 0 0 0-.733h-.36a.961.961 0 0 0-.227 0 1.006 1.006 0 0 0-.231 0v1.609a2.929 2.929 0 0 1 0 .738l-2.373.133v.538a5.56 5.56 0 0 0 .942-.053c.145-.007.328.051.439-.003Z"></path><path data-name="\u8DEF\u5F84 33698" d="M14.167 5.001H4.833A1.333 1.333 0 0 0 3.5 6.334v9.333a1.333 1.333 0 0 0 1.333 1.334h9.333a1.333 1.333 0 0 0 1.334-1.333V6.334a1.333 1.333 0 0 0-1.333-1.333Zm.609 8.48-10.534.64v-6.32l10.52-.636Z"></path><path data-name="\u8DEF\u5F84 33699" d="M5.54 9.228a4.244 4.244 0 0 0 .444.551.351.351 0 0 0 .213 0h.689c0-.129-.124-.187-.187-.267-.138-.209-.324-.373-.444-.578l-.658.04h-.276c.037.094.152.169.219.254Zm.444 1.582v.027a.888.888 0 0 0 .267 0l.618-.058c0-.093-.111-.142-.16-.213l-.307-.413c-.049-.067-.133-.12-.164-.2a1.977 1.977 0 0 0-.56.031.747.747 0 0 0-.244 0 .253.253 0 0 0-.116 0c.124.2.329.369.444.56.067.093.124.24.222.271Z"></path></g></g></svg>
\ No newline at end of file
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/weibo.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/weibo.svg
new file mode 100644
index 00000000..590ab6c4
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/weibo.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-weibo_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ff7b23"></stop><stop offset="1" stop-color="#ff330e"></stop></linearGradient><style>.icon-weibo_svg__c{fill:#fff}</style></defs><path d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" style="fill: url(&quot;#icon-weibo_svg__a&quot;);"></path><path transform="translate(3.796 3.991)" d="M0 0h13.062v13.062H0z" style="fill: none;"></path><path class="icon-weibo_svg__c" d="M13.564 11.35a1.419 1.419 0 0 0-1.016-.909c-.149-.014-.284-.1-.185-.27a.889.889 0 0 0-.07-1.036c-.351-.358-1.118-.223-1.661.008s-.512.07-.5-.088.309-1.1-.584-1.212c-1.17-.147-2.672 1.337-3.2 2.192a3.543 3.543 0 0 0-.675 2.163h.005c.1 1.206 1.83 2.167 3.955 2.167 1.828 0 3.367-.711 3.822-1.678a.06.06 0 0 1 .006-.011 1.472 1.472 0 0 0 .106-.319 1.866 1.866 0 0 0-.003-1.007Zm-4.189 2.487c-1.513 0-2.74-.833-2.74-1.859s1.226-1.859 2.74-1.859 2.74.833 2.74 1.859-1.228 1.859-2.741 1.859ZM13.101 9.718a.2.2 0 0 0 .086.019.221.221 0 0 0 .2-.14 1.135 1.135 0 0 0 .086-.438 1.11 1.11 0 0 0-1.1-1.12 1.07 1.07 0 0 0-.425.089.232.232 0 0 0-.118.3.222.222 0 0 0 .289.123.641.641 0 0 1 .253-.053.668.668 0 0 1 .6.925.228.228 0 0 0 .118.3Z"></path><path class="icon-weibo_svg__c" d="M12.372 6.638a2.542 2.542 0 0 0-.734.108.344.344 0 0 0-.225.425.333.333 0 0 0 .41.233h.005a1.879 1.879 0 0 1 .543-.08 1.927 1.927 0 0 1 1.9 1.947 2.041 2.041 0 0 1-.081.566.343.343 0 0 0 .222.425.323.323 0 0 0 .1.014.337.337 0 0 0 .32-.242 2.7 2.7 0 0 0 .11-.764 2.606 2.606 0 0 0-2.571-2.631ZM9.124 10.798a1.318 1.318 0 1 0 1.461 1.31 1.391 1.391 0 0 0-1.461-1.31Zm-.477 2.161a.525.525 0 1 1 .512-.537v.012a.519.519 0 0 1-.513.525Zm.958-.945a.2.2 0 0 1-.271.1.217.217 0 0 1-.052-.3.205.205 0 0 1 .271-.1.218.218 0 0 1 .05.3Z"></path></svg>
\ No newline at end of file
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/xhs.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/xhs.svg
new file mode 100644
index 00000000..5d30c15e
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/xhs.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22.27" height="20.681" viewBox="0 0 22.27 20.681"><defs><linearGradient id="icon-xhs_svg__a" x1="1" y1="0.98" x2="-0.289" y2="-0.286" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#ff2451"></stop><stop offset="1" stop-color="#ffa5a5"></stop></linearGradient><style>.icon-xhs_svg__b{fill:none}</style></defs><path d="M3.005 20.681a1 1 0 0 1-1-1v-7.8a.5.5 0 0 1-.145-.07l-1.522-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V1a1 1 0 0 1 1-1h19.39v20.681Z" transform="rotate(180 11.197 10.34)" style="fill: url(&quot;#icon-xhs_svg__a&quot;);"></path><path class="icon-xhs_svg__b" d="M2.54 2.902h15.965v15.965H2.54z"></path><g transform="translate(2.625 2.987)"><rect class="icon-xhs_svg__b" width="15.005" height="15.005" rx="2"></rect><path d="M128.219 378.663a6.3 6.3 0 0 1-.11 1.979 1.285 1.285 0 0 1-.11.44s.165.33.55.934c.715-.6.66-3.353.66-3.353Zm4.4 2.034a8.267 8.267 0 0 1-.111-1.979h-.988s-.111 2.748.659 3.353a5.78 5.78 0 0 1 .55-.934c-.057-.111-.057-.275-.112-.437Zm-2.748 1.044h-.66l.33.77h.879c.33 0 .44-.6.44-.6v-4.451h-.99v4.287Zm4.451-1.264.825-1.649h-.825l.5-1.374h-.934l-.716 1.814a.242.242 0 0 0 .219.33h.5l-.55 1.264a.242.242 0 0 0 .219.33h1.209l.275-.716h-.713Zm-1.154 1.155-.5.88h1.539l.386-.88h-1.43Zm3.957-2.913h.5v-.99h-2.2v.935h.659v2.913h-.88l-.44.934h3.188v-.88h-.824Zm4.508.88h-.22v-.88a.88.88 0 0 0-.879-.934h-.66v-.44h-.934v.44h-.659v.879h.66v.88H138v.88h.934v2.088h.934v-2.033h1.76v1.32h-.928l.33.769h.769a.728.728 0 0 0 .714-.715v-1.319a.825.825 0 0 0-.882-.934Zm-1.1 0h-.66v-.935h.66Zm2.033-1.374a.44.44 0 1 0-.88 0v.439h.44a.473.473 0 0 0 .44-.44Z" transform="translate(-127.781 -372.49)" style="fill: rgb(255, 255, 255);"></path></g></svg>
\ No newline at end of file
diff --git a/src/app/[lng]/hotContent/components/HotEvent/svgs/zhihu.svg b/src/app/[lng]/hotContent/components/HotEvent/svgs/zhihu.svg
new file mode 100644
index 00000000..c1acf5e0
--- /dev/null
+++ b/src/app/[lng]/hotContent/components/HotEvent/svgs/zhihu.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="23.27" height="21.681" viewBox="0 0 23.27 21.681"><defs><linearGradient id="icon-zhihu_svg__a" x1="0.085" x2="0.94" y2="0.967" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#1387e7"></stop><stop offset="1" stop-color="#449feb"></stop></linearGradient></defs><g data-name="\u7EC4 77947"><path data-name="\u8054\u5408 533" d="M4.006 20.681a2 2 0 0 1-2-2v-6.8a.5.5 0 0 1-.145-.07l-1.523-1.06a.5.5 0 0 1 0-.821L1.86 8.871a.506.506 0 0 1 .145-.07V2a2 2 0 0 1 2-2h16.39a2 2 0 0 1 2 2v16.681a2 2 0 0 1-2 2Z" transform="rotate(180 11.447 10.59)" stroke="rgba(0,0,0,0)" stroke-miterlimit="10" fill="url(#icon-zhihu_svg__a)"></path><g data-name="\u7EC4 64190"><path data-name="\u77E9\u5F62 19598" fill="none" d="M4.296 4.491h13.062v13.062H4.296z"></path><g data-name="\u7EC4 504" transform="translate(5.667 5.348)"><rect data-name="\u77E9\u5F62 3265" width="10.667" height="10.667" rx="2" fill="#fff"></rect><path data-name="\u8DEF\u5F84 751" d="M5.198 5.282c-.039-.107-.072-.128-.188-.128H3.864c-.053 0-.1.005-.093-.079q.056-.82.048-1.641c0-.081.017-.105.1-.1.368.005.737 0 1.1 0 .058 0 .089-.012.081-.076a2.141 2.141 0 0 0-.015-.222c-.049-.234-.1-.269-.3-.266-.672.005-1.343 0-2.014 0-.1 0-.1 0-.072-.1q.117-.429.276-.846c.021-.054.011-.074-.049-.065a.851.851 0 0 0-.757.582c-.16.468-.317.939-.516 1.392-.073.165-.15.33-.226.494.01.005.015.011.02.011a1.056 1.056 0 0 0 .774-.365 1.473 1.473 0 0 0 .234-.491.068.068 0 0 1 .075-.055h.606c.045 0 .057.012.056.056v.335c-.022.252-.016.5-.016.754l-.019.562c0 .119 0 .12-.12.12H1.862a.266.266 0 0 0-.243.146.258.258 0 0 0-.068.133.363.363 0 0 0-.064.181c-.052.127-.049.133.08.133h1.527a4.319 4.319 0 0 1-1.763 3.1.289.289 0 0 0 .133.044 1.412 1.412 0 0 0 .512 0 1.179 1.179 0 0 0 .7-.355 3.664 3.664 0 0 0 .675-1.194c.052-.139.093-.283.145-.444l1.339 1.6a.35.35 0 0 0 .025-.06 2.171 2.171 0 0 0 .061-.51.68.68 0 0 0-.127-.447q-.415-.495-.85-.971c-.044-.047-.076-.044-.121 0-.089.075-.181.145-.277.222a.113.113 0 0 1 0-.034 4.183 4.183 0 0 0 .175-.911c0-.042.028-.039.056-.039h1.4c.064 0 .093-.011.089-.084a1.44 1.44 0 0 0-.065-.385Zm3.468-2.521c0-.065-.013-.089-.084-.089H5.668c-.067 0-.082.021-.082.083V8.04c0 .047.016.061.062.06h.409c.08 0 .13.017.15.1.048.172.1.342.145.515.014.053.039.032.063.016l.455-.284.3-.192a.96.96 0 0 0 .215-.138.6.6 0 0 1 .089-.012h1.089c.077 0 .1-.016.1-.1V2.763ZM7.379 7.525h.485-.488Zm-.237.1c-.145.083-.282.178-.423.269-.072.047-.082.044-.1-.039l-.093-.31c-.01-.035-.035-.037-.063-.038-.057 0-.114-.007-.172 0s-.073-.019-.073-.074V3.367c0-.078.019-.1.1-.1q.814.005 1.63 0c.081 0 .1.024.1.1V7.499c-.216 0-.431 0-.646.005-.029 0-.07-.017-.073.037-.077-.008-.122.056-.18.089Zm.075.568-.006.007Z" fill="#1387e7"></path></g></g></g></svg>
\ No newline at end of file