From 8dcd8f71955f84819c9ebdcfa39c8a72ba262460 Mon Sep 17 00:00:00 2001 From: waterWang Date: Sun, 2 Aug 2026 20:47:07 +0800 Subject: [PATCH] feat: add Wuhan-2020 COVID-19 rescue info platform archive page (Closes #99) Create a static archive page for the wuhan2020/WebApp project within the Open-Source-Bazaar site. The page displays: - Hero section with project name and description - Mission statement and project background - Tech stack overview - 8 category cards (Hospital, Logistics, Hotel, Factory, Donation, Clinic, Map, Community) - Data source references - Archive notice Built with Next.js + React-Bootstrap + MobX, following existing page patterns. --- components/Navigator/MainNavigator.tsx | 4 + pages/wuhan-2020.tsx | 316 +++++++++++++++++++++++++ 2 files changed, 320 insertions(+) create mode 100644 pages/wuhan-2020.tsx diff --git a/components/Navigator/MainNavigator.tsx b/components/Navigator/MainNavigator.tsx index 25350fa..e8ed366 100644 --- a/components/Navigator/MainNavigator.tsx +++ b/components/Navigator/MainNavigator.tsx @@ -85,6 +85,10 @@ const topNavBarMenu = ({ t }: typeof i18n): MenuItem[] => [ href: '/open-library', title: t('open_library'), }, + { + href: '/wuhan-2020', + title: '武汉 2020', + }, ]; export interface MainNavigatorProps { diff --git a/pages/wuhan-2020.tsx b/pages/wuhan-2020.tsx new file mode 100644 index 0000000..3d0aa3c --- /dev/null +++ b/pages/wuhan-2020.tsx @@ -0,0 +1,316 @@ +import { observer } from 'mobx-react'; +import { FC, useContext } from 'react'; +import { + Badge, + Card, + Col, + Container, + Row, +} from 'react-bootstrap'; + +import { PageHead } from '../components/Layout/PageHead'; +import { I18nContext } from '../models/Translation'; + +interface Category { + icon: string; + title: string; + description: string; + href?: string; + badge?: string; +} + +const categories: Category[] = [ + { + icon: '🏥', + title: '医院', + description: + '武汉及周边地区医院物资需求信息,包括防护服、口罩、消毒液等医疗物资的供需对接', + href: 'https://github.com/wuhan2020/WebApp', + badge: 'Hospital', + }, + { + icon: '🚚', + title: '物流', + description: + '救援物资运输渠道信息,物流公司运力资源、运输路线及配送协调', + href: 'https://github.com/wuhan2020/WebApp', + badge: 'Logistics', + }, + { + icon: '🏨', + title: '酒店', + description: + '为医护人员提供免费或优惠住宿的酒店信息,以及酒店资源对接', + href: 'https://github.com/wuhan2020/WebApp', + badge: 'Hotel', + }, + { + icon: '🏭', + title: '生产', + description: + '医疗物资生产企业信息,包括产能、原材料需求及供应渠道对接', + href: 'https://github.com/wuhan2020/WebApp', + badge: 'Factory', + }, + { + icon: '❤️', + title: '捐赠', + description: + '社会捐赠渠道信息,资金与物资捐赠的对接平台及需求公示', + href: 'https://github.com/wuhan2020/WebApp', + badge: 'Donation', + }, + { + icon: '💊', + title: '义诊', + description: + '在线义诊服务平台,连接医疗专家与社区居民的远程问诊渠道', + href: 'https://github.com/wuhan2020/WebApp', + badge: 'Clinic', + }, + { + icon: '🗺️', + title: '疫情地图', + description: + '基于实时数据的疫情分布地图,展示各省市确诊、疑似、治愈等统计数据', + href: 'https://github.com/wuhan2020/WebApp/tree/dev/source/page/Map', + badge: 'Map', + }, + { + icon: '👥', + title: '开放社区', + description: + '志愿者协作社区,汇聚开发、运维、数据、医疗等各方力量共同抗疫', + href: 'https://github.com/wuhan2020/WebApp', + badge: 'Community', + }, +]; + +const techStack = [ + { name: 'TypeScript', icon: '📘' }, + { name: 'React / WebCell', icon: '⚛️' }, + { name: 'MobX', icon: '📦' }, + { name: 'ECharts', icon: '📊' }, + { name: 'Supabase', icon: '🗄️' }, + { name: 'Bootstrap', icon: '🎨' }, +]; + +const Wuhan2020Page: FC = observer(() => { + const { t } = useContext(I18nContext); + + return ( + <> + + + {/* Hero Section */} +
+ + + +

+ 🦠 新冠战疫信息平台 +

+

+ 武汉新型冠状病毒防疫信息平台 — + 开放数据存档 +

+

+ 本页面是 wuhan2020/WebApp 开源项目的存档展示,记录 2020 + 年抗疫期间,由社区志愿者共同构建的救援信息协作平台。 +

+ + + +
+ 🏥 +
+ + 🌟 392 Stars · 140 Forks + + +
+
+
+ + {/* Mission Section */} +
+ + + +

📋 项目简介

+
+

+ 新冠战疫信息平台(Wuhan2020 + WebApp)是一个在 2020 + 年新冠疫情爆发期间,由全球华人开发者志愿者自发组织构建的 + 渐进式 Web 应用。 +

+

+ 平台旨在高效对接救援物资、医疗资源、物流运输、酒店住宿等关键信息,帮助抗疫一线的医护人员和受困群众。采用开源协作模式,汇集了来自全球的开发者、数据科学家、医疗专家等志愿者的力量。 +

+

+ 本项目作为开放数据存档,保留了原始平台的核心功能展示和数据结构,供历史研究、学术参考和社区纪念。 +

+
+ +
+
+
+ + {/* Tech Stack Section */} +
+ +

🛠️ 技术栈

+ + {techStack.map(({ name, icon }) => ( + + +
{icon}
+
{name}
+
+ + ))} +
+
+
+ + {/* Categories Section */} +
+ +

📂 功能模块

+

+ 平台涵盖以下核心功能模块,覆盖抗疫救援的各个方面 +

+ + {categories.map( + ({ icon, title, description, href, badge }) => ( + + + +
+ {icon} +
+ {title} + {badge && ( + + {badge} + + )} +
+
+ + {description} + + {href && ( + + 查看详情 → + + )} +
+
+ + ), + )} +
+
+
+ + {/* Data Sources Section */} +
+ + + +

📊 数据源

+
+
    +
  • + 🦠 丁香园疫情数据 —{' '} + + DXY-COVID-19-Data + + ,由 BlankerL 维护的丁香园疫情数据集合 +
  • +
  • + 🗺️ 高德地图 API — 地图数据与地理信息 +
  • +
  • + 📋 社区贡献数据 — 由志愿者提交的医院、物流、捐赠等信息 +
  • +
  • + 📦 Supabase 后端 — 基于 PostgreSQL 的实时数据存储与查询 +
  • +
+
+ +
+
+
+ + {/* Archive Notice */} +
+ + + +
+

📜 存档说明

+

+ 本页面为 wuhan2020/WebApp 项目的存档展示版。 +

+

+ 原始项目仍托管在{' '} + + GitHub + + ,所有代码和数据遵循 AGPL-3.0 开源协议。 +

+

+ 感谢所有为抗疫做出贡献的志愿者和开源社区成员。🙏 +

+
+ +
+
+
+ + ); +}); + +export default Wuhan2020Page; \ No newline at end of file