Skip to content

Commit 2867f13

Browse files
authored
Refactor footer component with inline SVG and button
1 parent c47b7fb commit 2867f13

1 file changed

Lines changed: 26 additions & 17 deletions

File tree

src/components/base/Footer.astro

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -86,24 +86,33 @@ const statsData = {
8686
{SITE_INFO.ICP.NUMBER} ·
8787
</a>
8888

89-
90-
<a
91-
href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"
92-
target="_blank"
93-
rel="noopener noreferrer"
94-
>
95-
<GlassButton
96-
variant="info"
97-
size="sm"
98-
className="min-w-10 justify-center flex items-center gap-1"
89+
<a
90+
href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral"
91+
target="_blank"
92+
rel="noopener noreferrer"
9993
>
100-
<img
101-
src="/assets/uploads/upyun.svg"
102-
alt="又拍云"
103-
class="w-6 h-6 hover:text-blue-600 dark:hover:text-blue-600 transition duration-300"
104-
/>
105-
</GlassButton>
106-
</a>
94+
<GlassButton
95+
variant="info"
96+
size="sm"
97+
className="min-w-10 justify-center flex items-center gap-1"
98+
>
99+
<!-- 内联 SVG 并添加 fill="currentColor" -->
100+
<svg
101+
t="1763306562600"
102+
class="w-6 h-6 hover:text-blue-600 dark:hover:text-blue-600 transition duration-300" <!-- 保留 hover 样式 -->
103+
viewBox="0 0 1024 1024"
104+
version="1.1"
105+
xmlns="http://www.w3.org/2000/svg"
106+
p-id="5522"
107+
fill="currentColor" <!-- 核心:让颜色继承文本颜色 -->
108+
>
109+
<path
110+
d="M819.733081 102.739233a479.288216 479.288216 0 0 0-59.60814-38.284903 33.923332 33.923332 0 0 0-43.131093 8.723143L589.054425 242.309513l-7.269285 13.084713a70.269759 70.269759 0 0 1-59.123521 27.623285h-25.20019a228.255561 228.255561 0 0 0-213.71699 239.886417 25.200189 25.200189 0 0 0 14.538571 21.807856 60.092759 60.092759 0 1 1-82.385234 71.723616v-3.876952a60.577378 60.577378 0 0 1 11.630856-48.461903 36.831046 36.831046 0 0 0 7.753905-26.654046 279.140558 279.140558 0 0 1 276.717463-303.37151 51.854236 51.854236 0 0 0 41.192617-20.838618l117.762423-156.531945a21.323237 21.323237 0 0 0-11.630856-33.923332A511.75769 511.75769 0 0 0 263.39044 959.54567a33.923332 33.923332 0 0 0 43.615712-9.207762L436.399432 780.721249l8.723143-12.115475a70.754378 70.754378 0 0 1 59.123521-27.623285 218.56318 218.56318 0 0 0 25.200189 0 230.194037 230.194037 0 0 0 168.162802-90.623757 225.832466 225.832466 0 0 0 45.554188-149.26266 25.200189 25.200189 0 0 0-14.538571-21.807856 60.092759 60.092759 0 0 1-35.861808-43.131093 60.092759 60.092759 0 0 1 117.277804-27.138666 14.053952 14.053952 0 0 0 0 4.361571 61.061997 61.061997 0 0 1-11.630856 48.461903 36.831046 36.831046 0 0 0-7.753905 26.654046 279.140558 279.140558 0 0 1-276.717463 303.37151 51.854236 51.854236 0 0 0-41.192617 20.838618L355.952674 969.23805a21.807856 21.807856 0 0 0 11.146238 33.923332 512.24231 512.24231 0 0 0 452.634169-900.422149z"
111+
p-id="5523"
112+
></path>
113+
</svg>
114+
</GlassButton>
115+
</a>
107116

108117
</div>
109118
<!-- 右侧:社交链接 -->

0 commit comments

Comments
 (0)