From 0bd6725f35d028395d5e4c04883e94bfbb651f25 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Sat, 12 Jul 2025 21:52:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(UI):=20=E4=B8=BA=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=B7=BB=E5=8A=A0Font=20Awesome=E5=9B=BE?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在developer_apps.php和tags.php中为平台信息添加对应的Font Awesome图标,提升UI视觉效果。同时在index.php和tags.php中添加Font Awesome的CDN引用。 --- developer_apps.php | 20 ++++++++++++++++++-- index.php | 4 ++++ tags.php | 20 +++++++++++++++++++- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/developer_apps.php b/developer_apps.php index 02392aa..a2dcc22 100644 --- a/developer_apps.php +++ b/developer_apps.php @@ -160,8 +160,24 @@ $resultApps = $conn->query($sqlApps); // 获取应用适用平台 $platforms = json_decode($app['platforms'], true); - echo '

标签: '. implode(', ', $tags) . '

'; - echo '

平台: '. implode(', ', $platforms) . '

'; + 标签: '. implode(', ', $tags) . '

'; + echo '

平台: '; + foreach ($platforms as $platform) { + $icon = ''; + if ($platform === 'Windows') { + $icon = ''; + } elseif ($platform === 'macOS') { + $icon = ''; + } elseif ($platform === 'Linux') { + $icon = ''; + } elseif ($platform === 'iOS') { + $icon = ''; + } elseif ($platform === 'Android') { + $icon = ''; + } + echo " $icon $platform"; + } + echo '

'; ?>

diff --git a/index.php b/index.php index abca7aa..8a35421 100644 --- a/index.php +++ b/index.php @@ -31,6 +31,8 @@ if (!isset($conn) || !$conn instanceof mysqli) { + +